Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need help writing this program. Shouldn\'t be to hard for anadvanced programme

ID: 3608863 • Letter: I

Question

I need help writing this program. Shouldn't be to hard for anadvanced programmer.

here is what I need....

 Create a C program that performs the following actions:
1) prompts the user for a Fahrenheit temperature (integer)
2) reads the user's input
2) prompts the user for a distance in feet (integer)
2) reads the user's input
2) prompts the user for a weight in pounds (integer)
2) reads the user's input
3) converts the Fahrenheit temperature to Celsius and kelvin (floating point)
4) converts the distance in feet to meters and inches (floating point)(inches integer)
5) converts the weight in pounds to kilograms (floating point)


The resulting program *must* match the structure chart listed below.

main
|
-----------------------------------
| | |
getInput calc display
|
--------------------
| | |
calcTemp calcDistance calcWeight

and calcWeight *must* match the following prototype exactly.
float calcWeight(int pounds);


this should be a modularly designed program....

here are some example outputs


Example output
--------------
$ ./a.out

Name: programmers name

Please enter a Fahrenheit temperature (integer): 100

Please enter a distance in feet (integer): 100

Please enter a weight in pounds (integer): 100

Original Value Converted to Value Converted to Value
-------- ----- ------------ ----- ------------ -----
Fahrenheit 100 Celsius 37.778 Kelvin 310.778
Feet 100 Meters 30.480 Inches 1200
Pounds 100 Kilograms 45.360

$ ./a.out

Name: programmers name

Please enter a Fahrenheit temperature (integer): 212

Please enter a distance in feet (integer): 5280

Please enter a weight in pounds (integer): 50

Original Value Converted to Value Converted to Value
-------- ----- ------------ ----- ------------ -----
Fahrenheit 212 Celsius 100.000 Kelvin 373.000
Feet 5280 Meters 1609.344 Inches 63360
Pounds 50 Kilograms 22.680


thanks very very much in advanced. I can write this in main butwriting in modularized is giving me a very hard time....



Explanation / Answer

please rate - thanks take a look at this post-it should help /computer-science-topic-5-474844-cpi0.aspx