# Writing pseudocodes

Write pseudocode to represent the logic of a program that allows the user to enter values for the width and length of a room's floor in feet. The program outputs the area of the floor in square feet.

Start

Input number

Answer=width*feet

Answer=length*feet

Output square feet

Stop

Write pseudocode to represent the logic of a program that allows the user to enter values for the width and length of a wall in feet. The program outputs the area of the wall in square feet.

Start

Input number

Answer=width*feet

Answer=length*feet

Output square feet

Stop

https://brainmass.com/computer-science/pseudocode/writing-pseudocodes-482632

#### Solution Preview

1. Write pseudocode to represent the logic of a program that allows the user to enter values for the width and length of a room's floor in feet. The program outputs the area of the floor in square feet.

Your pseudocode needs a few corrections, but you have got the basics of the syntax correctly. Firstly, we need to input <I>two</I> numbers, which we can do using two variables, say <I>width</I> and <I>length</I>:

<I>Input length, width</I>

Now, the area of the floor can be calculated and stored in another variable, say <I>floorArea</I>. But for this we first need the formula for calculating the area, given the width and length. We know that the area is equal to the width ...

#### Solution Summary

The expert writes a pseudocode to represent the logic of a program that allows the length of a room's floor in feet.