Question: The following program flowchart is created for a program to calculate petrol allowance for a company. Note: Odometer is an instrument for measuring the distance

The following program flowchart is created for a program to calculate petrol allowance for a company.

Start Input: Beginning odameter reading (BOR) Ending odometer reading (EOR] Mileage (M) = EOR - BOR Petrol Allowance (M-100)

 

Note: Odometer is an instrument for measuring the distance travelled by a wheeled vehicle.

 

REQUIRED:

Create a program based on the above flowchart.

Start Input: Beginning odameter reading (BOR) Ending odometer reading (EOR) Mileage (M) = EOR - BOR Petrol Allowance = (M-100) * 01.6 + (100 * 0.70) Petrol Allowance = M*0.7 M

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

code include int mainvoid float BOREOR BOR for beginnig odo... View full answer

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

Document Format (2 attachments)

PDF file Icon

6093c9a5ac2cc_209779.pdf

180 KBs PDF File

Word file Icon

6093c9a5ac2cc_209779.docx

120 KBs Word File

Students Have Also Explored These Related Accounting Questions!