Consider the following programming problem a c program is


Question: Consider the following programming problem: A C program is required that calculates and displays the weekly gross pay and net pay of two individuals. The first individual is paid an hourly rate of $8.43 andthe second individual is paid an hourly rate of $5.67. Both individuals have 20 percent of their gross pay with held for income tax purposes and both pay 2 percent of their gross pay, before taxes, for medical benefits. using the following sample data: The first person works 40 hours during the week and thesecond person works 35 hours. Write a program to prompt the user for the number of hours worked forboth employees and display their total earnings as shown Hours Income Tax Medical Benefits Total Earnings Employee 1 40 ________ ______ _________Employee 2 35 ________ ______ _________

Solution Preview :

Prepared by a verified Expert
Mathematics: Consider the following programming problem a c program is
Reference No:- TGS02381965

Now Priced at $10 (50% Discount)

Recommended (93%)

Rated (4.5/5)