A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | 72 | 111 | 63 | 85 | 61 | 56 | 118 | 121 | 61 | 69 | 63 | 61 | ||||||||||||||
2 | ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ | |||||||||||||||||||||||||
3 | 12345678901234567892123456789312345678941234567895123456789 | |||||||||||||||||||||||||
4 | Programming Challenge 1 | Answer | ||||||||||||||||||||||||
5 | Input | 72 | 111 | 63 | 85 | 61 | 56 | 118 | 121 | 61 | 69 | 63 | 61 | |||||||||||||
6 | Output #1: 941 (sum) | 941 | ||||||||||||||||||||||||
7 | Output #2: 78, 5 (integer average: quotient, remainder) | 78 | 5 | |||||||||||||||||||||||
8 | Output #3: 72,56,118, (even integers) | 72 | 56 | 118 | ||||||||||||||||||||||
9 | Output #4: 56,6 (smallest, position) | 56 | 6 | |||||||||||||||||||||||
10 | Output #7: 56,61,61,61,63,63,69,72,85,111,118,121 (sorted) | 56 | 61 | 61 | 61 | 63 | 63 | 69 | 72 | 85 | 111 | 118 | 121 | |||||||||||||
11 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
12 | Output #5 number of repeats | 5 | ||||||||||||||||||||||||
13 | Output #6: 18543 (value of new 16-bit integer) | 18543 | ||||||||||||||||||||||||
14 | H | o | ? | U | = | 8 | v | y | = | E | ? | = | ||||||||||||||
15 | Output #8: Ho?U=8vy=E?= | Ho?U=8vy=E?= | ||||||||||||||||||||||||
16 | H | O | ? | U | = | 8 | V | Y | = | E | ? | = | ||||||||||||||
17 | HO?U=8VY=E?= | 15 | 21 | 22 | 25 | 5 | 1 | 1 | 1 | |||||||||||||||||
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 |