Java-3 Answers

Java-3 Answers - switch (choice) { case 1:...

Info iconThis 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
Background image of page 1

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

View Full DocumentRight 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
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: 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 OMalley 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

This note was uploaded on 04/23/2010 for the course CISY- 103-9 taught by Professor Reddy during the Spring '10 term at Raritan.

Page1 / 3

Java-3 Answers - switch (choice) { case 1:...

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