Question: 1. Problem A 1.1 Specification Write a C program to convert measurements from inches to centimetres (1 inch = 2.54 cm). The program reads a

 1. Problem A 1.1 Specification Write a C program to convert

1. Problem A 1.1 Specification Write a C program to convert measurements from inches to centimetres (1 inch = 2.54 cm). The program reads a measurement in inches and outputs the equivalent measurement in centimetres. It then continues to read and convert the next measurements until a zero is entered. 1.2 Implementation The program should be named labla.c use a loop to read and convert one input at a time. The loop ends and the program terminates when the input is zero. display before each input the following prompt: Enter the measurement in inches> use scanf to read inputs, which are measurements in inches, of type float. display the outputs in centimetres with two decimal digits. 1.3 Sample Inputs/Outputs: indigo 336 labla Enter the measurement in inches>2 5.08 cm Enter the measurement in inches>5.5 13.97 cm Enter the measurement in inches>10.765 27.34 cm Enter the measurement in inches>0 EECS 2031 Page 2 of 3 indigo 337

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!