From: <whe...@us...> - 2003-07-24 17:23:22
|
Update of /cvsroot/ordweb/uop/pos407/wayneh/week4 In directory sc8-pr-cvs1:/tmp/cvs-serv18333 Added Files: ThrowException.java Log Message: init --- NEW FILE: ThrowException.java --- /** Create an EmployeeException class whose constructor receives a String * that consists of an employee's ID and pay rate. Create an Empoyee class with two * field, idNum and hourlyWage. The Employee costructor requires values for both * fields. Upon construction, throw and EmployeeException if the hourlyWage is less * than $6.00 or over $50.00. Write a program that establishes at least three Employees * with hourlyWages that are above, below, and within the allowed range. */ public class EmployeeException extends Exception { public EmployeeException(String s) { super(s); } } class Employee { int idNum; float hourlyWage; Employee(int inNum, float inWage) { idNum = inNum; hourlyWage = inWage; } } |