c++ Allow a user to enter information about a bunch of rooms that are being considered for upgrades. After each room is

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

c++ Allow a user to enter information about a bunch of rooms that are being considered for upgrades. After each room is

Post by answerhappygod »

c++
Allow a user to enter information about a bunch of rooms thatare being considered for upgrades. After each room isentered, the user will be asked to enter "Y" or "N" if there areany more rooms to be entered. Continue looping until theuser says "N".For each room, the user will enter the name of the room (Bathroom,Garage, Living Room, etc.), the length, width, andheight of the room (all dimensions in inches).The program should call two functions: (1) Compute how much carpetwould be needed for that room, and (2) Computehow much paint would be needed for that room.Do some research so that your numbers are realistic and properdimensions/units are used.You should not have the user input the cost of paint or carpet. Youshould declare those as global constants using ALLCAPS in your program and just assume the cost will be the same forevery room. Your program will probably need otherconstants as well.You do not need to worry about doors or windows when computingpaint cost. Just assume the rooms have no doors orwindows to simplify your calculations.For each room, the results of those two functions, along with thedata input (room name, length, width, height), should bedisplayed to the screen.When the program completes, the program should display the totalcarpet cost, the total paint cost, and the grand total ofcarpeting and painting all of the rooms.SUBMIT: (1) A flowchart that includes a main component and aflowchart for each function, and (2) The C++ source codewith documentation as described in class.NOTES: This is an individual assignment. Do not share or accept codefrom others. Cite all sources that you use in the main comment block
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply