Computers and Technology

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.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 09:00, vetterk1400
Design a class tictactoe that: holds the following information about the game: two-dimensional array (3 by 3), and winner. add additional variables as needed. includes the functions to perform the various operations on objects. for example, function to print the board, getting the move, checking if move is valid, determining if there is a winner after each move. add additional operations as needed. includes constructor(s). write the functions of the class, and write a program that uses the class. the program should declare an object of type tictactoe. the program will create the board and store it in the array. the program will allow two players to play the tic-tac-toe game. after every valid move update the array, check if there is a winner. if there is no winner and no tie, then print the board again to continue.
Answers: 2
image
Computers and Technology, 23.06.2019 23:00, GreenHerbz206
Computer programming is one type of what career
Answers: 1
image
Computers and Technology, 24.06.2019 08:20, brinks7994
Which type of entity describes a fundamental business aspect of a database? a. linking b. lookup c. domain d. weak
Answers: 3
image
Computers and Technology, 24.06.2019 13:20, sanaiajohnson56
In the insert table dialog box, you select the checkbox to create the first row as the header of the table.
Answers: 3
Do you know the correct answer?
Write the program studentgradedemo that attempts to create several valid and invalid reportcard obje...

Questions in other subjects:

Konu
English, 25.02.2021 17:10
Konu
English, 25.02.2021 17:10