Employee Program In C# - 95897

Solution Posted by


Rating : No Rating
Solution Detail
Price: $10.00
  • From: Computer Science,
  • Posted on: Wed 16 Mar, 2016
  • Request id: None
  • Purchased: 0 time(s)
  • Average Rating: No rating
Request Description
Employee class that contains 3 pieces of information as instance variables: first name (datatype string), last name (datatype string), monthly salary.( datatype decimal).Employees class should contain a constructor that initializes the 3 instance variables. It should also contain a property for each instance variable with get and set accessors. The property for salary should verify that the salary is greater than 0. If a negative value is passed in, the set accessor should set the salary to 0. EmployeeTest Class that creates two employee objects using the constructor that you developed in the Employee class. Display the name and salary for each Employee. Use the set property for salary to give each employee a 10% raise, Display the name and salary for each employee again.
Solution Description