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

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:


Letter Grade A+ A A- B+ B B- C+ O C- D+ 

You have to Implement a Project to create a Grade Book.

First you need to implement a class

 

Here the class diagram:


D D- LL F Percentage 100% or more 93%-99% 90%-92% 87%-89% 83%-86% 

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.

  1. The student class must have the following methods:
  2. Student: must be public and accept as a parameter ONLY a String(the name of the student).
  3. 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.
  4. CalcAverage: It must be public and returns a double (the final average grade). This method won't accept any parameter.
  5. 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.

Letter Grade A+ A A- B+ B B- C+ O C- D+ D D- LL F Percentage 100% or more 93%-99% 90%-92% 87%-89% 83%-86% 80%-82% 77%-79% 73%-76% 70%-72% 67%-69% 63%-66% 60%-62% 0%-59%

Step by Step Solution

3.52 Rating (152 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Studenth ifndef STUDENTH define STUDENTH include using namespace std class Student private double To... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!