Assigned: Weds Jan 8, 2003
Design due: Mon Jan 13, 2003
Program due: Weds Jan 15, 2003
Program #1 is worth 50 points, 5% of your grade
In this program you will use the following concepts:
|
You just got a job at the "DVD MegaStore". Your new
boss, Mr. Harsh, has asked you to write a program to determine the
pricing of DVD's that are ordered by customers. The DVD MegaStore's
customers are typically video stores, and they therefore often order
DVD's in bulk. Some customers receive a discount on their purchases.
Input You will query the user for the input to your program. This information will be:
Processing In the processing part of your program, you want to calculate the total cost for the order. The DVD title is not a part of the calculation. The unit price, quantity and discount are used to determine the total cost of the order. For example, a customer who orders 30 "Austin Powers" DVD's at a unit price of $19.00 with a discount of 20% would pay:
Output The output of your program will be a recap of the order and a final price for the order. Here's an example session of what your program may look like (user input is in bold):
|
Your program will be graded on three areas: design, quality, and function. Their description and weighting in your grade is given below. 1. Program Design (25%) It is not acceptable to just sit in front of Visual C++ and pound out a solution. I know this particular assignment is simple, but I want to get in the habit of doing your design work before coding. Please submit the following on paper to show your design work:
This is due by the next class, Monday Jan 13. 2. Program quality (25%) Giving the correct answer alone does not qualify as good programming practice. Your program should be well constructed and commented. I will look for:
3. Program function (50%) Simple... does your program meet the requirements specified in the assignment. For this first assignment, you will not be expected to handle "bad" data, such as negative numbers or discounts of more than 100%. You can assume:
After the due date, I will run your program on a number of examples. Good luck. |