Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 score (0-100) that represents the student's final average in a class. It should have another method to return the average of all the scores it has seen so far. And it should have a method to return the cumulative grade point average as described below.

The Student class should also have a static method that accepts a score (0 to 100) and returns a letter grade (assume 90 and above is A, above 80 is at least B, above 70 at least C, above 60 at least D, and below 60 is F). And it should have another static method that accepts a letter grade and returns the grade point value (e.g. A=4.0, B=3.0, ...)

The main class should ask the user for the student first and last names, instantiate the student class, and then ask the user for scores. Valid scores are from 0 to 100. The user should be able to continue to enter up to 4 scores or until they enter a value of -1 to indicate there are no more scores. After each score is entered the program should display the corresponding letter grade and grade point value. 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 stot udent name, the average score, and the grade point average (assume each score represents a class with the same number of credit hours). in java simple way please not array

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases And Python Programming MySQL MongoDB OOP And Tkinter

Authors: R. PANNEERSELVAM

1st Edition

9357011331, 978-9357011334

More Books

Students also viewed these Databases questions

Question

2. Which symptoms of ASPD did Bill have?

Answered: 1 week ago

Question

What is a verb?

Answered: 1 week ago