Question: Pass by Reference Fahrenheit to Celsius Table Pass by Reference Write a program that converts Fahrenheit to Celsius printing a well formatted table user inputs

Pass by Reference Fahrenheit to Celsius Table

Pass by Reference

Write a program that converts Fahrenheit to Celsius

printing a well formatted table

user inputs lower and upper Fahrenheit values

values are calculated in 10 degree Fahrenheit steps starting with lowest value and ending with either the upper value, or the last value less than it that was a 10 degree step.

g. if lower was 0 and upper was 29, then table would print values for 0, 10, and 20.

This program should:

1. Call a function which does the conversion.

2. Have ONLY local variables!!!

3. Do NOT use an array.

4. The function should NOT use the return statement to return any values.

Has return type void.

5. The function will

be passed, BY REFERENCE, the degrees Fahrenheit and degrees Celsius

pass back, BY REFERENCE, the degrees Celsius.

This is automatically done - you dont need a return.

NOTHING else will be passed to, or from the function.

1. main( ) will:

ask the user for the upper and lower Fahrenheit values.

call the function

print a formatted labeled table of the Fahrenheit and Celsius values

Sample output:

Pass by Reference Fahrenheit to Celsius Table Pass by Reference Write a

ZACSAICS2060%C Examples Fahrenheit fahrenheit.exe Welcome to Pam's Fahrenheit to Celsius Converter. This program asks for lower and upper Fahrenheit values and then prints a table with the Fahrenheit values andCelsius conversions Enter lower fahrenheit value 10 Enter upper fahrenheit value 100 Fahrenheit Celsius 10 20 30 40 50 60 70 80 90 100 -12.2 6.7 1.1 10.0 15.6 21.1 26.7 32.2 37.8 Process exited after 5.831 seconds with return value 0 Press any key to continue .. _

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!