Hey guys,
I'm working on an entry level java programming assignment and I'm running into some trouble. I've attached 3 java files and will quote the problem below. If anyone can point me into the right direction I would really appreciate it. Thanks!
I'm fairly sure the code needs to be placed into the StudentGrades.java file towards the bottom where the 3 comments are...hope this helps
" Modify the attached grade book program. Change the attached grade book program so it
a. accepts the names of students in a loop until the word “DONE” is entered, and then
b. in a second loop accepts the names of homework assignments until the word “DONE” is entered, and
c. in a third loop (a nested loop) read scores for each of the homework assignments for each of the students.
Please use the format of the prompts as shown in the example run below. Please understand how the code works before starting to make changes – your code must use the StudentGrades and Assignments classes, but you can make changes to the StudentGrades and Assignments class (add new methods and/or instance variables) if necessary.
Sample run of the program:
Enter student name, or DONE if finished: Joe
Enter student name, or DONE if finished: Jane
Enter student name, or DONE if finished: Amy
Enter student name, or DONE if finished: DONE
Enter assignment name, or DONE if finished: Homework 1
Enter assignment name, or DONE if finished: Quiz 1
Enter assignment name, or DONE if finished: DONE
Enter score for Joe Homework 1: 10
Enter score for Joe Quiz 1: 5
Enter score for Jane Homework 1: 10
Enter score for Jane Quiz 1: 10
Enter score for Amy Homework 1: 9
Enter score for Amy Quiz 1: 10
Joe
Homework 1: 10.0
Quiz 1: 5.0
Total score: 15.0 Average: 12.5
Jane
Homework 1: 10.0
Quiz 1: 10.0
Total score: 20.0 Average: 10.
Amy
Homework 1: 9.0
Quiz 1: 10.0
Total score: 19.0 Average: 9.5"