1. Write program that calculates mileage reimbursement for a salesperson at a rate of RM 0.65 per kilometer. Your program should interact with the user in this manner :
MILEAGE REIMBURSEMENT CALCULATOR
Enter beginning odometer reading: 13505
Enter ending odometer reading: 13810
You traveled 305.4 kilometers. At RM 0.65 per kilometer,
Your reimbursement is RM 198.25
No comments:
Post a Comment