Purchase Solution

# Writing pseudocodes

Not what you're looking for?

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

##### 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.

##### 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 ...

##### C++ Operators

This quiz tests a student's knowledge about C++ operators.

##### Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

##### Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.