In Java code: A company pays its employees on a weekly basis. The company has three types of employees: Salaried employees, who are paid a fixed weekly salary regardless of the number of hours worked; Hourly employees, who are paid by the hour and receive overtime pay; Commissioned employees whose pays are 20% of the week's sales Create a console-based object-oriented Java application that: Calculates weekly pay for an employee. The application should display text that requests the user input the name of the employee, type of employee, and the monthly salary, or hourly rate, if it’s an hourly employee, and hours worked for the week. For hourly employees, the rate will be doubled if it’s beyond 40 hours/week. The application should then print out the name of the employee and the weekly pay amount. In the printout, display the dollar symbol ($) to the left of the weekly pay amount and format the weekly pay amount to display currency. Implements a feature that allows the company to reward selected salaried employees by adding 10% to their salaries. Your program should display an asterisk (*) to the upper right of the weekly pay amount, and a note stating bonus added below the table, as shown below:

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

In Java code:

A company pays its employees on a weekly basis. The company has three types of employees:

  1. Salaried employees, who are paid a fixed weekly salary regardless of the number of hours worked;
  2. Hourly employees, who are paid by the hour and receive overtime pay;
  3. Commissioned employees whose pays are 20% of the week's sales
  • Create a console-based object-oriented Java application that:
    Calculates weekly pay for an employee. The application should display text that requests the user input the name of the employee, type of employee, and the monthly salary, or hourly rate, if it’s an hourly employee, and hours worked for the week.
  • For hourly employees, the rate will be doubled if it’s beyond 40 hours/week.
    The application should then print out the name of the employee and the weekly pay amount. In the printout, display the dollar symbol ($) to the left of the weekly pay amount and format the weekly pay amount to display currency.
  • Implements a feature that allows the company to reward selected salaried employees by adding 10% to their salaries. Your program should display an asterisk (*) to the upper right of the weekly pay amount, and a note stating bonus added below the table, as shown below:

Name                   Class      Hours        Sales       Rate              Weekly Pay
=====================================================
James Hogan Salaried                                                              $3,300.00*
Jennifer Waltz Hourly       45                         $10.95                 $547.50
Moly Smit        Hourly.      32                          $15.00                 $480.00
Joan Han          Salaried                                                             $2,600.00
Marry Butler     Commissioned        $10,000.00                     $2,000.00
====================================================
TOTAL $8,927.50
*A 10% bonus is awarded

 

  • Your program should follow the coding guideline:
  • Source code
  • Design document (UML class diagrams)
  • At least 5 test output
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 7 images

Blurred answer
Knowledge Booster
Unreferenced Objects
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education