[Solved] SOLVED:a program that converts temperatures between Fahrenheit and Celsius

30 $

File Name: SOLVED:a_program_that_converts_temperatures_between_Fahrenheit_and_Celsius.zip
File Size: 697.08 KB

SKU: [Solved] SOLVED:a program that converts temperatures between Fahrenheit and Celsius Category: Tag:

Or Upload Your Assignment Here:


Write a program to converts temperatures between Fahrenheit and Celsius. Your program should print a brief message describing what it does, and then prompt the user to enter “1” if they would like to convert a Fahrenheit number to Celsius, or “2” to convert a Celsius number to Fahrenheit. Then, allow the user to enter the number to be converted. Your program should call a function to perform the conversion and display the resulting value to the screen.Helpful Hints:C= (5.0/9.0 * (F-32)); C = temperature in degrees Celsius, F = temperature in degrees FahrenheitF= (9.0/5.0 * C+32); C = temperature in degrees Celsius, F = temperature in degrees FahrenheitWhen you integer division, the result is always an integer so all decimal numbers are truncated and not rounded. For example, 5/6=0 when it comes to integers. Keep this in mind when doing your conversions. Also, order of operations count!

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] SOLVED:a program that converts temperatures between Fahrenheit and Celsius
30 $