CISC105 Summer 2007, Project 1 Submission Instructions

For the scripting of project 1, follow these instructions exactly. You will lose points if any steps are missing or if the order is incorrect.

On the paper copy of your script, clearly label each step from the instructions. If you deliberately skipped a step, or if a step did not perform correctly, circle it and make a note for your TA.

Submit your script and your final version of the project to webCT.

    Beginning

    First, cat your project file.

    Part 1:

  1. Calculate the price per square foot of a pizza with a diameter of 10" and a cost of $7.50
  2. Calculate the price per square foot of a pizza with a diameter of 12" and a cost of $10.50
  3. Calculate the price per square foot of a pizza with a diameter of 14" and a cost of $14.00
  4. Calculate the Slice Sale Price for a $12 pizza with 10 slices, at a 15% markup.
  5. Calculate the Slice Sale Price for a $15 pizza with 8 slices, at a 35% markup.
  6. Calculate the Slice Sale Price for a $15 pizza with 8 slices, at a 0% markup.
  7. Part 2:

    Using the starting values, perform the following steps in sequence:

  8. Call your set of "printArrayContents" functions to display the contents of the three arrays
  9. Display the index of item #15
  10. Display the cost of item #100
  11. Display the supply of item #8
  12. Display the inventory table
  13. Add a new item to the table, with an ID of 25, cost of $100 and a supply of 10
  14. Display the inventory table
  15. Delete item #11 from the table
  16. Display the inventory table
  17. Sell 10 of item 7
  18. Resupply 150 of item #1
  19. Display the inventory table
  20. Add a new item, ID #201, cost of $5 and a supply of 50
  21. Add a new item, ID #202, cost of $6 and a supply of 50
  22. Delete item #201 from the table
  23. Display the inventory table
  24. The following instructions test for robustness in dealing with unexpected input.

  25. Display the cost of item #20
  26. Sell 50 of item #100
  27. Delete item #99 from the table
  28. Display the inventory table

That's it. At this point, if there are any other special cases you wish to demonstrate for your TA, do so here. Make a note in your script explaining what you're doing.