Write a java application that assigns hourly wages to


Hello,

Looking for some assistance in getting the homework problem started. I have to write a java program that assign employee id and wages and use exception to throw an exception if the assigned wage is less than $6 and over $50 dollars.

Write a Java application that assigns hourly wages to employees. Create an EmployeeException class whose constructor receives a String that consists of an employee ID and pay rate. Create an Employee class with two fields, an identification number and an hourly wage. The employee constructor requires values for both fields. Upon construction, throw an EmployeeException if the hourly wage is less than $6.00 or over $50.00. Write an application that creates at least three employees with hourly wages below, above and within the given range. Make sure that at least 2 exceptions are thrown and displayed. Call this main class ThrowEmployee.

Turn in your source files named--

Employee.java

EmployeeException.java

ThrowEmployee.java

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Write a java application that assigns hourly wages to
Reference No:- TGS01601786

Now Priced at $30 (50% Discount)

Recommended (94%)

Rated (4.6/5)