Chapter 3and4

Chapter 3and4 - End if End if End class Chapter 4 Review...

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

View Full Document Right Arrow Icon
Chapter 3, Exercise #3 Class academic List   Main( )     //declarations String name String Major Study Num academic list Num gpa range Num gpa range 1 = 2.0 Num gpa range 2 = 3.5 Num list 1 = deans list  Num list 2 = acad prob Num list 3 = inclusive Input student Name Input Major Study If gpa range >= gpa range 2 then Acad list = list 1 Else If gpa range <= Gpa range 1 then Acad list = list 2 Else Acad list = list 3 End if
Background image of page 1

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

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: End if End if End class Chapter 4, Review Questions 1-20, pages 156-160 & Exercise #2, pg. 160. 1. C 2. A 3. D 4. A 5. A 6. D 7. B 8. D 9. C 10.C 11.D 12.C 13.C 14.B 15.D 16. N 17.A 18.A 19.D 20.D Exercise 2 Start Main ( ) //declarations Num number Num square Num cube Number = 1 While number < = 10 Square = number * number Output number Output square Output cube number = number + 1 End while stop...
View Full Document

This note was uploaded on 04/27/2011 for the course CS 192 taught by Professor Aaa during the Spring '10 term at Grantham.

Page1 / 2

Chapter 3and4 - End if End if End class Chapter 4 Review...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online