logo © 1996 Phil Waclawski
Felitaur Site
Offerings
About Me
Crafts
Services
ftp files
Help Files
What's New?
Home Page
Other Links
Anatomy &
Physiology
Arthropods
Biology
Computers
Ferrets
Fun Links
Internet
Linux
S.C.A.
Win 95/NT
Comments or
Suggestions
webmaster@ felitaur.com
   
[Perl CGI Homepage] | [Webscripting HomePage]
Webscripting Assignment 1
General Rules On Assignments:
  1. 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
  2. Comments should be used liberally. I will deduct points if your programs are not properly documented.
  3. 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:
  1. The total cost of the taxable items
  2. The total cost of the non-taxable items
  3. How much was subtracted by coupons
  4. What is the total tax
  5. 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.