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.
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.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
Knowledge Booster
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.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education