Question: Write it in C programming ! Write a program that reads a weight value in stone, pound and ounce and converts the reading to ounces.

Write it in C programming !  Write it in C programming ! Write a program that reads

Write a program that reads a weight value in stone, pound and ounce and converts the reading to ounces. A stone is 14 pounds and a pound is 16 ounces. Below is a sample output Enter stones: 2 Enter pounds: 3 Enter ounces: 6 The total weight is 502 oz. -3 Validate the input at the start of the program using one if-statement. If any input is negative, print the message shown below. After you print the error message, shut down the program immediately by calling the function: exit (1)i Enter stones: 12 Enter pounds:-8 Enter ounces: 23 This input is invalid

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!