0% found this document useful (0 votes)
10 views

C++ - Lab 4

Uploaded by

mustafa ghorab
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

C++ - Lab 4

Uploaded by

mustafa ghorab
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Menoufia University Level: Sophomore

Faculty of Engineering Computer Languages & Applications


Mechanical Power Engineering Dept. Code: GEN 241
Shebin El Kom Fall Semester 2023-2024

Lab 4
[1] Write a C++ program to compute and display a person’s weekly salary as determined by the
conditions; If the hours worked are less than or equal to 40, the person receives $8.00 per hour;
otherwise, the person receives $320.00 plus $12.00 for each hour worked over 40 hours. The
program should request the hours worked as input and display the salary as output.

[2] An online book club awards points to its customers based on the number of books purchased each
month. Points are awarded as follows:

Books Purchased Points Earned


0 0
1 5
2 15
3 30
4 or more 60

Write a program that asks the user to enter the number of books purchased this month
and then displays the number of points awarded.

[3] Write a program to display the information of COVID 19 vaccination card. The outputs
should include the type of vaccination, registration number (20 digits), person name (four
words), date of the first dose (D/M/Y), and the expected date of the second dose (D/M/Y)
after 21 days. The program should test the day to be within a range from 1 to 31 and the
month to be within a range from 1 to 12 otherwise asking to enter a correct date.

Page 1 of 1

You might also like