1. Create a C++ program that will calculate the salary of
workers in a company. Salary will be calculated based on
hours work and rate per hour. The program will
terminate if user enter hour < 0.
2. Create a C++ program that will display message based on
marks entered. Message “You are great” will be displayed
if marks is greater or equal to 50. otherwise program will
display “Try again”. The program will be terminate if user
enter 0 as mark.
REPETITION ENHANCEMENT
1. Mr. Danial owns a Yayasan Marketing with (10) salespersons.
Write the algorithm to determine the staff of the month based
on the highest sales amount achieved. The program reads the
staff ID and sales amount of each saleperson, then displays
highest sales amount.
2. Mr. David owns a car dealership. Write the algorithm to
determine the staff of the month based on the highest sales
amount achieved. The program read the staff ID and sales
amount until user enter staff ID =0. The program will displays
total sale amount and number of staff for the month, also
displays the staff ID and the highest sales amount.
DISCOVERING COMPUTERS 2012: CHAPTER 13 52