Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

- Write a convert.cpp program to convert temperature from Fahrenheit to Celsius - Prompts the user to enter their temperature (in Fahrenheit). - Converts the

image text in transcribed
- 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

3. What are the current trends in computer hardware platforms?

Answered: 1 week ago