assignment 2.1

# assignment 2.1 - David Davis G00056999 CS192 Chapter 3...

This preview shows pages 1–4. Sign up to view the full content.

David Davis G00056999 CS192 Chapter 3 Multiple Choice 1. C. module 3. d. header 5. c. return 7. d. hierarchy chart 9. c. scope Chapter 3 Algorithm Workbench 5. Module getNumber(Interger Ref number) Display “Enter a number.” Input number End module 6. 1 3.4 0 0 1. 3.4 7. 1 3.4 0 0.0 1. 3.4

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Chapter 3 Programming Exercises 6. Module main () Declare Real height Declare Real weight Call getHeight (height) Call getWeight (weight) Call showBmi (weight, height) End Module Module getHeight (Real Ref yourHeight) Display “Enter your height.” Input yourHeight End Module Module getWeight (Real Ref yourWeight) Display “Enter your weight.” Input yourWeight End Module Module ShowBmi (Real weight, Real height) Declare real results Set results = (weight * 703) / (height^2) Display “Your BMI is.” Results End Module
9. Constant Real Per_Hour = 20 Module main () Declare Real wallSpace Declare Real PricePerGallon Declare Real totalCost Display “Enter the total square footage of all walls.” Input wallSpace

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

## This document was uploaded on 04/17/2011.

### Page1 / 9

assignment 2.1 - David Davis G00056999 CS192 Chapter 3...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online