Question: Celsius to Fahrenheit (temperature.cpp) Write a program that will ask for a Celsius temperature (Requirement: use int for an input), convert it to the Fahrenheit

 Celsius to Fahrenheit (temperature.cpp) Write a program that will ask for
a Celsius temperature (Requirement: use int for an input), convert it to
the Fahrenheit temperature and round it to the nearest integer. Use the
following formula for conversion. F=9/5 +32 where F is the Fahrenheit temperature
Celsius to Fahrenheit (temperature.cpp) Write a program that will ask for a Celsius temperature (Requirement: use int for an input), convert it to the Fahrenheit temperature and round it to the nearest integer. Use the following formula for conversion. F=9/5 +32 where F is the Fahrenheit temperature and C is the Celsius temperature. e.g. 23 Celsius = 73.4 Fahrenheit rounded down to 73 27 Celsius = 80.6 Fahrenheit rounded up to 81 Test your program using the given data below. Your interface has to look exactly like the test runs below. [kslott@empress cs111] ./a.out Enter a temperature in Celsius: 27 blank line 27 C-81 F blank line [kslott@empress cs111]./a.out Enter a temperature in Celsius: 4 4C-39 F [kslott@empress cs111]./a.out Enter a temperature in Celsius: 101 101 C = 214 F 101 C = 214 F What time is it? (time.cpp) The user will enter a time in seconds (the number of seconds that have passed since midnight). Your program will convert it to hours, minutes and seconds. e.g. 29110 seconds - 8 hours 5 minutes 10 seconds Test your program using the given data below. Your interface has to look exactly like the test runs below. [kslott@empress cs111] /a.out Enter the time in seconds: 29110 blank line 8 hours 5 minutes 10 seconds blank line [kslott@empress cs111]./a.out Enter the time in seconds: 51023 14 hours 10 minutes 23 seconds

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!