Sample C++ Problems (PET SHOP)

A Pet Shop named OwnAPet wants to have a computarized system to calculate and print information for its 4 employees.

Write a C++ payroll program for the bossku.Your program must be able to do this tasks.
a) *A 1D array which is used to store list of employee ID's.
* A 2D array which consists of four columns. The first column is used to store the list of hours worked, second column for storing the list of rates of pay, third column is for  storing the list of regular pays, the fourth column for  storing the list of overtime pays and the fifth column is for storing the list of total pays.

(b) The program will read the data of the employees consisting of the employee IDs, hours worked and rates of pay from the keyboard.

(c) The program will display the payroll information of the employees onto the screen.

(d) Besides function main(), the program needs to define four (4) other functions as described in Table 4. You should  use appropriate arguments (based on Table 4) for each function.

(e) Figure 3 shows an example run of the program with the keyboard inputs whereas Table 5 shows the assessment criteria.

Solution





ni lah output dia...so thanks for reading and stopping by here guys...see you next time.

Post a Comment

0 Comments