Answer:
Program Lesson1_Program3;
Var
InspectionCost, hoursworked, costperhour, costofparts, Totalcost, Totalworkingcostintotalhours : Integer;
Begin {no semicolon}
InspectionCost:=75; costofparts:=0; costperhour:=0;
Write('Input Number of hours worked:');
Readln(hoursworked);
Totalworkingcostintotalhours:= costperhour * hoursworked;
Writeln('Input cost of parts:');
Readln(costofparts);
Totalcost:=InspectionCost + Totalworkingcostintotalhours + costofparts;
if Totalcost < 120 then
Totalcost:=75
else
Totalcost:=InspectionCost + Totalworkingcostintotalhours + costofparts;
Writeln('Totalcost=',Totalcost);
Readln;
End.
Explanation:
Please check the answer section.