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:
- Calculate the price per square foot of a pizza with a diameter of 10" and a cost of $7.50
- Calculate the price per square foot of a pizza with a diameter of 12" and a cost of $10.50
- Calculate the price per square foot of a pizza with a diameter of 14" and a cost of $14.00
- Calculate the Slice Sale Price for a $12 pizza with 10 slices, at a 15% markup.
- Calculate the Slice Sale Price for a $15 pizza with 8 slices, at a 35% markup.
- Calculate the Slice Sale Price for a $15 pizza with 8 slices, at a 0% markup.
Part 2:
Using the starting values, perform the following steps in sequence:
- Call your set of "printArrayContents" functions to display the contents of the three arrays
- Display the index of item #15
- Display the cost of item #100
- Display the supply of item #8
- Display the inventory table
- Add a new item to the table, with an ID of 25, cost of $100 and a supply of 10
- Display the inventory table
- Delete item #11 from the table
- Display the inventory table
- Sell 10 of item 7
- Resupply 150 of item #1
- Display the inventory table
- Add a new item, ID #201, cost of $5 and a supply of 50
- Add a new item, ID #202, cost of $6 and a supply of 50
- Delete item #201 from the table
- Display the inventory table
The following instructions test for robustness in dealing with unexpected input.
- Display the cost of item #20
- Sell 50 of item #100
- Delete item #99 from the table
- 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.