Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Write a program that declares and initializes a variable representing a made-up temperature in Fahrenheit The program will print to the screen both the
1. Write a program that declares and initializes a variable representing a made-up temperature in Fahrenheit The program will print to the screen both the Fahrenheit temperature and the equivalent Celsius temperature. For example, if temperature is set up to 36.5, a sample program output would be: Temp in Fahrenheit: 36.5, Temp in Celsius: 2.5 2. Write a program that will ask the user to enter the total number of seconds. The program will print the number of hours, minutes and seconds. For example, if the numbers of seconds entered is: 4487: the output will be: 1 hour, 14 minutes, 47 seconds Criteria Ratings Pts Fahrenheit temperature declaration and initialization Conversion to Celsius and printing both temperatures to the screen \begin{tabular}{l|l} 10 pts & 0 pts \\ Full Marks & No Marks \end{tabular} 10pts 15pts Input for seconds Correct output for problem 2 Successful compilation Proper indentation Total Points: 100
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started