0% found this document useful (0 votes)
14 views1 page

Lab 03 Input and Output: All Scripts Should Be Stored in Your Firstlastname Folder and Have Clear Names

The document provides instructions for 10 programming problems to be solved for a lab assignment. The problems involve writing programs to: 1) input and sum 3 numbers and calculate average, 2) calculate age given year of birth and current year, 3) calculate net salary from gross salary and tax percentage, 4) convert Celsius to Fahrenheit, 5) calculate dozens of eggs and remaining eggs from a total, 6) calculate total grade from midterm and final grades, 7) calculate area of a garden and number of trees that can fit, 8) calculate cost after discount and tax for a shop, 9) calculate flight time given distance and speed, and 10) convert seconds to hours, minutes, seconds. Students are instructed to name files

Uploaded by

Bishoy Emile
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views1 page

Lab 03 Input and Output: All Scripts Should Be Stored in Your Firstlastname Folder and Have Clear Names

The document provides instructions for 10 programming problems to be solved for a lab assignment. The problems involve writing programs to: 1) input and sum 3 numbers and calculate average, 2) calculate age given year of birth and current year, 3) calculate net salary from gross salary and tax percentage, 4) convert Celsius to Fahrenheit, 5) calculate dozens of eggs and remaining eggs from a total, 6) calculate total grade from midterm and final grades, 7) calculate area of a garden and number of trees that can fit, 8) calculate cost after discount and tax for a shop, 9) calculate flight time given distance and speed, and 10) convert seconds to hours, minutes, seconds. Students are instructed to name files

Uploaded by

Bishoy Emile
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Cairo University Faculty of Engineering Credit Hour System GENN004

Lab 03 Input and Output


All scripts should be stored in your FirstLastName folder and have clear names 1. Write a program that inputs three numbers and prints their sum and average. 2. Write a program that calculates how old are you given the year of birth and current year. 3. Write a program that calculates the net salary given the gross salary and the taxes percentage. 4. Write a program that inputs the temperature degree in Celsius and prints out the temperature in Fahrenheit, where (Tf = 9/5 * Tc +32). 5. Write a program that given the total number of eggs and calculates the number of dozens and the remaining eggs. E.g. input = 30 egg, output = 2 dozens and 6 eggs. 6. Write a program that inputs the midterm grade of a student and the final grade then it should print out the total grade of the student. 7. Write a program that given the width and length of a garden and prints the area of the garden. Also calculate and print area needed for each tree so that we can plant 10 trees on this garden. 8. Write a program for a shop, the program reads the cost, the discount percentage and the taxes percentage and calculates the amount of money paid. 9. Write a program to determine the flying time between two cities given the distance between them and the average speed of the airplane. 10. Write a program that reads the amount of time in seconds and prints the equivalent hours, minutes and seconds. E.g. input = 100 seconds, output = 0 hours, 1 minutes and 40 seconds.

Lab 03

1/1

You might also like