Temp conversion
purpose: coding a program that shows temperatures and allows conversion of temperatures. Allows the user to put in valid temperatures to convert
program code:
- replit.com/@JoelKasthurirat/JoelTemperatureConveraion#main.cpphttps://replit.com/@JoelKasthurirat/JoelTemperatureConveraion#main.cpp
joeltemperatureconveraion.zip |
Sample Code
Welcome to Temperature Conversion Program
Please enter in your name: joel
Thank You
Press 1 to convert from celsuis to fahrenheit
Press 2 to convert from fahrenheit to celsuis
Press 3 to convert to celsius from kelvin
Press 4 to convert to fahrenheit from kelvin
Enter number: 5
Invalid Input. Try again: 2
Please enter the temperature you would like to convert from fahrenheit to celsuis: 200
200 in fahrenheit is 93.3333 celsius
To repeat y-yes, n-no. Enter choice: y
Welcome to Tempurature Conversion Program
Please enter in your name: joel
Thank You
Press 1 to convert from celsuis to fahrenheit
Press 2 to convert from fahrenheit to celsuis
Press 3 to convert to celsius from kelvin
Press 4 to convert to fahrenheit from kelvin
Enter number: 4
Enter temperature to convert from fahrenheit to kelvin: 100
100 in celsius 310.928 Kelvin
To repeat y-yes, n-no. Enter choice: n
Goodbye. Thank You For Visting
Please enter in your name: joel
Thank You
Press 1 to convert from celsuis to fahrenheit
Press 2 to convert from fahrenheit to celsuis
Press 3 to convert to celsius from kelvin
Press 4 to convert to fahrenheit from kelvin
Enter number: 5
Invalid Input. Try again: 2
Please enter the temperature you would like to convert from fahrenheit to celsuis: 200
200 in fahrenheit is 93.3333 celsius
To repeat y-yes, n-no. Enter choice: y
Welcome to Tempurature Conversion Program
Please enter in your name: joel
Thank You
Press 1 to convert from celsuis to fahrenheit
Press 2 to convert from fahrenheit to celsuis
Press 3 to convert to celsius from kelvin
Press 4 to convert to fahrenheit from kelvin
Enter number: 4
Enter temperature to convert from fahrenheit to kelvin: 100
100 in celsius 310.928 Kelvin
To repeat y-yes, n-no. Enter choice: n
Goodbye. Thank You For Visting