Pseudocode: Area of a rectangle
Victoria Mize
- Create 3 text boxes; one to input the length (l), another to input the width (w), and one to output the answer (a)
- Create 3 variables; one to hold the value of the length (length), another to hold the value of the width (width), and another to hold the value of the result (answer)
- Read the value from text box (l) and assign it to variable 'length'
- Read the value from text box (w) and assign it to variable 'width'
- Calculate l * w, and assign the result to variable 'answer'
- Assign the variable 'answer' to text box (a)