cs219_exam02-_s1j_2014_1.pdf

CS219- Exam02 Wiemann

Requirements:

1) Using the specification of Lab 4, you will be adding additional functionality for this exam. The existing functionality of Lab 4 and the new functionality will be graded for this exam.

2) Implement the functionality of Option 2 from the menu (i.e. Find a student’s grade by last Name). Prompt the end user to type in a last name of the student and return a message saying the student(s) was found or

the last name was not found in your collection of Students. You are required to return all students who match the last name that is

typed in – this is also will be a case sensitive match. 3) Add the functionality of calculating a class average for the five labs,

three exams, and the final exam.

4) Add the functionality of finding the maximum score in the class for each lab, exam, and final exam.

5) Add the functionality of finding the minimum score in the class for each

lab, exam, and final exam. 6) Add the functionality of finding the range score in the class for each lab,

exam, and final exam. Range is found by taking the maximum minus the

minimum score. 7) Change the main menu to show “Display class grades – sorted by last

name”. Add the functionality (when Option 3 is selected) that the output

of students are sorted in ascending order by lastName then firstName.

8) Name your project mrwJavaExam01 (where mrw is “your” initials)

9) See the next pages for a sample run session. 10) You will need to zip the contents of the entire project into a single zip file

and upload the content of that zip file to the dropbox on or before the due

date.

CS219- Exam02 Wiemann CS219 Grade Menu

----------------

1) Input a student's grades

2) Find a student's grades by last Name

3) Display class grades- sorted by last name

4) Exit

Input menu choice: 3

No scores have been inputted!

CS219 Grade Menu

----------------

1) Input a student's grades

2) Find a student's grades by last Name

3) Display class grades- sorted by last name

4) Exit

Input menu choice: 1

Input the first name of the student: Mike

Input the last name of the student: Wiemann

Input Lab Score #1: 84

Input Lab Score #2: 43

Input Lab Score #3: 98

Input Lab Score #4: 95

Input Lab Score #5: 45

Input Test Score #1: 18

Input Test Score #2: 77

Input Test Score #3: 38

Input Final Exam Score: 65

CS219 Grade Menu

----------------

1) Input a student's grades

2) Find a student's grades by last Name

3) Display class grades- sorted by last name

4) Exit

Input menu choice: 1

Input the first name of the student: Bill

Input the last name of the student: Gates

Input Lab Score #1: 90

Input Lab Score #2: 91

Input Lab Score #3: 83

Input Lab Score #4: 79

Input Lab Score #5: 17

Input Test Score #1: 73

Input Test Score #2: 55

Input Test Score #3: 62

Input Final Exam Score: 87

CS219 Grade Menu

----------------

1) Input a student's grades

CS219- Exam02 Wiemann 2) Find a student's grades by last Name

3) Display class grades- sorted by last name

4) Exit

Input menu choice: 1

Input the first name of the student: Michael

Input the last name of the student: Jordan

Input Lab Score #1: 83

Input Lab Score #2: 24

Input Lab Score #3: 46

Input Lab Score #4: 67

Input Lab Score #5: 81

Input Test Score #1: 2

Input Test Score #2: 9

Input Test Score #3: 39

Input Final Exam Score: 32

CS219 Grade Menu

----------------

1) Input a student's grades

2) Find a student's grades by last Name

3) Display class grades- sorted by last name

4) Exit

Input menu choice: 1

Input the first name of the student: Wilma

Input the last name of the student: Flinstone

Input Lab Score #1: 99

Input Lab Score #2: 95

Input Lab Score #3: 91

Input Lab Score #4: 90

Input Lab Score #5: 85

Input Test Score #1: 93

Input Test Score #2: 94

Input Test Score #3: 60

Input Final Exam Score: 99

CS219 Grade Menu

----------------

1) Input a student's grades

2) Find a student's grades by last Name

3) Display class grades- sorted by last name

4) Exit

Input menu choice: 1

Input the first name of the student: Fred

Input the last name of the student: Flinstone

Input Lab Score #1: 100

Input Lab Score #2: 100

Input Lab Score #3: 100

Input Lab Score #4: 100

Input Lab Score #5: 100

Input Test Score #1: 100

Input Test Score #2: 100

Input Test Score #3: 100

Input Final Exam Score: 100

CS219- Exam02 Wiemann

CS219 Grade Menu

----------------

1) Input a student's grades

2) Find a student's grades by last Name

3) Display class grades- sorted by last name

4) Exit

Input menu choice: 3

CS219 Class Report

------------------

Student Name Lab1 Lab2 Lab3 Lab4 Lab5 Exam1 Exam2 Exam3 Final Percent Grade

------------ ---- ---- ---- ---- ---- ----- ----- ----- ----- ------- -----

Flinstone, Fred 100 100 100 100 100 100 100 100 100 100.00% A

Flinstone, Wilma 99 95 91 90 85 93 94 60 99 89.56% B

Gates, Bill 90 91 83 79 17 73 55 62 87 70.78% C

Jordan, Michael 83 24 46 67 81 2 9 39 32 42.56% F

Wiemann, Mike 84 43 98 95 45 18 77 38 65 62.56% D

Class Averages: 91.20 70.60 83.60 86.20 65.60 57.20 67.00 59.80 76.60

Maximum Scores: 100 100 100 100 100 100 100 100 100

Minimum Scores: 83 24 46 67 17 2 9 38 32

Range: 17 76 54 33 83 98 91 62 68

CS219- Exam02 Wiemann CS219 Grade Menu

----------------

1) Input a student's grades

2) Find a student's grades by last Name

3) Display class grades- sorted by last name

4) Exit

Input menu choice: 2

Input the last name of the student you want to search: Flinstone

Flinstone, Fred was found in your class!

Flinstone, Wilma was found in your class!

CS219 Grade Menu

----------------

1) Input a student's grades

2) Find a student's grades by last Name

3) Display class grades- sorted by last name

4) Exit

Input menu choice: 2

Input the last name of the student you want to search: Fudd

The last name of Fudd was not found in your class.

CS219 Grade Menu

----------------

1) Input a student's grades

2) Find a student's grades by last Name

3) Display class grades- sorted by last name

4) Exit

Input menu choice: 4