Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help getting the alignment right between the category and the numbers. I attached how it is suppose to look and my code. In

I need help getting the alignment right between the category and the numbers. I attached how it is suppose to look and my code. In C! image text in transcribedimage text in transcribedimage text in transcribed

Income Hours per week: 15 Hourly Rate: $7.25 Gross Pay: $108.75 Net Pay: $86.29 Deductions Federal: State: FICA: Medicare: $10.88 $3.26 $6.74 $1.58 #include 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 int main (void) { //integers int hoursPerWeek; double hourlyRate=7.25; double grossPay; double federal; double state; double fica; double medicare; double netPay; printf("Income "); printf("Hours per week: "); scanf("%d",&hoursPerWeek); printf("Hourly Rate: $%.21f ", hourlyRate); 41 42 43 44 grossPay=hoursPerWeek*hourlyRate; printf("Gross Pay: $%.21f ",grossPay); 45 46 47 48 49 federal=grossPay* .10; state=grossPay*.029977; fica=grossPay*.061977; medicare=grossPay*.0144827586; netPay=grossPay-federal-state-fica-medicare; 50 51 52 53 printf("Net Pay: $%.21f ", netPay); 54 printf(" "); 55 printf("Deductions "); 56 printf("Federal: $%.21f ", federal); 57 printf("State: $%.21f ", state); printf("FICA: $%.21f ", fica); 59 printf("Medicare: $%.21f ", medicare); 60 61 return 0; 62 63 } 58

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

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

0805360476, 978-0805360479

More Books

Students also viewed these Databases questions