2004S2TestAnswers

2004S2TestAnswers - private double ratePerHr private String...

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

View Full Document Right Arrow Icon
CompSci 101 Semester 2, 2004 Test Answers 1 A 2 D 3 D 4 C 5 D 6 E 7 D 8 A 9 C 10 D 11 D 12 E 13 D 14 E 15 A 16 A 17 D 18 A 19 B 20 A 21 E 22 D 23 D 24 A 25 A 26 B 27 D 28 E 29 C 30 A
Background image of page 1

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

View Full DocumentRight Arrow Icon
COMPSCI 101 - Laboratory 06 2 of 3 31 num1: 0, num2: 1 num1: 1, num2: 3 num1: 2, num2: 5 num1: 8, num2: 7 32 private void printNums(int startNum, int decrease, int lowerLimit){ int counter = startNum ; while ( counter >= lowerLimit ) { System.out.print( counter + " "); counter = counter - decrease; } System.out.println (" STOP"); } 33 private String iD; private int hoursPerWk;
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: private double ratePerHr; private String jobDesc; public StudentJob( String studID, int hrs, double rate, String desc ){ iD = studID; hoursPerWk = hrs; ratePerHr = rate; jobDesc = desc; } public StudentJob( String studID, int hrs, double rate ){ iD = studID; hoursPerWk = hrs; ratePerHr = rate; jobDesc = "not stated"; } COMPSCI 101 - Laboratory 06 3 of 3 34 C E 35 D E 36 A E 37 D...
View Full Document

This note was uploaded on 03/01/2012 for the course COMPSCI 101 taught by Professor Adrianaferraro during the Summer '12 term at Auckland.

Page1 / 3

2004S2TestAnswers - private double ratePerHr private String...

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

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