Write a java application that assigns hourly wages to


Assignment

Write a Java application using NetBeans Integrated Development

Environment (IDE) for the following programming assignments listed.

#1 Employee Exception

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

Include a prolog (a block of comments at the top of the class file) stating what each class does and document your code.

Remove all package statements.

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Write a java application that assigns hourly wages to
Reference No:- TGS02485004

Now Priced at $50 (50% Discount)

Recommended (92%)

Rated (4.4/5)