Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You have been asked to write a computer program that will output an employees after tax pay. Your program will read from the keyboard the

You have been asked to write a computer program that will output an employees after tax pay. Your program will read from the keyboard the number of regular hours and overtime hours that the employee worked and the employees regular hourly wage. The employee is paid a bonus of 1.5 times regular pay for each overtime hour worked. Tax is 15% of the employees gross pay. Number each of these steps to solve the problem in the correct order from first (1) to last (7). First Correct Order

1. Get regular hours, overtime hours, and regular hourly wage from the user.

2. Multiply overtime hours by regular hourly wage by 1.5 to get overtime pay. (overPay = overHours * regWage * 1.5)

3. Subtract tax from gross pay to get net pay. (netPay = grossPay - tax)

4. Display net pay for the user to see.

5. Multiply gross pay by 0.15 to get tax. (tax = grossPay * 0.15)

6. Multiply regular hours by regular hourly wage to get regular pay. (regPay = regHours * regWage)

7. Add regular pay and overtime pay to get gross pay. (grossPay = regPay + overPay)

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2017 Skopje Macedonia September 18 22 2017 Proceedings Part 3 Lnai 10536

Authors: Yasemin Altun ,Kamalika Das ,Taneli Mielikainen ,Donato Malerba ,Jerzy Stefanowski ,Jesse Read ,Marinka Zitnik ,Michelangelo Ceci ,Saso Dzeroski

1st Edition

3319712721, 978-3319712727

More Books

Students also viewed these Databases questions

Question

What is the purpose of the Income Summary account in closing?

Answered: 1 week ago

Question

Why do mergers and acquisitions have such an impact on employees?

Answered: 1 week ago

Question

2. Describe the functions of communication

Answered: 1 week ago