Bob a builder has come to you to build a program for his construction business. He needs to determine the square footage of a room in order to buy materials and calculate costs. Bob charges $425 per square metre. The program is going to ask the user to enter the name of a room. It will then ask for the width and length of the room (in meters) to be built. The program will calculate the room area and use this information to generate an approximate cost. Your program will display the room, the total area and the approximate cost to the screen. Using Pseudocode, develop an algorithm for this problem.
Start
string name
float length
float width
Input name of the room
Input width of the room (in meters)
Input length of the room (in meters)
float area = length * width
float cost = area * 425
Print name
Print area
Print cost
Stop
Comments
Leave a comment