You are on page 1of 3

FUNDAMENTALS OF PROGRAMMING

(CEC213)

NAME: ALEMANJOH DERNHARY ASONGKENG


MATRICULE: CT22A211
DEPARTMENT: MECHANICAL ENGINEERING


ALGORITHM

Step 1. Start

Step 2. Declare integer : ins_cost, num_hours, cost_parts, total_charge, ans

Step 3. Enter ins_cost

Step 4. Was work done on the vehicle? (Yes or No)

Step 5. If (yes)

Enter num_hours, num_parts and cost_parts

total_charge = (5000*num_hours) + (cost_parts*num_parts)

else

total_charge = ins_cost

Step 6. Print “the amount is total_charge”

Step 7. Stop

You might also like