0% found this document useful (0 votes)
2 views1 page

Paint Cost Calculation Module

The document outlines a module for calculating the cost of painting based on square footage and price per gallon of paint. It includes steps for inputting values, calculating the number of gallons needed, labor hours, paint charges, and total costs. The module displays the results for gallons of paint, hours of labor, paint charges, labor charges, and total cost.

Uploaded by

abneradante10
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Paint Cost Calculation Module

The document outlines a module for calculating the cost of painting based on square footage and price per gallon of paint. It includes steps for inputting values, calculating the number of gallons needed, labor hours, paint charges, and total costs. The module displays the results for gallons of paint, hours of labor, paint charges, labor charges, and total cost.

Uploaded by

abneradante10
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

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

You might also like