Lab Goal: Practice Problem-Solving and Coding Concepts
Complete assigned Challenge exercises and the assignment below.Collect the favorite color and favorite number from the students on your row.
Print the color in reverse order along with the position of the student.
Ex: Student 5 likes
red; Student 4 likes turquoise. In addition
determine the maximum and minimum values and indicate when you print the color
if the student entered the maximum or minimum value along with the value.
Ex: Student 3 likes green. This student entered the minimum value of 5.
You may use the following code to get you started. Fruit.java
If you finish in the lab show your code and testing.
Email your .java file and a cropped screen shot of your results.
Grading
Pseudo Code, Code comments, variables commented | 20 |
Color printed in reverse with Student number | 15 |
Correct maximum determined | 10 |
Correct minimum determined | 10 |
Minimum and maximum printed with correct student | 25 |
Program compiles | 10 |
Screen shots showing running program and java file provided | 10 |
Test 1: Red- 5, Blue- 33, Green- 40, Yellow- 2, Brown- 41 (These are all positive numbers)
Test2: Turquoise - 10, White - 10 (Positive values)
Test3: Your colors with these numbers: -5, 5, 98, 40 (Contains a negative number)