Sie sind auf Seite 1von 1

King Saud University College of Applied Studies and Community Service Database and Programming Diploma Second Semester

1429/1430 H C++ Programming Course CSC 1201 Tutorial (1) Revision 1- Write a program which will convert temperature from Fahrenheit to Celsius. Ask the user to enter the Fahrenheit degree, and then print the equivalent Celsius degree. The formula for converting Fahrenheit to Celsius is: C = 5 / 9 * (F 32). Instructor: Fatimah Alakeel

2- Write a program that reads weights of five objects in pounds, and then prints the average weight in kilograms. (1 kg = 2.2 pounds)

3Write a program that reads data for an employee and prints the name and salary of the employee. The data read is : a. Name. b. Number of hours worked. c. Hourly wage. .Modify the program to read and print data for three employees

Das könnte Ihnen auch gefallen