Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Introduction to computer class, Java programming through eclipse: Ue the following criteria to create the code: SALARY Input first and last name - Output the

Introduction to computer class, Java programming through eclipse:

Ue the following criteria to create the code: SALARY

Input first and last name

- Output the names last, first in your output

- Make the federal withholding rate a constant 20% (not an input value)

No state tax

Generate two new values: regular pay and overtime pay

- 40 hours workedor less

- Regular pay is pay rate * hours worked

- Overtime pay is 0

Otherwise

- Regular pay is pay rate * 40

- Overtime is pay rate * (hours 40)* 1.5

- Gross pay is then regular pay + overtime pay

Output should be similar to the instructions in the bookexcept:

- Regular and overtime pay includedostate tax not included

- all currency should be rounded to 2 decimals

SAMPLE CODE:

image text in transcribed

Sample run: Enter first and last name: Fred Flintstone Enter hours worked: 40.25 Enter hourly pay rate: $36.00 Employee name: Flintstone, Fred Hours worked: 40.25 Hourly Rate: $36.00 Gross Pay: $1453.50 Regular Pay: $1440.00 Overtime Pay: $13.50 Deductions: Federal Tax: $290.70 Total deductions: $290.70 Net Pay: $1162.80

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 2012 Proceedings Part 2 Lnai 7197

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284892, 978-3642284892

More Books

Students also viewed these Databases questions

Question

Identify and describe the various types of employment tests.

Answered: 1 week ago

Question

Understand how customers respond to effective service recovery.

Answered: 1 week ago

Question

Know the principles of effective service recovery systems.

Answered: 1 week ago