Discount Get CMIS 242 ALL WEEKS Solution ONLY $59.99 $83.95
CMIS 242 Programming Project 1 - an Original and A++ Work [$15.99]
CMIS 242 Programming Project 2 - an Original and A++ Work [$15.99]
CMIS 242 Programming Project 3 - an Original and A++ Work [$15.99]
CMIS 242 Programming Project 4 - an Original and A++ Work [$15.99]
CMIS 242 Final Project - an Original and A++ Work [$19.99]
Get Selected Weeks Solution with ONLY NOT Add Selected Tutorials To Cart
CMIS242 - CMIS 242 - CMIS242 Programming Project 1 - CMIS 242 Programming Project 1
    CMIS242 - CMIS 242 - CMIS242 Programming Project 1 - CMIS 242 Programming Project 1

CMIS242 - CMIS 242 - CMIS242 Programming Project 1 - CMIS 242 Programming Project 1

$15.99

CMIS 242 - Intermediate Programming
Programming Project 1

The first programming project involves writing a program that computes the average salary for a collection of employees of different types. This program consists of four classes. The first class is the Employee class, which contains the employee's name and monthly salary, which is specified in whole dollars. It should have two methods:

  1. A constructor that allows the name and monthly salary to be initialized.
  2. A method named annualSalary that returns the salary for a whole year.

The Employee class has two subclasses. The first is Salesman. It has an additional instance variable that contains the annual sales in whole dollars for that salesman. It should have the same two methods:

  1. A constructor that allows the name, monthly salary and annual sales to be initialized.
  2. An overridden method annualSalary that returns the salary for a whole year. The salary for a salesman consists of the base salary computed from the monthly salary plus a commission. The commission is computed as 2% of that salesman's annual sales. The maximum commission a salesman can earn is $20,000.

The second subclass is Executive. It has an additional instance variable that reflects the current stock price. It should have the same two methods:

  1. A constructor that allows the name, monthly salary and stock price to be initialized.
  2. An overridden method annualSalary that returns the salary for a whole year. The salary for an executive consists of the base salary computed from the monthly salary plus a bonus. The bonus is $30,000 if the current stock price is greater than $50 and nothing otherwise.

Finally there should be a fourth class than contains the main method. It should create an array of objects of type Employee and initialize them to a mixture of different kinds of employees. It should then compute and display the average salary for all employees.

Be sure to follow good programming style, which means making all instance variable private and naming all constants. Furthermore you must select enough different kinds of employees to completely test the program.

It is solution for CMIS242 Project 1.

This solution is 100% correct, contain Java source code and screenshots, you can using any java IDE, copy source code to src folder and run it

If you have any questions, please contact us via email support@extutorials.com, we will help you any time

Thank you very much

Attached Files

Move over [ preview ] file name to preview content in it!

  • CMIS242Project1.zip [2.9KB]
    • Employee.java [0.7KB] [ preview ]
    • Executive.java [0.5KB] [ preview ]
    • Main.java [1KB] [ preview ]
    • Salesman.java [0.5KB] [ preview ]

Write a review

Your Name:


Your Review: Note: HTML is not translated!

Rating: Bad           Good

Enter the code in the box below:



PURCHASE SAVE
2 Tutorials 10%
3 Tutorials 13%
4 Tutorials 16%
5 Tutorials 19%
6 Tutorials 22%
7 Tutorials 25%
8 Tutorials 28%
9 Tutorials 31%
10 Tutorials 34%
add url more

9MZQASHWN73B