Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question (C programming) Write a program that will convert from Celsius to Fahrenheit and vice versa. The program should also print the table as requested
Question (C programming)
Write a program that will convert from Celsius to Fahrenheit and vice versa. The program should also print the table as requested by the user. Create at least two (2) functions, celsiusToFahrenheit() and fahrenheitToCelsius() to do the conversion. You can also create a menu to simplify the selection process. (Fahrenheit = 9/5 Celsius + 32)
Sample of program output is as shown below:
Welcome to Temperature Converter 1. Celsius to Fahrenheit 2. Fahrenheit to Celcius 3. Print Converter Table 4. End Selection : 1 Please enter value in Celsius: 0 0 degree Celsius is equivalent to 32 degree Fahrenheit 1. Celsius to Fahrenheit 2. Fahrenheit to Celcius 3. Print Converter Table 4. End Selection: 3 Please choose 1 . Celsius or 2. Fahrenheit: 1 Enter your starting value in Celsius: 2 Enter your end value in Celsius: 7 Printing Chart.. Celsius Fahrenheit 35.60 37.40 39.20 41.00 42.80 44.60 1. Celsius to Fahrenheit 2. Fahrenheit to Celcius 3. Print Converter Table 4. End Selection: 4 Press any key to continueStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started