ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
721116385615611812161696361
2
ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ
3
12345678901234567892123456789312345678941234567895123456789
4
Programming Challenge 1Answer
5
Input721116385615611812161696361
6
Output #1: 941 (sum)941
7
Output #2: 78, 5 (integer average: quotient, remainder)785
8
Output #3: 72,56,118, (even integers)7256118
9
Output #4: 56,6 (smallest, position)566
10
Output #7: 56,61,61,61,63,63,69,72,85,111,118,121 (sorted)566161616363697285111118121
11
0111110000000000000000000
12
Output #5 number of repeats5
13
Output #6: 18543 (value of new 16-bit integer)18543
14
Ho?U=8vy=E?=
15
Output #8: Ho?U=8vy=E?=Ho?U=8vy=E?=
16
HO?U=8VY=E?=
17
HO?U=8VY=E?=152122255111
18
19
Output #9: HOUVYE (upper case)#NAME?
open tools-->script editor
20
#NAME?
21
Output#10: Key (1 =<Key<=26)#NAME?
22
** “HOUVYE “(Output #9) is a coded word for “BIOPSY’ that has been encrypted using the Caesar Cipher.
23
The Key unknown. Decipher “HOUVYE” to produce “BIOPSEY’. Output #10 is the numerical value of Key.
24
FLOPPY
25
26
27
function myF(str) {
28
var returnStr="";
29
for (let i = 0; i < str.length; i++) {
30
var c = str[i];
31
if((c >= 'A') && (c <= 'Z')) {
32
returnStr=returnStr+c;
33
}
34
}
35
return returnStr;
36
}
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100