C++ - Lab 4
C++ - Lab 4
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:
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