Write a program that asks the user for a Celsius temperature. Convert Celsius temperatures to Fahrenheit temperatures.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter6: Using Arrays
Section: Chapter Questions
Problem 3E
icon
Related questions
Question

Write a program that asks the user for a Celsius temperature. Convert Celsius temperatures to Fahrenheit temperatures.

 

The formula is


F = (9/5) * Celsius + 32

F is the Fahrenheit temperature and C is the Celsius temperature.

 

Create a display that will show the Celsius temperature and its equivalent Fahrenheit temperature. You should ask the user to enter the value for Celsius.

 

Do not allow the user to enter a value less than -50 or higher than 100. If so, the program should end.

 

Note: the numbers 9, 5, and 32 in the formula are integers and should be assigned to respective variables. 

 

There are three screenshots for you to use to verify your output (there should also be a check that you have not entered a number less than -50)

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 4 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
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT