Assignment 4 – Test Plan
Part 1 – Test Plan
No. Description Expected Result Actual Result Passed?
1 User will be able to enter height of the room. After running the program a message The user is promoted with the YES
This will the test if the program prompts the saying “Enter the height of the question and they are able to [1]
user with an input form for the user to enter room:” and the user is able to enter enter an input
an integer which will be stored in a variable. an input.
2 User will only be able to enter a number If the number they enter is not When trying to type in letters as NO, only
between 2 and 6 meters for the height. If the between 2 and 6 then the program the input instead of an integer I partially
number is not between 2 and 6 than the will ask the user to enter it again. found that I get an error [2]
question will be repeated until a valid answer message and that is because I
is entered. have used the int() function.
With numbers the program runs
as expected.
3 User will be able to enter width of each room. Program will ask for the width of The user is able to enter a width YES
This test will check if the user is asked to enter each individual wall and they will be for all four walls. [3]
an integer for the height and if it gets stored stored in a variable
inside the variable. It will also check that all 4
widths work separately and correctly.
4 User will only be able to enter an integer The user enters a valid number and I found that the program would NO, only
between 1 and 25 meters. If an invalid input is program continues. If the number is break and display an error partially
entered it will ask the user to enter an input not between 1 and 25 than the message when I tried to enter a [4]
again until a valid input has been entered. This program will ask the user to enter a decimal number. With integers
will work for all 4 walls. number again. the program worked as
expected.
5 Program will calculate area. After the user The program will use the variables The total area was calculated YES
input the width of each wall and the height of and times the height by each wall and displayed using the [5]
the room. The program will then print the total and display the total area. variables.
area of the room.
6 Program will calculate total wall cost. After The program will times the area of The total cost gets calculated YES
choosing the quality of the paint the program the room and multiply by the cost of correctly and displayed in the bill [6]