Question

Temperature Converter Create a temperature conversion program that will convert the following to Fahrenheit: Celsius Kelvin...

Temperature Converter Create a temperature conversion program that will convert the following to Fahrenheit: Celsius Kelvin Newton Your program should take a character which represents the temperature to convert from and a value to be converted to using the following specification: C - Celsius K - Kelvin N - Newton In addition your program should take in the following character to exit the program: X - eXit the program The numeric input for your program should be of type double. The program will continue to input and convert temperatures until the 'X' character is input for the conversion type. Your input should be in the following form: 60 C This would convert the 60 degrees Celsius to Fahrenheit and should output a value of 140 The following equations can be used to convert the different temperature types to Fahrenheit: Kelvin - F = (K - 273.15) * 1.8000 + 32 Celsius - F = C * 9/5 + 32 Newton - F = N * 60 / 11 + 32 Required: You are not allowed to use a do-while loop for this program. Use a while loop in conjunction with a switch statement. Please review the information on primed loops. You must prime your loop with input from the keyboard before the while loop starts. The program should continue converting temperatures until X is entered as a conversion type.

0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 10 more requests to produce the answer.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
Temperature Converter Create a temperature conversion program that will convert the following to Fahrenheit: Celsius Kelvin...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
  • General overview This program will convert a set of temperatures from Fahrenheit to Celsius and Kelvin....

    General overview This program will convert a set of temperatures from Fahrenheit to Celsius and Kelvin. Your program will be reading in three double values. The first values are starting and ending temperatures. The third value is the increment value. There is no prompt for the input. There is an error message that can be displayed. This is discussed later. You need to display output for all of the values between the starting and ending values. First two values are...

  • C# Temp. Converter program. Create a Celsius and Fahrenheit Temperature Converter application. The application must have...

    C# Temp. Converter program. Create a Celsius and Fahrenheit Temperature Converter application. The application must have 2 Labels (each one of them assigned only to Celsius and Fahrenheit), 2 TextBoxes (each one of them assigned only to Celsius and Fahrenheit), only 1 Convert Button, 1 Clear Button, and 1 Exit Button. Also, 1 Error message label which will display the error messages. The application should only allow the user to enter the desired temperature just in one of the TextBoxes...

  • FOR PYTHON Write a Python program that can convert a Fahrenheit temperature to Celsius, or vice...

    FOR PYTHON Write a Python program that can convert a Fahrenheit temperature to Celsius, or vice versa. The program should use two custom functions, f_to_c and c_to_f, to perform the conversions. Both of these functions should be defined in a custom module named temps. Custom functionc_to_f should be a void function defined to take a Celsius temperature as a parameter. It should calculate and print the equivalent Fahrenheit temperature accurate to three decimal places. Custom function f_to_c should be a...

  • Write a Python program that can convert a Fahrenheit temperature to Celsius, or vice versa. The...

    Write a Python program that can convert a Fahrenheit temperature to Celsius, or vice versa. The program should use two custom functions, f_to_c and c_to_f, to perform the conversions. Both of these functions should be defined in a custom module named temps. Custom function c_to_f should be a void function defined to take a Celsius temperature as a parameter. It should calculate and print the equivalent Fahrenheit temperature accurate to three decimal places. Custom function f_to_c should be a value-returning...

  • Convert the following temperatures from the Fahrenheit scale to the Celsius and Kelvin scales. (a) The...

    Convert the following temperatures from the Fahrenheit scale to the Celsius and Kelvin scales. (a) The seawater temperature near Hawaii is about 76°F. in Celsius °C in Kelvin К (b) McDonald's was sued for serving dangerously hot coffee. Their coffee was served between 180°F and 190°F. (Give your answers in this part to at least three significant figures.) 180 F in Celsius °C in Kelvin К 190°F: in Celsius °C in Kelvin К (c) The coldest day recorded on Earth...

  • 8.) Write a C++ program to convert temperature in degrees Fahrenheit to degrees Celsius. This is...

    8.) Write a C++ program to convert temperature in degrees Fahrenheit to degrees Celsius. This is the equation for this conversion: Celsius = 5.0/9.0 (Fahrenheit-32.0) Have your program convert and display the Celsius temperature corresponding to 98.6 degrees Fahrenheit. Your program should produce the following display (replacing the underlines with the correct values): For a Fahrenheit temperature of-_ degrees, the equivalent Celsius temperature is degrees

  • Create a program in Python that will allow the user to enter a temperature in Fahrenheit...

    Create a program in Python that will allow the user to enter a temperature in Fahrenheit which will then be converted to degrees Celsius. The program will keep asking the user for a Fahrenheit temperature until the user enters Q to quit. After each conversion the program needs to print out the degrees Celsius. The input prompts for this problem need to look like the following: Degrees Fahrenheit: Continue: For these input prompts watch the capitalization and spacing. There are...

  • Needs to be solved in MATLAB Problem 4 Produce a conversion table for Celsius and Fahrenheit...

    Needs to be solved in MATLAB Problem 4 Produce a conversion table for Celsius and Fahrenheit temperatures. The input to the function should be two numbers: Tlower and Tupper Which define the lower and upper range, in Fahrenheit, for the table The output of the function should be a two column matrix with the first column showing the temperature in Fahrenheit, from Tlower (32 °F) to Tupper (212 °F) with an increment of 5 °F, and the second column showing...

  • Convert Celsius to Fahrenheit. (Programming Exercise 2.1) or Convert Fahrenheit to Celsius. Write a program with...

    Convert Celsius to Fahrenheit. (Programming Exercise 2.1) or Convert Fahrenheit to Celsius. Write a program with reads a Celsius degree value from the console or a Fahrenheit degree value from the console , then converts it to Fahrenheit or Celsius and displays the result. The formulas for the conversion are as follows: Fahrenheit = (9 / 5) * Celsius + 32 Celsius = (5/9) *(Fahrenheit -32) Write this program in Java please

  • ​Convert the following temperatures from the Fahrenheit scale to the Celsius and Kelvin scales.

    Convert the following temperatures from the Fahrenheit scale to the Celsius and Kelvin scales. (a) The seawater temperature near Hawaii is about 76°F.(b) McDonald's was sued for serving dangerously hot coffee. Their coffee was served between 180°F and 190°F. (Give your answers in this part to at least three significant figures.) 180°F.(c) The coldest day recorded on Earth was - 129°F in Vostok, Antarctica. 

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT