65.5k views
9 votes
Temperature converter. This program should prompt the user for two arguments, first a decimal number and second, a single letter, either C or F. The decimal represents a temperature, the character represents which system that degree is in (50.0 F would be 50.0 degrees Fahrenheit etc.). This program should take the given number and convert it to a temperature in the other system. The output string format should be degree(s) is equal to degree(s) . Eg. input 0 C would give the string 0.0000 degree(s) C is equal to 32.0000 degree(s) F. You can assume that either F or C will be given for input, no need to account for invalid input.

User Izy
by
3.3k points

1 Answer

2 votes

Answer:


\boxed{ \tt{I \: wrote \: the \: program \:with \:( c++)}}

Temperature converter. This program should prompt the user for two arguments, first-example-1
User Starson Hochschild
by
3.4k points