Question: - Write a convert.cpp program to convert temperature from Fahrenheit to Celsius - Prompts the user to enter their temperature (in Fahrenheit). - Converts the
- Write a convert.cpp program to convert temperature from Fahrenheit to Celsius - Prompts the user to enter their temperature (in Fahrenheit). - Converts the temperature to Celsius (cTemp) using the following formula, where fTemp is the temperature in Fahrenheit: cTemp=(fTemp32)5/9 - Prints the temperature in Celsius to the monitor. - If the Celsius temperature is greater than 37, print "You have a fever. Drink lots of liquids and go to bed." to the monitor. - Otherwise, print "You don't have a fever. Go study." to the monitor. HW 2.4 - Write an exam.cpp Ct++program that does the following: - Declares two variables, exam and programs done, of type int. - Prompts the user to enter the value of exam (score) and the value of programs done (\# of programs written) and stores in respective variables. - Outputs the word Passed in an if-else statement provided the value of the variable exam is greater than or equal to 60 and the value of the variable programs done is greater than or equal to 10. - Otherwise, outputs the word Failed
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
