assignment 2.1

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

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

View Full Document Right Arrow Icon
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
Background image of page 1

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

View Full DocumentRight Arrow Icon
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
Background image of page 2
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
Background image of page 3

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

View Full DocumentRight Arrow Icon
Image of page 4
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 Right Arrow Icon
Ask a homework question - tutors are online