akosiraff

Assignment 7.2 Employee Class C#

Apr 29th, 2013
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/assignment-7-2-employee-class-c/
  3.  
  4. Assignment 7.2 (Post to assignment link below) .[Assignment7_yourlastname.cs] Part 1: Implement the following requirements:
  5. 1.Create an Employee class with two fields: IDNum and hourlyWage.
  6. 2.The constructor for Employee will accept two arguments for these two fields.
  7. 3.When the Employee class is instantiated you will throw an ArgumentException if the hourlyWage is less than 6.00 or more than 50.00.
  8. 4.Handle any thrown Exceptions in the Employee class by displaying an error message.
  9. 5.In Main instantiate an array of five (5) Employee objects.
  10. 6.Prompt the user for the values of the two fields in each Employee object.
  11. 7.Handle any exceptions (try-catch block) that are thrown by setting the Employee’s ID number to 999 and the Employee’s pay rate to the $6.00 minimum using the Employee constructor in the catch so that the message can be displayed from the class object by way of the ArgumentException.
  12. 8.At the end of input display all the entered and possibly corrected records.
  13.  
  14. Download: http://solutionzip.com/downloads/assignment-7-2-employee-class-c/
Advertisement
Add Comment
Please, Sign In to add comment