Sales commission calculator


Assignment:

1- (Employee Class) Create a class called Employee that includes three instance variables-a first name (type String), a last name (type String) and a monthly salary (double). Provide a constructor that initializes the three instance variables. Provide a set and a get method for each instance variable. If the monthly salary is not positive, do not set its value. Write a test app named EmployeeTest that demonstrates class Employee's capabilities. Create two Employee objects and display each object's yearly salary. Then give each Employee a 10% raise and display each Employee's yearly salary again.

2- (Sales Commission Calculator) A large company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9% of their gross sales for that week. For example, salesperson who sells $5,000 worth of merchandise in a week receives $200 plus 9% of $5000, or total of $650. You've been supplied with a list of the items sold by each salesperson. The values of these items are as follows:

  • Item Value
  • 1 239.99
  • 2 129.75
  • 3 99.95
  • 4 350.89

Develop a Java application that inputs one salesperson's items sold and calculates and displays that salesperson's earnings. There's no limit to the number of items that can be sold.

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Sales commission calculator
Reference No:- TGS01799218

Now Priced at $30 (50% Discount)

Recommended (96%)

Rated (4.8/5)