Question: Rename Program class to EmployeeTest . In the Main() method of the EmployeeTest class, create two objects of the type Employee. Each to demonstrate the

  1. Rename Program class to EmployeeTest. In the Main() method of the EmployeeTest class, create two objects of the type Employee. Each to demonstrate the use of a different constructor that has been created
    • For the second object, ask the user to enter first name, last name, base salary, gross sales and commission rate.
    • After the user enters all information, the application will calculate Earnings and display it formatted as currency.
    • Gross sales and commission rate should never be negative or zero. You need check and validate that the user is entering an acceptable value.
    • Commission rate should be between 0.1 (10%) and 1.0 (100%). You need check and validate that the user is entering an acceptable value.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!