Hello,
I am new to C programming, can anyone help me solving this issue, the actual question is actually longer.. i edited the question to make it shorter so i could try it my own.
The following Table 1 that manipulates a two-dimensional array stores the work hours for three employees. Each row stores the employee’s seven-day work hours with seven columns. Write, run and test a C program that reads the hours, calculates total hours and salary and displays all fields, employee’s total hours and salary.
Note: Weekdays salary rate: RM4.50 per hour
Weekend salary rate : RM8.00 per hour
PTimer |
Mon |
Tue |
Wed |
Thu |
Fri |
Sat |
Sun |
Adam |
3 |
4 |
5 |
5 |
3 |
4 |
2 |
Ricky |
4 |
3 |
4 |
6 |
5 |
4 |
3 |
Jane |
4 |
5 |
5 |
3 |
3 |
4 |
4 |
TABLE 1: Part-time Working Hours
Sample output:
Ptimer |
Mon |
Tue |
Wed |
Thu |
Fri |
Sat |
Sun |
|
Total Hours |
Salary |
Adam |
3 |
4 |
5 |
5 |
4 |
4 |
2 |
|
27 |
$142.50 |
… |
… |
… |
… |
… |
… |
… |
… |
|
… |
… |
… |
… |
… |
… |
… |
… |
… |
… |
|
… |
… |
TABLE 2: Sample output