subject

PLEASE WRITE IN JAVA Problem 1: Implement a class called BonusTooHighException, designed to be thrown when a bonus value is more than $10000. Using the Executive class from Chapter 10, create a main program that creates and populates an Executive array with information entered by the user (array size as well). If a bonus value is entered that is too high, i. e. more than $10000 throw the exception. Allow the thrown exception to terminate the program.
Problem 2: Modify the solution to the program above (submit a second file for this) such that it catches and handles the exception if it is thrown. Handle the exception by printing an appropriate message and keeping the bonus=0, and then continue entering more executive data. Let the program conclude by printing the total number of executives with valid bonuses, i. e. positive, no more than $10000 as well as the average pay.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:30
How will you cite information that is common knowledge in your research paper?
Answers: 1
question
Computers and Technology, 23.06.2019 08:00
The managing director of a company sends a christmas greeting to all his employees through the company email. which type of network does he use? he uses an .
Answers: 3
question
Computers and Technology, 23.06.2019 17:30
Per the municipal solid waste report, what are the most common sources of waste (trash
Answers: 3
question
Computers and Technology, 24.06.2019 22:30
The a great imaginary circle, or reference line, around earth that is equally distant from the two poles and divides earth into the northern and southern hemispheres.
Answers: 1
You know the right answer?
PLEASE WRITE IN JAVA Problem 1: Implement a class called BonusTooHighException, designed to be thr...
Questions
question
Mathematics, 28.10.2020 05:10
question
Biology, 28.10.2020 05:10
question
Business, 28.10.2020 05:10
Questions on the website: 13722363