Question: instruction The flowchart the source code (Java program) the output (three sets) In the source code, use comments to state your matric number, name, program,

instruction

The flowchart

the source code (Java program)

the output (three sets)

In the source code, use comments to state your matric number, name, program, and lab assignment number

1. You are asked to compute travel claims for 20 staff of a department and display the total mileage claim for each staff. The mileage rate is RM0.70 for each kilometer (km) for the first 500 km, and RM0.50 per kilometer for the distance beyond the first 500 km. For example, for a trip with distance of 1050 km, the total mileage claim displayed is RM625.00. Write a program that will accept an input the distance of a trip for each staff, as well as calculate and print the total mileage claim for the staff.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!