Midterm Assignment

Midterm Assignment - 8 is even 9 is odd 10 is even 11 is...

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

View Full Document Right Arrow Icon
Chapter 3 31. account1 balance: $35.50 32. account1 balance: $0.00 33. account1 balance: $15.33 adding $2.53 to account1 balance account1 balance: $17.86 34. account1 balance: $7.99 adding -$1.14 to account1 balance account1 balance: $6.85 35. Gradebook gradebook = new Gradebook("Introduction to Java"); 36. public void setCourseName( String name ) { coursename = name; } 37. No Error 38. System.out.printf("The grade book's course name is: \n", gradebook.getCourseName); Chapter 4 37. 2 is even 38. 2 is odd 39. 8 is even 40. Passed Failed 41. The value of x is 2 The value of x is 3 The value of x is 4 The value of x is 6 The final value of x is 6 42. The final value of x is 1 43. The final value of x is 10 44. 1 is odd 2 is even 3 is odd 4 is even 5 is odd 6 is even 7 is odd
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
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 8 is even 9 is odd 10 is even 11 is odd 45. No Output 46. No Ouput Chapter 5 27. 0 1 2 3 4 28. -3 -2 -1 0 1 29. No Output 30. 0 3 31. Hello there, How are you doing? Beautiful day, isnt it? See you later. 32. Hello there, Terrific. See you later 33. See you later See you later See you later Hello there, Whats up? How are you doing? 34. See you later See you later See you later Whats up? 35. No Output 36. 1 3 5 7 9 Chapter 7 27. Index Value 8 1 6 2 9 3 7 4 6 5 4 6 4 7 5 8 8 9 10 28. H o w a r e y o u 29. * ** *** **** ***** ****** ******* ******** ********* ********** 30. No Output 31. No Output 32. No Output 33. The parenthesis should be brackets, array[ 10 ] = 8; 34. No error...
View Full Document

This note was uploaded on 02/15/2011 for the course CS 119 taught by Professor Jackson during the Fall '10 term at Jackson State.

Page1 / 3

Midterm Assignment - 8 is even 9 is odd 10 is even 11 is...

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