Student Information System - Week 4


Create a project with a main class and a Student class.  The student class should have a constructor that takes first and last name.  It should also have a method to accept a test score, and another method to return the average score for all the test scores it has seen so far.  The main class should ask the user for the student first and last names, instantiate the student class, and then ask the user for test scores.


Valid test scores are from 0 to 100.  The user should be able to continue to enter up to 5 test scores or until they enter a value of -1 to indicate there are no more test scores.  Once the user has entered the maximum number of test scores or has indicated that there are no more test scores, the program should display the student name, the average test score, and the average test score when the lowest is dropped.

Get Project Solution Now

Comments