Sample Questions - Nested Loops (4 days) 1. Write a program which will print out all the outcomes when you roll a pair of dice. 2. Write a program that will tell you what the 2 numbers are that when multiplied together equals 255. When added together equals 32. 3. Write a program that will tell you what the 2 numbers are that when multiplied together equals 608. When added together equals 31. 4. 3 numbers between -50 and 50 when multiplied together equals -11396. When added together equals -1. 5. Sue went to the store and bought saws (11.83), hammers (17.41) and pliers(14.81). She bought 16 items. If she spent 226.12 what did she buy. 6. Christal put lamps, couches and tables into storage. Altogether she placed 21 items in storage. If lamps weigh 17 pounds, couches 172 and tables 213 and she placed 2609 total pounds in storage what did she store? 7. The first number is odd, the second is even. Together the three numbers add up to be 18. Multiplied together they equal 162. What are the possibilities? 8. Hamburgers cost .69, fries .89 and sodas 1.29. Joe bought 20 items and spent 19.20. What did he buy? 9. Print the factors of the first 100 numbers. 10. Print out the prime numbers between 1 and 1000. 11. The Volume of a rectangular prism is 672 cubic inches. What are possible dimensions. (whole numbers only) 12. John has 5.10 in quarters, dimes and nickels. If he has 31 coins what are possibilities? 13. Mary, Debbie and Sue are sisters. They are all younger than 30. Together their ages add up to be 74. Sue's age is an odd number. Mary's is even. Debbie is oldest. What are the possibilities? 14. 5x + 2y - 3z = 15. x, y and z are whole numbers between -5 and 5. Print out possibilities. 15. Write a program to print all the ways you can get 7 when you roll a pair of dice. 16. Write a program that will tell you how many ways you can get 2, 3,4 or 5 when you roll a pair of dice? What % of the time would that be. 17. A circus has 33 birds and animals. There are 98 feet altogether. How many birds (two legged) and animals ( 4 legged) are there?