Write a complete C program for each of the following problem
situations. Enter each program into the computer,
being sure to correct any typing errors. When you are sure that it
has been entered correctly, save the program,
then compile and execute. Be sure to include prompts for all input
data, and label all output.
a)
b)
c)
Convert a temperature reading in degrees Fahrenheit to degrees Celsius, using the formula C = (5/9) (F-32) Test the program with the following values: 68, 150, 212, 0, -22, -200 (degrees Fahrenheit).
Calculate the volume and area of a sphere using the formulas V = 417313 A = 42 Test the program using the following values for the radius: 1, 6, 12.2, 0.2.
Calculate the mass of air in an automobile tire, using the formula PV = 0.37m(T + 460) where P = pressure, pounds per square inch (psi) V = volume, cubic feet m = mass of air, pounds 1 = temperature, degrees Fahrenheit The tire contains 2 cubic feet of air. Assume that the pressure is 32 psi at room temperature.
Write a complete C program for each of the following problem situations. Enter each program into the computer, being sur
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Write a complete C program for each of the following problem situations. Enter each program into the computer, being sur
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!