![]() |
|
|
Your club has made a fund-raising arrangement with a number of local supermarkets. The supermarkets will donate 5% of the gross receipts from groceries bought by members of your club that are made with special coupons which the supermarket provides. The coupons come in $5.00, $10.00, and $25.00 denominations, and people may buy as many as they like. Your club buys the coupons from the supermarket at $4.75 for the $5.00 coupons (the 5% savings comes to 25¢), $9.50 for the $10.00 coupons, and $23.75 for the $25.00 coupons. The club then sells the coupons to the members at face value, keeping the 5% profit to donate to the Girls’ or Boys’ Club.
You are to design and implement the interface to a program that your club treasurer can use to do the accounting for this project. (It doesn’t really need to save the data to disk.) The program must keep track of who bought what coupons when, as well as the purchaser’s name, address, and phone number.
For this assignment you only need to use one interaction form (although you can use more if you like). The form must allow the treasurer to enter the date (if it is not entered automatically), the purchaser’s name, address, and phone number, and how many of each coupon he or she bought. The interface should display the total amount due.
You can write the entire basic program for this assignment using only buttons and text boxes. Of course, you will quickly see that much more can be done than the basic assignment, and I encourage you to explore and experiment with features you discover on-line, in the text, and from other students.
Hand in your diskette at the beginning of class on the day it is due.
| Criteria | Possible
Points |
Your
Score |
| Program Integrity
- program accepts textual input and converts it to numeric values - program handles a wide range of erroneous user input - program displays correct sale total - program allows user to move freely between fields - program exits cleanly |
4 | |
| Documentation and Formatting
- all variables and procedures have adequate descriptions - code has adequate in-line comments, whitespace, and indentation - program appears that it can be maintained by another programmer |
4 | |
| Input Processing and Error Handling
- prompts for input are clear and unambiguous - flow of input focus is natural and follows standard conventions - error messages for incorrect input are appropriate |
4 | |
| Screen Layout and Message Clarity
- overall appearance is attractive - user has clear indicators for what s/he is supposed to do - graphics and color are used appropriately |
4 | |
| Enhancements Beyond the Basic Assignment
the following are only suggestions, others are possible - incorporate picture elements and/or buttons - change the mouse pointer as it passes over clickable areas - provide on-line instructions and context-sensitive pop-up help - allow only numbers to be entered in numeric fields - use a message box to confirm user request to exit the program - use your imagination! be creative! surprise and teach me! Note: Enhancement points are given for significant extra efforts, not simple changes. |
4 |
Jesse Heines
| Please send
comments and suggestions to the Booksite
Director
Last Updated: 12 March 2000 |