Computer Networking: A Top-Down Approach (7th Edition)
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
Bartleby Related Questions Icon

Related questions

bartleby

Concept explainers

Question

In this java assignment, we will need to use arraylists so we can store data for an employee.
If the user wants to enter data for more than one employee, it should print like this:

Employee List
Id Name

-----------------------

1. First Name

2. Bob Smith

If the user only enters one employee, it should print out a paystub for that employee that would look like this (with overtime coming into play as well, paying an extra 50% beyond 40 hours):

-------------------------------

Id - 1

Name - First M. Last

Address - 1234 Main St, City, St, Zip

Phone - 1234567890

Email - sample@gmail.com

Hours worked - 45

Hourly Rate - 10ドル

Regular Pay, 40 hours at 10ドル/hr - 400ドル

Overtime Pay, 5 hours at 15ドル/hr - 75ドル

Gross Total - 475ドル

------------------------------

Federal tax (20%) - 95ドル

State Tax (5%) - 23ドル.75

Fica Tax (3%) - 14ドル.25

------------------------------

Net Check - 342ドル

The program should have one class per .java file all calling to a main.java file using getters and setters. Here are the classes:

Employee - this should handle user imput to gather Id (hard code to 1), first name, last name, middle initial, address, city, state, zip, phone, email, and hourly rate.

PayPeriod - this should handle user input to gather payid (hard code to 123456), start date (hard code to 1), end date (hard code to 30), and hours worked.

TaxPayment - this should have fields for federal tax, state tax, and fica tax with an instance of this class to pay period so we have a place to store it.

TaxManager - this computea the taxes from the gross total and adds them to the overall output. Be sure to use a method such as TaxPayment ComputeTaxPayment(double grossPay, TaxRates taxRates) to be stored in PayPeriod.

Array - self explanatory, do the array stuff here.

PayrollManager - this class calculates the regular pay, overtime pay (if applicable), gross total and calls for PrintPaystub to print the paystub into main.

Main - the main class that calls for all user input and PrintPaystub to print the necessary information.

Expert Solution
Check Mark
Knowledge Booster
Background pattern image
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-engineering and related others by exploring similar questions and additional content below.
Similar questions
    SEE MORE QUESTIONS
    Recommended textbooks for you
    Text book image
    Computer Networking: A Top-Down Approach (7th Edi...
    Computer Engineering
    ISBN:9780133594140
    Author:James Kurose, Keith Ross
    Publisher:PEARSON
    Text book image
    Computer Organization and Design MIPS Edition, Fi...
    Computer Engineering
    ISBN:9780124077263
    Author:David A. Patterson, John L. Hennessy
    Publisher:Elsevier Science
    Text book image
    Network+ Guide to Networks (MindTap Course List)
    Computer Engineering
    ISBN:9781337569330
    Author:Jill West, Tamara Dean, Jean Andrews
    Publisher:Cengage Learning
    Text book image
    Concepts of Database Management
    Computer Engineering
    ISBN:9781337093422
    Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
    Publisher:Cengage Learning
    Text book image
    Prelude to Programming
    Computer Engineering
    ISBN:9780133750423
    Author:VENIT, Stewart
    Publisher:Pearson Education
    Text book image
    Sc Business Data Communications and Networking, T...
    Computer Engineering
    ISBN:9781119368830
    Author:FITZGERALD
    Publisher:WILEY