Question: Write a C program to compute and display a person's weekly salary as determined by the following specification: If the hours worked are less than

Write a C program to compute and display a person's weekly salary as determined by the following specification: If the hours worked are less than or equal to 40, the person receives $8.00 per hour; else the person receives $320.00 plus $12.00 for each hour worked over 40 hours. The program should request the hours worked as input and should display the salary as output.

How many runs/test cases should you make for the program written in Exercise 2a to verify that it is operating correctly? What data should you input in each of the program runs? Run the program as many times as required to test all the cases and show the results. Note: Test 4 or more different scenarios.

Thanks!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!