Homework 2 UCR CS10: Introduction to Computer Science Winter Quarter 2004, Lecturer: Kris Miller Due Wednesday, January 21 before 10:00pm by web turnin. ------------------------------------------------------------------------------- Note: Collaboration policy for this homework assignment Collaboration on this homework is strongly ENCOURAGED. The homework is intended for practice, not assessment -- most people who turn in decent work should get most if not all points for this assignment. Forming study groups is strongly encouraged. You shouldn't simply copy answers from any source -- each other, the book, the web, other books, previous solutions, etc. But you can certainly discuss how to solve the problems, look over each others solutions and help "debug" them, compare answers and redo problems if you determine your answer is wrong, and most importantly, explain concepts related to the problems and solutions. ------------------------------------------------------------------------------- 1. Self-test Exercise #2-8 (Chapter 2, #8) 2. Self-test Exercise #2-14 3. Self-test Exercise #2-15 4. Self-test Exercise #2-16 5. Self-test Exercise #2-17 6. Self-test Exercise #2-20 7. Self-test Exersice #2-21 8. Self-test Exersice #2-23 9. Self-test Exersice #2-24 10. Write an algorithm (in English or pseudocode) for the following problem definition. A basketball coach wants to pull out all starters and put in reserves when the team is either winning by 25 points or losing by 30 points, but only within the last 2 minutes of the game. The inputs will be each team's score and the time remaining. The output should state whether to pull out all starters or not. Yous should not translate this into a C++ program.