Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Draw the hierarchy chart and design the logic for a program for the River Falls

ID: 3562552 • Letter: D

Question

Draw the hierarchy chart and design the logic for a program for the River Falls Home 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 number of cars the garage can hold. Output is the price of the home, which is a $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 numbers continuously until 0 is entered. Use named constants where appropriate modules, including one that displays End of job after the sentinel is entered for the lot number.

Explanation / Answer

Start

            Declarations

            num lot

            num no_of_bedroom

            num no_of_bathroom

            num no_of_cars

            num home_price

            num baseprice=50000

            num bedroom=17000

            num bathroom=12500

            num car_garage=6000

            string END_LINE=

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote