Draw a flowchart that will calculate the price of building a house. The price of the house is based on three things:The quality of the interiorThe lot sizeThe size of the houseThe realtor enters the number for each item, not the name. The clerk will not enter the numbers that they can’t control such as the prices. For example: everyone who buys a custom home pays $1000 for each 500 square feet of lot and $500 for each 100 square feet of house.Output the cost for one person buying a house. People may only buy one house.Trace the program 3 times: once for each type of home, make up your own data.Data Related to Quality and Size of HouseQuality of house Type of house Price per 500 sq. ft of lot Price per 100 sq. ft of house1 Custom Home $1000 $5002 Mid-quality $700 $4003 Economy $500 $300
Question
Draw a flowchart that will calculate the price of building a house. The price of the house is based on three things:The quality of the interiorThe lot sizeThe size of the houseThe realtor enters the number for each item, not the name. The clerk will not enter the numbers that they can’t control such as the prices. For example: everyone who buys a custom home pays 500 for each 100 square feet of house.Output the cost for one person buying a house. People may only buy one house.Trace the program 3 times: once for each type of home, make up your own data.Data Related to Quality and Size of HouseQuality of house Type of house Price per 500 sq. ft of lot Price per 100 sq. ft of house1 Custom Home 5002 Mid-quality 4003 Economy 300
Solution
Here is a step-by-step guide to creating a flowchart for calculating the price of building a house:
-
Start: Draw an oval shape to represent the start of the flowchart.
-
Input: Draw a parallelogram and label it "Input Quality of House, Lot Size, House Size". This is where the realtor will enter the numbers for each item.
-
Decision: Draw a diamond shape and label it "Quality of House". This is where the flowchart will decide the price per 500 sq. ft of lot and per 100 sq. ft of house based on the quality of the house. Draw three arrows from this diamond, one for each type of house (Custom Home, Mid-quality, Economy).
-
Process: For each type of house, draw a rectangle and label it "Calculate Price of Lot" and "Calculate Price of House". The price of the lot is calculated by multiplying the lot size by the price per 500 sq. ft of lot. The price of the house is calculated by multiplying the house size by the price per 100 sq. ft of house.
-
Process: Draw another rectangle and label it "Calculate Total Price". This is where the price of the lot and the price of the house are added together to get the total price.
-
Output: Draw a parallelogram and label it "Output Total Price". This is where the total price is displayed.
-
End: Draw an oval shape to represent the end of the flowchart.
To trace the program, you would follow the flowchart three times, once for each type of house. For example, if the realtor enters "1" for the quality of house, "2000" for the lot size, and "1000" for the house size, the flowchart would calculate the price of the lot as 1000 per 500 sq. ft * 4), the price of the house as 500 per 100 sq. ft * 10), and the total price as 4000 + $5000).
Similar Questions
Write an algorithm for predicting house prices based on features like size, location,and number of bedrooms
In this part, you will be utilizing the Naïve Bayes approach in order to generate predictions from thehousing dataset shown below. The following dataset represents the Price of a house given it’s locationand size as input features.Location (L) Size (S) Price (Label)Urban Large ExpensiveSuburban Medium AffordableRural Small CheapUrban Medium AffordableSuburban Large ExpensiveRural Medium AffordableUrban Small CheapSuburban Small CheapRural Large ExpensiveUrban Large ExpensiveUsing the Naive Bayes approach done in class, calculate the following and determine the predicted price(Expensive/Affordable/Cheap). Make sure to include All the steps and calculations needed to reach thefinal answer
A home owner would like to sell his property that is 650sqm in size, with 3 bedrooms, 2 bathrooms and 1 car space. Her property is in the school zone, is not subdivided and is an older home. She intends to sell by private sale. Predict the price of this property. Report your answer to 2 decimal places.
dd to the flowchart from Assignment 3.Have a loop so that it can process multiple customers.Output the amount each person has to pay and the total revenue for the day.Trace the program, make up your own data.Show the data at the top of the page. Make sure you trace with at least 3 people
A local painting company calculates the cost of painting rooms based on the size ofthe room. Each square meter of wall space requires a specific amount of paint andlabor, which has a set cost. The company often deals with orders for multiple roomsof different sizes but wants to understand the calculation of total costs to providequick estimates to customers.You are developing a program to help the painting company calculate the total costof painting multiple rooms in a house. You should write a function in pseudocode thataccepts three input parameters: (a) the number of square meters of the room and (b)the number of rooms to paint. The company charges $1.50 per square meter forlabor and paint. The function should return the total cost for painting the rooms.i. Write the function here…………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………[3]ii. Use the function defined in part (i) to get the total cost for painting 8 rooms of30 square meters per room. Print the result.……………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………[2]
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.