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
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
Purchase this Solution
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 ...
Purchase this Solution
Free BrainMass Quizzes
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.
Word 2010: Table of Contents
Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.
Javscript Basics
Quiz on basics of javascript programming language.