subject

Write the program studentgradedemo that attempts to create several valid and invalid reportcard objects. immediately after each instantiation attempt, handle any thrown exceptions by displaying an error message. create a reportcard class with four fields for a student name, a numeric midterm grade, a numeric final exam grade, and letter grade. the reportcard constructor requires values for the name and two numeric grades and determines the letter grade. upon construction, throw an argumentexception if the midterm or final exam grade is less than 0 or more than 100. the letter grade is based on the arithmetic average of the midterm and final exams using a grading scale of a for an average of 90 to 100, b for 80 to 90, c for 70 to 80, d for 60 to 70, and f for an average below 60. display all the data if the instantiation is successful.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 20:30
Write 150 words on what kind of website would you like to make in the future? what sites would you like to model yours after?
Answers: 2
question
Computers and Technology, 22.06.2019 01:00
Which option marks all modification made within a document? review comment track changes balloons
Answers: 1
question
Computers and Technology, 23.06.2019 10:30
Would a ps4 wired controller work on an xbox one
Answers: 1
question
Computers and Technology, 24.06.2019 17:40
Create a file called favorite_foods, and list your favorite foods, entering five or six or more. press enter after each favorite food so it appears on its own line (make certain you also press enter after the final food item). after the file is created, add two more foods you like that are not on the list (press enter after the final food item). view the list of foods to make certain the two items you added appear at the end of the list
Answers: 2
You know the right answer?
Write the program studentgradedemo that attempts to create several valid and invalid reportcard obje...
Questions
question
Health, 22.09.2019 14:30