Question: TASK MUST BE IN C++, NOT JAVA OR using JAVA LIBRARY Task 3 (20%): MIX, a software company provides petrol allowance for staffs that are
TASK MUST BE IN C++, NOT JAVA OR using JAVA LIBRARY
Task 3 (20%):
MIX, a software company provides petrol allowance for staffs that are frequently on travelling outstation. The Petrol allowance claim rate is shown in the table below.
| Kilometer | Rate |
| First 10 Km | RM1.80 per km |
| Next 50 Km (from 11 to 60) | RM1.50 per km |
| Next 50 Km (from 61 to 110) | RM1.30 per km |
| Beyond 111 Km | RM1.00 per km |
If the total allowance is morethan RM150.00 than an additional bonus of 5% is added as their incentive amount. Write a java application program to read the name of the staff, the distance that has been travelled, and print out the total allowance that the staff received along with ALL the particulars.
| Program (20 pts) | (Excellent) | (Good) | (Fair) | (Poor) |
| Design of logic, testing, verification and validation, standards (interactive, user-friendliness) creative thinking | Program is logically well designed. Including validation (15-20) | Program has slight logic errors that do no significantly affect the results (10-14) | Program has significant logic errors (9-5) | Program is incorrect (0-4) |
|
|
|
|
|
|
|
| ||||
|
| ||||
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
