Week 3 Homework

# Week 3 Homework - Week 3 Homework M ultiple Choice 1-15 1 C...

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

Week 3: Homework Multiple Choice 1-15 1.) C module 2.) A code reuse 3.) D header 4.) B call 5.) C return 6.) A top-down design 7.) D hierarchy chart 8.) B local variable 9.) C scope 10.) A argument 11.) B parameter 12.) C by value 13.) A by reference 14.) D global variable 15.) D global Algorithm Workbench 1-7 1. Module main Call timesten (10) End module Module timesten (integer value) Declare integer result

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

View Full Document
Set result=product * 10 Display result End module 2. Module main Call showValue (12) End module Module showValue (integer value) Declare integer result Set result=value Display result End module 3. Integer a=3 Integer b=2 Integer c=1 4. Module main Declare and initialize variables Declare Integer age Declare Real income Declare String name Call display (age, income, name) End module 5. Module get Number (real ref number) Display “Enter the real number” Input number End module 6. x=1 y=1 (1, 3.4) A=0 B=0 (0,0)
7. x=1 y=1 (1, 3.4) A=0 B=0 (0,0) Programming Exercise: 2, 4, 5, 8, 9

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 note was uploaded on 03/12/2011 for the course CIS 110 taught by Professor Murnane during the Spring '11 term at Strayer.

### Page1 / 5

Week 3 Homework - Week 3 Homework M ultiple Choice 1-15 1 C...

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

View Full Document
Ask a homework question - tutors are online