Explore BrainMass
Share

# Writing pseudocodes

This content was STOLEN from BrainMass.com - View the original, and get the already-completed solution here!

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
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
Output square feet
Stop

© BrainMass Inc. brainmass.com October 15, 2018, 9:07 am ad1c9bdddf - 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.

\$2.19