Write a program that converts Celsius temperatures to Fahrenheit # temperatures. The formula is as follows F = (9/5)C + 32. The # program should ask the user to enter a temperature in Celsius, # then display the temperature converted to Fahrenheit. # ***************************************************************************** # Note: You must use celsius and fahrenheit variables. The input must have an # appropriate label such as "Enter temperature in Celsius:". Both temperatures # must be formatted with a single digit and the result must incorporate both # the original temperature in Celsius and the converted temperature in # Fahrenheit in the following format: # 'Temperature of C Celsius is equivalent to F Fahrenheit!' # In addition, the above result must be displayed using 2 print() statements # as one way of breaking the single long statement over 2 lines.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter6: Looping
Section: Chapter Questions
Problem 2PE
icon
Related questions
Question
Write a program that converts Celsius temperatures to Fahrenheit # temperatures. The formula is as follows F = (9/5)C + 32. The # program should ask the user to enter a temperature in Celsius, # then display the temperature converted to Fahrenheit. # ***************************************************************************** # Note: You must use celsius and fahrenheit variables. The input must have an # appropriate label such as "Enter temperature in Celsius:". Both temperatures # must be formatted with a single digit and the result must incorporate both # the original temperature in Celsius and the converted temperature in # Fahrenheit in the following format: # 'Temperature of C Celsius is equivalent to F Fahrenheit!' # In addition, the above result must be displayed using 2 print() statements # as one way of breaking the single long statement over 2 lines.
Expert Solution
Explanation

1) Since programming language is not specified I have written program in python

1) Below is  program that converts Celsius temperatures to Fahrenheit using formula F = (9/5)C + 32

  • It ask user to enter a temperature in Celsius
  • It convert Celsius temperatures to Fahrenheit using formula F = (9/5)C + 32
  • It then display Temperature of C Celsius is equivalent to F Fahrenheit! using two print statement where %.1f formats C and F display in for one decimal place and end = '' avoid default new line between two statement

2) Save Program in python file and run

 

trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Constants and Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,