Can I get the flowchart for this please? Complete this pseudo code. Create a second Visio PDF document with the flowcharts for the main() module and all of the modules. // Global constants Constant Real FEET_PER_GALLON = 115 Constant Real LABOR_HOURS = 8 Constant Real LABOR_CHARGE = 20 // main module Module main() // Local variables Declare Real pricePaint, feetWall Declare Real gallonPaint, hourLabor, costPaint, costLabor // Get wall space Call getSpace(feetWall) // Get paint price Call getPrice(pricePaint) // Calculate gallons of paint – call the setPaint() module // Calculate labor hours Call setHours(gallonPaint, hourLabor) // Calculate labor charge Call setLaborCharge(hourLabor, costLabor) // Calculate paint cost Call setPaintCharge(gallonPaint, pricePaint, costPaint) // Display income - call the showIncome() module End Module // The getSpace() module gets wall space and stores it // in the inputSpace reference variable. Module getSpace(Real Ref inputSpace) Display “Enter wall space in square feet: ” Input inputSpace End Module // The getPrice() module gets price of paint and stores it // in the inputPrice reference variable. Module getPrice(Real Ref inputPrice) // add the code to read in the inputPrice c. Display “Enter the price of the paint per gallon: ” Input inputPrice End Module // The setPaint() module sets the gallons of paint and stores it // in the gallonPaint reference variable. Module setPaint(Real feetWall, Ref gallonPaint) Set gallonPaint = feetWall / FEET_PER_GALLON End Module // The setHours() module sets the labor hours and stores it // in the hourLabor reference variable. Module setHours(Real gallonPaint, Ref hourLabor) // add the code to compute the hours d. Set hourLabor = gallonPaint * LABOR_HOURS End Module // The setLaborCharge() module sets the labor charge and stores it // in the costLabor reference variable. // Write the setLaborCharge() module e. Module SetLaborCharge (Real hourLabor, Real Ref costLabor) Set costLabor = hourLabor * LABOR_CHARGE End Module // The setPaintCharge() module passes by value the gallons of paint and the price per gallon and sets the paint charge and stores it // in the costPaint reference variable. // Write the setPaintCharge() module f. Module setPaintCharge (Real gallonPaint, Real inputPrice) Set costPaint = gallonPaint * inputPrice End module // The showIncome() module accepts gallonPaint, hourLabor, costPaint, // costLabor as arguments and displays the corresponding data Module showIncome(Real gallonPaint, Real hourLabor, Real costPaint, Real costLabor) Declare Real totalCost Display "gallons of paint: ", gallonPaint “, numberofGallons Display "hours of labor: ", hourLabor : “, numberOfHours Display "paint charges: $", costPaint : “, costOf Paint Display "labor charges: $", costLabor : “, laborCost // compute the totalCost g. Set totalCost = = LaborCost + costofPaint Display "Total Cost: $", totalCost of paint job : “,totalCost

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter3: Understanding Structure
Section: Chapter Questions
Problem 11RQ
icon
Related questions
Question
Can I get the flowchart for this please? Complete this pseudo code. Create a second Visio PDF document with the flowcharts for the main() module and all of the modules. // Global constants Constant Real FEET_PER_GALLON = 115 Constant Real LABOR_HOURS = 8 Constant Real LABOR_CHARGE = 20 // main module Module main() // Local variables Declare Real pricePaint, feetWall Declare Real gallonPaint, hourLabor, costPaint, costLabor // Get wall space Call getSpace(feetWall) // Get paint price Call getPrice(pricePaint) // Calculate gallons of paint – call the setPaint() module // Calculate labor hours Call setHours(gallonPaint, hourLabor) // Calculate labor charge Call setLaborCharge(hourLabor, costLabor) // Calculate paint cost Call setPaintCharge(gallonPaint, pricePaint, costPaint) // Display income - call the showIncome() module End Module // The getSpace() module gets wall space and stores it // in the inputSpace reference variable. Module getSpace(Real Ref inputSpace) Display “Enter wall space in square feet: ” Input inputSpace End Module // The getPrice() module gets price of paint and stores it // in the inputPrice reference variable. Module getPrice(Real Ref inputPrice) // add the code to read in the inputPrice c. Display “Enter the price of the paint per gallon: ” Input inputPrice End Module // The setPaint() module sets the gallons of paint and stores it // in the gallonPaint reference variable. Module setPaint(Real feetWall, Ref gallonPaint) Set gallonPaint = feetWall / FEET_PER_GALLON End Module // The setHours() module sets the labor hours and stores it // in the hourLabor reference variable. Module setHours(Real gallonPaint, Ref hourLabor) // add the code to compute the hours d. Set hourLabor = gallonPaint * LABOR_HOURS End Module // The setLaborCharge() module sets the labor charge and stores it // in the costLabor reference variable. // Write the setLaborCharge() module e. Module SetLaborCharge (Real hourLabor, Real Ref costLabor) Set costLabor = hourLabor * LABOR_CHARGE End Module // The setPaintCharge() module passes by value the gallons of paint and the price per gallon and sets the paint charge and stores it // in the costPaint reference variable. // Write the setPaintCharge() module f. Module setPaintCharge (Real gallonPaint, Real inputPrice) Set costPaint = gallonPaint * inputPrice End module // The showIncome() module accepts gallonPaint, hourLabor, costPaint, // costLabor as arguments and displays the corresponding data Module showIncome(Real gallonPaint, Real hourLabor, Real costPaint, Real costLabor) Declare Real totalCost Display "gallons of paint: ", gallonPaint “, numberofGallons Display "hours of labor: ", hourLabor : “, numberOfHours Display "paint charges: $", costPaint : “, costOf Paint Display "labor charges: $", costLabor : “, laborCost // compute the totalCost g. Set totalCost = = LaborCost + costofPaint Display "Total Cost: $", totalCost of paint job : “,totalCost
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 6 images

Blurred answer
Knowledge Booster
Concept of Flowchart
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage