

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


As always, test the input for invalid characters; note that the characters โ#โ (indicating a decimal number) and โ+โ are valid but not required, as are leading โ0โs; you should allow these characters and then disregard them: this should all be already built into your conversion subroutines. The one new test you will have to do is see if the addition of 100 to an element of the array causes an overflow: if the result appears negative, set the number to zero. BONUS: For an extra 2 points , allow the user to enter as many numbers as desired, terminating the input with the symbol * (or in any way you think appropriate).