Module
Main module () price_calculation(square_foot,
price_gallon)
Declare Real income
Declare Real square_foot,
price_gallon
Set num_gallons =
square_foot * ( 1 / 120)
Display "Enter square feet to be
Set hours_labor =
painted"
num_gallons * 8
Set paint_charges =
num_gallons * price_gallon
Input number
Set total_labor =
hours_labor * 150.00
Display “"Enter price per
gallon of paint"
Set total_labor =
hours_labor * 150.00
Display "Gallons of
Call sold (square_foot, paint:", format(num_gallons, '.0f'
price_gallon)
Display "Hours of labor:",
format(hours_labor, '.0f'), "hours"
End module
Display Paint charges:
Php", format(paint_charges, '.2f'
Display "Labor charges:
Php", format(total_labor, '.2f'
"Total cost: Php",
format(total_cost, '.2f'
End module