|
|
|
|
1. Write a program that will compute the median for a set of real numbers of any size. Use the simplified median definition: if there is an odd number of scores, the median is in the middle; if there is an even number of scores, the median is the average of the two most central values. 2. Suppose we have to produce a report on the performance of teams in a league. Given inputs of team names and their numbers of wins and losses, the program should produce an ordered listing of the winning percentages, with the league-leading team on top of the list. 3. Write a program to help the basketball coach set up tryouts. Potential players are asked to record their names, heights (in feet and inches), and GPAs. Using a descending order of height (tallest at top of list) to arrange the aspiring players, the program should produce a listing of this information. 4. I have trouble remembering which relative's birthday occurs when, and even worse is the problem of choosing the right kind of present. Not another sweater, Uncle David! Write a program that allows the user to view all of the important familial days during the coming month, and which also maintains records of the gifts that have been distributed in the past. The program should let the user know current ages of the recipients, perhaps along with any peculiar preferences observed in the past. |
|
|