Lab Goal: practice problem-solving, and the use of if statements, arrays, modulo, scanner, loops etc.

The lab for today is to be completed during the lab. All submissions should be reviewed during the lab. Other time should be dedicated to completing and perfecting project 4.  You can receive credit for part I and or part II.

 

Requirements

     I.            Given the code provided (comments sanitized and generic variable names), determine what the code is doing. Be specific. Give an example input and output to support your answer.

·       To receive credit for part I, you must show your answer to part I in the lab before running the program on a computer. Move to part II only if I is complete or you want to forfeit credit for part I.

 II.            Add to the code so that it will print the text equivalent of the number calculated if the number is between 0 and 9.

·       When complete show your results in the lab. If we are unable to get to you before the lab ends submit by email the .java file (part II and a cropped screen shot of your results.

·       If you don’t get to show your answer to part I hand me your answer on paper.

III.            This is an in-lab only exercise and is due by 2:50pm on Monday. Once the lab is completed start finalizing project 4.