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 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
Get step-by-step solutions from verified subject matter experts
