Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is my C language assignment. I give the pseudocode below. You need to write in C language. Thanks for your help! Program 7 Please

This is my C language assignment. I give the pseudocode below. You need to write in C language. Thanks for your help!

image text in transcribed

Program 7 Please complete #7 (steps a & b: 10 points, step c: 15 points) on page 296" Turn in one program named paycheck.c with one function named paycheck(). Some pseudocode for #7 follows, but you may take a different approach if you like Include necessary header files Define necessary constants RATE 1 is 15% RATE2 is 20% RATE3 is 25% CUTOFF1 is 300.0 CUTOFF2 is 450.0 BASE1 is RATE1CUTOFF1 BASE2 is BASE1 (RATE2(CUTOFF2 - CUTOFF1) Function header for paycheck0) Declare (and initialize) necessary variables such as rate Input number of hours worked //Calculate gross pay... if OT gross pay is (rate 40) plus (OT hours rate 1.5) otherwise gross pay is rate*hours worked //Calculate taxes... if gross pay is 300 or less taxes will be gross pay RATE1 taxes will be BASE1 plus ((pay- CUTOFF1)* RATE2) taxes will be BASE2 plus ((pay - CUTOFF2)* RATE3) otherwise if the gross pay is 450 or less otherwise print out all required information- nicely formatted! 20 hours: $200.00 gross pay, taxes at 1 596 which is $30.00, net pays $170.00 40 hours: $400.00 gross pay, taxes at 1 5% for first $300.00 ($45.00), plus 20% for $100.00 ($20.00-total is $65.00, net pays $335.00 60 hours: $700.00 gross pay, taxes at 15% for first $300.00 ($45.00), plus 20% for $150.00 ($30.00), plus 25% of remaining $250.00 ($62.50) . total is $137.50, net pay-$562.50

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 Image Databases Towards Advanced Image Retrieval

Authors: Yihong Gong

1st Edition

1461375037, 978-1461375036

More Books

Students also viewed these Databases questions

Question

What is the relationship between humans and nature?

Answered: 1 week ago