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, 22.06.2019 13:00
Which part of the cpu accepts data?
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
Helen is having a meeting with her colleagues in her company. they are working on the goals and objectives for the coming year. they want to ensure that these goals and objectives of the processes involved are properly evaluated. which system can helen and her colleagues apply to evaluate this? helen and her colleagues require a blank to evaluate the goals and objectives.
Answers: 2
question
Computers and Technology, 24.06.2019 00:30
Use the keyword strategy to remember the meaning of the following word. the meaning for the word has been provided. write your keyword and describe the picture you would create in your mind. obfuscate: to make something so confusing that it is difficult to understand.
Answers: 2
question
Computers and Technology, 24.06.2019 20:20
Write python code that prompts the user to enter his or her favorite color and assigns the user’s input to a variable named color.
Answers: 1
You know the right answer?
Write the program studentgradedemo that attempts to create several valid and invalid reportcard obje...
Questions
question
Mathematics, 28.11.2020 03:30
question
Mathematics, 28.11.2020 03:30
Questions on the website: 13722363