Unit 1 Exercise: Logic Drills
Write out the logic to the following problems.
Example: Represent the logic of a program that allows the user to enter a value. The program divides the value by 2 and outputs the result.
Solution:
start
input myNumber
set myAnswer = myNumber / 2
output myAnswer
stop
- Represent the logic of a program that allows the user to enter a value for one edge of a cube. The program calculates the surface area of one side of the cube, the surface area of the cube, and its volume. The program outputs all the results.
- Represent the logic of a program that allows the user to enter two values. The program outputs the product of the two values.
- 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.
Put your solutions in a Word document, and upload it
7 years ago
5
Answer(2)![blurred-text]()
![]()
![blurred-text]()
![]()
Purchase the answer to view it

- Logicdrills.docx
Purchase the answer to view it

NOT RATED
- Order1018216.docx
other Questions(10)
- Variance Analysis Case Study
- DeVry NY ACCT 301 Week 2 Quiz with 100% Correct Answers
- THREEE
- ACC - Intel Inc. 2012 financial statements
- Discussion 1 Week 5
- ECONOMICS
- U2IP
- Introduction to Statistics / MAT300 SPRING 2014 - Paired comparisons
- Corporations will be equally hiring men and women based on their skills and knowledge in the future.
- Assignment 2: LASA 1: Personal Power, Communication and Effective Persuasion