100%(19)19 out of 19 people found this document helpful
This preview shows page 1 - 2 out of 2 pages.
main programHousekeeping()detailLoop()endOfJob()Draw the hierarchy chart and design the logic for a program that calculates the projected cost of aremodeling project. Assume that the labor cost is $30 per hour. Design a program that prompts theuser for a number of hours projected for the joband the wholesale cost of materials. The programcomputes and displays the cost of the job, which is the number of hours times the hourly rate plusthe 120% of the wholesale cost of materials. The program accepts data continuously until 0 isentered for the number of hours. Use appropriate modules, including one that displays End ofprogram when the program is finished.Hierarchy Chart:Pseudocode:StartDeclarationsnum laborHournum costMaterialnum costJobstring LABOR_PROMPT = “Enter the numbers of hours worked: “string MATERIAL_PROMPT = “Enter the cost spent on materials: “string END_LINE = “Thank you for using this program “housekeeping()while not laborHour=0detailLoop()endwhileendOfJobstophousekeeping()output LABOR_PROMPT input laborHourreturndetailLoop()output MATERIAL_PROMPTinput costMaterialcostJob= (laborHour *30)+( costMaterial*1.2)output costJob