What is a Java Application to allow a Instructor to enter the name of a students and
Question:
What is a Java Application to allow a Instructor to enter the name of a students and then allow to enter 10 grades (from 0 to 100) after all grades are entered to program should calculate the final average grade and the final letter grade with this rubric:
You have to Implement a Project to create a Grade Book.
First you need to implement a class
Here the class diagram:
The main application must generate an instance of the Student class, allow the user to enter the name of the student and 10 grades. In order to enter the grades the main application must use a loop (while loop). Inside the loop the program should ask the user to enter the grades, then invoke the method AddAverage to accumulate the grades. After the loop is finished must invoke the method CalcAverage to obtain the final average, then invoke the method GetLetterGrades (see rubrics) passing the grade average to get the letter grade. The App must print the name of the student, the final grade, and the letter grade.
- The student class must have the following methods:
- Student: must be public and accept as a parameter ONLY a String(the name of the student).
- AddAverage: it must be public and it must accept as a parameter a Double (the grade passed from the main application) this method must storage the final average in an instance (class) variable.
- CalcAverage: It must be public and returns a double (the final average grade). This method won't accept any parameter.
- GetLetterAverage: It must be public, returns a String (the letter grade). This method will use the final average from the instance (class) variable.
The program must allow the user to enter the number of grades to control the loop.
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill