Exam I Answer Key 1. B 2. C 3. A 4. C 5. C 6. D 7. C 8. B 9. B 10. A 11. C 12. 8 13. D 14. C 15. A 16. C 17. A 18. D 19. B 20. A 21. C 22. D 23. A 24. A 25. C 26. C 27. D 28. ($10 - $0.50) * 100 = $9.50 * 100 = $950.00 29. See algorithm below, which returns the totalPrice 1 pt Get value for basePrice 1 pt Get value for reducedRate 1 pt Get value for numberItems 1 pt If numberItems < 20 1 pt totalPrice = basePrice * numberItems 1 pt Else 1 pt totalPrice = (basePrice - reducedRate) * numberItems 1 pt Display totalPrice (Note: also could have displayed inside of IF statement and not used the variable totalPrice) 30. See algorithm below 2 pt Get repeatNumber 2 pt While repeatNumber > 0 2 pt Display "Hello" 2 pt repeatNumber = repeatNumber - 1