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:
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started