[Perl CGI Homepage] | [Webscripting HomePage]
Webscripting Assignment 1
General Rules On Assignments:
- Each program should start out with a list of comments that state your
name, the assignement, what your program does, your instructor and the
class
- Comments should be used liberally. I will deduct points if your
programs are not properly documented.
- I will do my best to help you with problems, but if I end up having to
do the majority of your programming, you won't get the credit.
One of the first things you need practice with is breaking a problem down
into steps so that you can more efficiently design a program.
You may use either psuedocode or flowcharts, but it must be typed
clearly or made using something like visio.
NOTE: You will not actually do code for this, just plan it out.
So, in numbered steps (1. 2. 3. etc.) explaining exactly what you need
to
do to total up a customers receipt, keeping in mind:
- Some items are taxable at 8%, while others have no tax
- They may have more than 1 of each item
- They may have a coupon
-
Your finished set of instructions should detail out:
- The total cost of the taxable items
- The total cost of the non-taxable items
- How much was subtracted by coupons
- What is the total tax
- What is the total cost?
You can of course say things like "repeat steps 6-8" Or, if they don't
have any coupons, skip to step 12. This will take some work, as you will
need places to store information (such as the total of the taxable items)
etc, so this will involve the use of the concept of variables as well.
You must type this up and have it done by the end of the second week.
|