Question: Round the smaller value down to the nearest integer. Round the larger value up to the nearest integer. So , if the smaller temperature is
Round the smaller value down to the nearest integer. Round the larger value up to the nearest integer. So if the smaller temperature is it would be rounded to If the larger temperature is it would be rounded to If the larger temperature is it would remain as So if and is entered, the range printed would be through That means the numbers entered are within the range printed.
What if the numbers were negative? The rounding would be opposite. If a range of to the range to print would be to
The table should show the values rightjustified in columns, with the Fahrenheit values shown as integers no decimal point and with the Celsius values displayed with two digits after the decimal point. Make sure you have wide enough formatting if the numbers get larger or have a negative sign.
Do not use the C functionscommands: floor, ceil, round, break, exit, continue, or swap.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
