Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The program should look like this: I am having trouble writing a code in Python that yields this output. Any help would be appreciated. Enter

The program should look like this:

image text in transcribed

I am having trouble writing a code in Python that yields this output. Any help would be appreciated.

Enter employee's name: Chad Mano Enter number of hours worked in a week: 40 Enter hourly pay rate: 12.75 Enter federal tax withholding rate (ex. 0.12): 0.11 Enter state tax withholding rate (ex. 0.06): 0.07 CHAD MANO PAY INFORMATION 40 Pay Hours Worked: Pay Rate: $ Gross Pay: $ 12.75 510.00 Deductions Federal Withholding (11.%): $ State Withholding (7.0%): $ Total Deduction: $ 56.10 35.70 91.80 Net Pay: $ 418.20 Note the following: 1. The first 5 lines are asking for input from the user. 2. Notice the form tax rates are entered compared to how they're displayed. 3. Notice the alignment/formatting of the output 4. Headings of sections are centered and spaces between sections 5. Main output header is all capitalized 6. Output numbers are right aligned with decimals aligned 7. Colons and $ signs are aligned on output 8. No arithmetic calculations inside the print string (use variables) 9. A single print statement is used for output

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_2

Step: 3

blur-text-image_3

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

Database Systems An Application Oriented Approach Complete Version

Authors: Michael Kifer, Arthur Bernstein, Richard Lewis

2nd Edition

0321268458, 978-0321268457

More Books

Students also viewed these Databases questions