Question: 1 . Write a program that repeatedly asks the user for a scale F or a C ( for Fahrenheit or Celsius ) on one
Write a program that repeatedly asks the user for a scale F or a C for
"Fahrenheit" or "Celsius" on one line followed by an integer
temperature on the next line. It then converts the given temperature to
the other scale. Use the formulas:
F C
C F
Exit the loop when the user types Qq Assume that all input is correct.
For example:
Enter Scale : F
Enter Temperature:
Celsius Temperature: C
Enter Scale : C
Enter Temperature:
Fahrenheit Temperature: F
Enter Scale : Q
done
Use QTspim and provide output
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
