Lab03

profilew.2.a
cs219_lab03.pdf

CS219- Lab Three Wiemann

Requirements: 1) Create a Java Program to calculate the all grades inputted by a student, the

average grade for the student, the letter grade for the student, and the valid inputted scores displayed in ascending order.

2) In this program, you will need to allow the user to input as many numeric (real/double) scores into the computer. The program will be responsible for printing the average of the scores.

3) NOTE that you can have a dynamic amount of scores inputted by the user. 4) A sample session is listed below:

Input your First Name: Elmer

Input your Last Name: Fudd

Input a test score (-1.0 to exit): 70

Input a test score (-1.0 to exit): ab

ab is not valid input!

Input a test score (-1.0 to exit): 100

Input a test score (-1.0 to exit): 60

Input a test score (-1.0 to exit): 80

Input a test score (-1.0 to exit): -1

Class Report for: Fudd, Elmer

Inputted values are: [70.0, 100.0, 60.0, 80.0]

Average is: 77.5

Elmer earned a C for the class.

Maximum score is: 100.0

Minimum is: 60.0

Inputted values in ascending order are: [60.0, 70.0, 80.0, 100.0]

5) All shop standards are to be followed as instructed in class. 6) The output listed above must be mathematically correct, however, formatting

of the numbers with the decimal places and right justification is not required. 7) Save the Java source file as “mrwJavaProgram03.java” where mrw are

your initials.

8) Save the Eclipse Java Project as “mrwJavaProject03” where mrw are your initials.

9) Compress (i.e. create a zip file) the entire contents of the Eclipse Java Project and name it as mrwJavaProject03.zip where mrw are your initials.

10) You will submit the mrwJavaProject03.zip compressed file to the Dropbox for this assignment on or before the due date.

CS219- Lab Three Wiemann Lab03 Rubric:

Component Max

Points

SHOP STANDARD: Program Had a "Flower Box identifying name, course ID, etc. (A zero (0) will be recorded if not completed!) 0

SHOP STANDARD: Program had an inline comment under the flower box to identify the purpose of the program (A zero (0) will be recorded if not completed!) 0

SHOP STANDARD: Program had all variables declared with shop standard notation (i.e. Camel notation) (A zero (0) will be recorded if not completed!) 0

SHOP STANDARD: Program had all variables with comments on them (A zero (0) will be recorded if not completed!) 0

SHOP STANDARD: Single letter variables were not used in the scope of the program as they do not describe the purpose of the variable (A zero (0) will be recorded if a single letter variable is used!) 0

Program read in the firstName correctly 5

Program read in the lastName correctly 5

Program allowed the input of as many test scores by the end user until they type a "-1" as input. All scores were verified as numeric input and displayed an error if it was invalid. 30

Program displayed Class Report for: Lastname, FirstName (in that order) 5

All inputted values were displayed to the end user (as shown on the spec sheet for Lab 3) 10

Average of the valid inputted scores was calculated correctly 10

CS219- Lab Three Wiemann

Output of firstName earned a {lettergrade} for the class. firstName was displayed correctly and the correct letterGrade was displayed to the end user (using 10 point scales for "A", "B", "C", "D", and 0 - anything else than 60 as a "F") 25

All inputted values were sorted in ascending order and displayed sorted in ascending order to the end user 10

Total Points: 100