Unformatted text preview: to the calling program. Write a function that receive 3 arguments (an integer, a long and a string) representing a person’s age, id and name and print a report nicely formatted using setw() and other iomanip formats. Temp_Convertor- Celsius : double- Fahrenheit : double- Kelvin : double + Set_Fah(double ): void // Sets Fahrenheit to the given value + Print():void // prints the temperatures in Fahrenheit, Celsius and Kelvin separated by a tab + To_Kelvin():double // Calculates and sets temperature to Kelvin Tk = Tc + 273 + To_Celsius():double // Calculates and sets temperature to Celsius Tc = 5/9*(T f-32) Temp_Convertor() Temp_Convertor (double )...
View Full Document
This note was uploaded on 04/06/2009 for the course CSCI 101L taught by Professor Ghyam during the Spring '07 term at USC.
- Spring '07
- Computer Programming