ESc 014

Assignment 1 -- Cookie, Cookie
Due: Tuesday, April 9, 2002

Objectives

Your Mission

Your task is to write a program that can keep track of the number of boxes of girl scout cookies sold by a local troup.

Your program will read in a file containing information about how many boxes of cookies each girl scout sold. After that, your program will display a menu of different statistics that the user can see. This menu should let the user do any of the following:

The user should be able to pick an option from this menu, see the results, and then be returned to the menu to pick another option.

Sample Output

Output from your program may look like the following:
Please make a selection:
1. Show stats for all girl scouts
2. Show girl scout who sold most boxes
3. Show girl scout with majority (if any)
4. Quit

Make your selection: 1
Andrea: 7
Barb: 48
Candice: 11
Deidra: 10
Eileen: 5

Please make a selection:
1. Show stats for all girl scouts
2. Show girl scout who sold most boxes
3. Show girl scout with majority (if any)
4. Quit

Make your selection: 3
Barb sold the majority.

Please make a selection:
1. Show stats for all girl scouts
2. Show girl scout who sold most boxes
3. Show girl scout with majority (if any)
4. Quit

Make your selection: 4
Thanks for using the Girl Scout Manager
Press any key to continue

Your output doesn't have to look exactly like the above, but it gives you a good idea of how your program should work. Feel free to give more detail than I have above. For example, when the user asks for the majority, you may want to print the number of boxes the person with the majority sold along with the total number of boxes sold between all the scouts.

The Details

Grading

The same standards you had for programs in ESc 013 will be used throughout this course. You should check out the assignment standards on our ESc 014 web page to see complete details.

This assignment is worth 50 points, divided as follows:

Remember to turn in both a paper and an electronic copy of your project on BlackBoard, just like you do for labs. Name your file with your FULL NAME along with the assignment number (e.g. chrisfernandes_hw1.cpp)

Having trouble? Don't wait until the last minute! Come see me and get your $80 worth.

Administrative statement

Programming assignments are individual projects. I encourage you to talk to others about the general nature of the project and ideas about how to pursue it. However, the technical work, the writing, and the inspiration behind these must be substantially your own. If any person besides you contributes in any way to the project, you must credit their work on your homework. Similarly, if you include information that you have gleaned from other published sources, you must cite them as references. Looking at, and/or copying, other people's programs or written work is inappropriate, and will be considered cheating.
Return to Assignment Index