[VicPiMakers Projects] Programming Challenge 1 - text version
Mark G.
vpm at palaceofretention.ca
Sat Sep 26 12:22:54 PDT 2020
I did a quick convert of the PDF to text:
Mark
=======================
Programming Challenge 1
Challenge 1 consist of 1 input and 10 outputs. For the purpose of
self-evaluation, use the point system below:
Output #1 - #5: 3 points
Output #6 - #10 :2 points
Input:
12, byte-size integers each ranging in value from 33 to 255 inclusive.
Test Input:
72,111,63,85,61,56,118,121,61,69,63,61
Note:
* The text enclosed in brackets may be omitted
* The outputs can be in any order
* Data shown below is separated by commas. Any other delimiter can be used.
Output #1: 941 (sum)
Output #2: 78, 5 (average of the 12 values leaving an integer quotient,
remainder)
Output #3: 72,56,118, (even integers)
Output #4: 56,6 (smallest, position)
Output #5: 5,61,61,61,63,63, (#repeats, list)
Output #6: 18543 (value of new 16-bit integer)
** the 1st 2 elements of the input data (72,111) are used to define a
new 16-bit integer where 72 is the high byte and 111 the low byte
Output #7: 56,61,61,61,63,63,69,72,85,111,121, (sorted)
Output #8: Ho?U=8vy=E?=
** Hint: derived from Output #7
Output #9: HOUVYE (upper case)
Output#10: Key (1 =<Key<=26)
** “HOUVYE “(Output #9) is a coded word for “BIOPSY’ that has been
encrypted using the Caesar Cipher. The Key unknown. Decipher “HOUVYE” to
produce “BIOPSY’. Output #10 is the numerical value of Key.
Happy Coding: Jim Briante
More information about the Projects
mailing list