{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Midterm Assignment

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

Info icon This 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
Image of page 1

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

View Full Document Right Arrow Icon
Image of page 2
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, isn’t it? See you later. 32. Hello there, Terrific. See you later 33. See you later See you later See you later Hello there, What’s up? How are you doing? 34. See you later See you later See you later What’s 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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern