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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education