Week 3 – 1/24/15

There is an easy way to do this assignment. I am going to ask you to do it that way first. Then I want you to do it in a different way. It will become clear once we learn about functions why I want you to do it the second way too.
1. Ask the user for 5 numbers and have the program print out the largest number.
2. Ask the user for 5 numbers and and only after all 5 numbers are stored in memory do I want you to find the largest number. By stored in memory I mean that they are in buckets. You can use 5 variables or a list. Either way is good as we can then go over the advantage/disadvantage of each method.

Leave a Reply