Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Project Description Create a program that calculates a users weekly gross pay, weekly take-home pay, and annual income. Sample Run 1 Paycheck Management System ---------------------------------------------------

Project Description

Create a program that calculates a users weekly gross pay, weekly take-home pay, and annual income.

Sample Run 1

Paycheck Management System

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

Enter your weekly work hours (hrs): 35

Enter your hourly pay rate ($): 14.50

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

Your weekly gross pay is $507.50

Your weekly tax amount is $91.35

Your weekly take-home pay is $416.15

Your annual income is $26390.0

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

Bye!

Sample Run 2

Paycheck Management System

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

Enter your weekly work hours (hrs): 40

Enter your hourly pay rate ($): 15.75

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

Your weekly gross pay is $630.0

Your weekly tax amount is $126.0

Your weekly take-home pay is $504.0

Your annual income is $32760.0

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

Bye!

Specifications

  • The formula for calculating the weekly gross pay is:

gross pay = hours worked * hourly rate

  • The tax rate is calculated as follows:
    • Full-time (>= 40 hours) production workers: 20%
    • Part-time (< 40 hours) production workers: 18%
  • The formula for calculating the weekly tax amount is:

tax amount = gross pay * (tax rate / 100)

  • The formula for calculating the take-home pay is:

take-home pay = gross pay tax amount

  • The formula for calculating the annual income is:

annual income = weekly gross pay * 52

  • The tax rate is 18% or 20% which is based on the employee's status.
  • The program should accept decimal entries like 35.5 and 14.25.
  • The program should round the results to a maximum of two decimal places.
  • Assume the user will enter valid data.

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

Expert Performance Indexing In SQL Server

Authors: Jason Strate, Grant Fritchey

2nd Edition

1484211189, 9781484211182

More Books

Students also viewed these Databases questions

Question

What are the determinants of cash cycle ? Explain

Answered: 1 week ago

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago