Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hello! I'm in a computer programming class and I need help with part 2 and the desk check of these questions:Complete Programming Exercise #10 (25
Hello! I'm in a computer programming class and I need help with part 2 and the desk check of these questions:Complete Programming Exercise #10 (25 points)
Draw the hierarchy chart and design the logic for a program for the River Falls Homes Construction Company. Design a program that prompts the user for a lot number in the River Falls subdivision, and data about the home to be built there including number of bedrooms, number of bathrooms, and size of garage in number of cars it holds. Output is the price of the home which is $50,000 base price plus $17,000 for each bedroom, $12,500 for each bathroom,, and $6,000 for each car the garage holds. The program accepts lot number continuously until 0 is entered. Use named constants where appropriate. Also use appropriate modules, including one that displays End of job after the sentinel is entered for the lot number.
Complete Programming Exercise #11 (25 points)
Draw the hierarchy chart and design the logic for a program for Arnies Appliances. Design a program that prompts the user for a refrigerator model name, and the interior height, width, and depth in inches. Calculate the refrigerator capacity in cubic feet by first multiplying the height, width and depth to get cubic inches, and then dividing by 1728 because there are 1728 cubic inches in a cubic foot. The program accepts model names continuously until XXX is entered. Use named constants where appropriate. Also use modules, including one that displays End of job after the sentinel is entered for the model name.
-----------------------------------------------------------
Part 2
*** Make sure you follow CppTemplate.docx for both exercises in Part 2. We have not learned how to write a loop in C++ yet. We will write the code for the exercises in Part 1, but it will only process a single set of data NO LOOP. You will not need to translate the while or the endwhile pseudocode lines. Also, you will find that you do not need to translate the initial prompt from housekeeping().
Write the program for Exercise #10. (25 points)
Have it read the number of bedrooms, number of bathrooms, and garage size, plus the lot number.
Name it home.cpp.
Below is a sample run (grayed text is what the user types):
Enter number of bedrooms: 3
Enter number of bathrooms: 2
Enter garage size (cars): 2
Enter lot number: 101
Lot 101 costs $138000
End of job
Write the program for Exercise #11. (25 points)
Have it read the interior height, width, and depth in inches, plus a single model name.
Name it fridge.cpp.
Below is a sample run (grayed text is what the user types):
Enter height: 63
Enter width: 34
Enter depth: 24
Enter model number: SuperCool
SuperCool Capacity is 29.75
End of job
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started