Advertisement
Guest User

Pseudo1

a guest
Jun 16th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. Main module
  2. Declare Quantityofpaint as int
  3. Declare Laborhours ,Paintcost,Totalpaintcost as float
  4. Declare Laborcharges,Totalcost,Wallspace as float
  5. Display "Enter the total wall space to be painted in square units: "
  6. Input Wallspace
  7. Set Quantityofpaint = Wallspace
  8. Set Laborhours = 8 * Wallspace
  9. Display “Enter the price of paint per gallon”
  10. Input Paintcost
  11. Set Totalpaintcost = Paintcost * Wallspace
  12. Display “Input the hours of labor: “
  13. Input Laborhours
  14. Set Laborcharges = 20 * Laborhours
  15. Set Totalcost = Totalpaintcost + Laborcharges
  16. Display “The number of gallons of paint required is “ Quantityofpaint
  17. Display “The hours of labor required is “ Laborhours
  18. Display “The cost of the paint is” Totalpaintcost
  19. Display “The labor charge is” Laborcharges
  20. Display “The total cost of the paint job is” Totalcost
  21. End Main module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement