Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Main module
- Declare Quantityofpaint as int
- Declare Laborhours ,Paintcost,Totalpaintcost as float
- Declare Laborcharges,Totalcost,Wallspace as float
- Display "Enter the total wall space to be painted in square units: "
- Input Wallspace
- Set Quantityofpaint = Wallspace
- Set Laborhours = 8 * Wallspace
- Display “Enter the price of paint per gallon”
- Input Paintcost
- Set Totalpaintcost = Paintcost * Wallspace
- Display “Input the hours of labor: “
- Input Laborhours
- Set Laborcharges = 20 * Laborhours
- Set Totalcost = Totalpaintcost + Laborcharges
- Display “The number of gallons of paint required is “ Quantityofpaint
- Display “The hours of labor required is “ Laborhours
- Display “The cost of the paint is” Totalpaintcost
- Display “The labor charge is” Laborcharges
- Display “The total cost of the paint job is” Totalcost
- End Main module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement