{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Java-3 Answers - switch(choice case 1...

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

View Full Document Right Arrow Icon
Kenneth O’Malley Starting Out with Java: From Control Structures through Objects Java 3 HW 2/20/2010 Multiple Choice Answers 1. B 2. D 3. A 4. B 5. C 6. D 7. A 8. B 9. A 10. A 11. A 12.D 13. C 14. B 15. C 16. F 17. T 18. T 19.T 20.F 21. T Find the Error – See Attachment Grades.java Algorithm Workbench
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
3. // Determines the proper Commission Rate based on sales if (sales > 15000) { commRate = sales * .20; } else if (sales > 10000) { commRate = sales * .15; } else { commRate = sales * .10; } 10. // Determine the grade related to the score entered
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: switch (choice) { case 1: System.out.println(“You selected 1.”); break; case 2: System.out.println(“You selected 2 or 3.”); break; case 3: System.out.println(“You selected 2 or 3.”); break; case 4: System.out.println(“You selected 4.”); Kenneth O’Malley Starting Out with Java: From Control Structures through Objects Java 3 HW 2/20/2010 break; default: System.out.println(“Select again please.”); }...
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