$10.00 PRG/210 PRG-210 PRG 210 Week 3 Inventory
Found in Computer-Science: Programming-MethodsChapter 1, # 0
Q:A street vendor who operates a business from the back of his truck come to you and asks for help managing his inventory. You decide to write a program to do this. He sells ham sandwiches, turkey sandwiches, egg salad sandwiches, regular potato chip and cheese puffs. Every day, he tells you how many of each item he sold that day. For each item, if the number of items in the truck is less than 30, the vendor would like to reorder 30 of that item from the manufacturer. (Of course the ordering is automatic across the internet.) Every day, you need to generate an inventory report, showing daily sales for each item, whether or not the item should be reordered , and the final number on hand for the item.
1. Describe the process you would go through to write a program to create the inventory report. Again, make sure you follow the steps in the program development process.
2. (NOT OPTIONAL!) Have about half the team members design the program using pseudocode. This can either be for the original program, or after you add the enhancements as explained in Step 5 below.
3. In your pseudocode, highlight the basic operations:
Input
Output
Arithmetic
Comparison
Assignment
4. Check your pseudocode by having the non-pseudocode-writing members of the team perform a desk check on it. Explain what went on during the process. This can be a journal or minutes.
5. The word “enhancement” is often used in the computer industry. It refers to the changes you would make to a program so it does more than originally expected. This is a typical part of program maintenance. Explain if you think there are any enhancements that would better serve the vendor.
A problem often encountered with enhancements is that it’s hard to know when to stop. (It follows along the lines of “If one is good, certainly 10 or 20 is much better.”) Be sure to think this through, and not just to suggest enhancements for their own sake, but to suggest enhancements that truly make the vendor’s job easier.
6. The vendor is thinking of taking his business to a much larger city 300 miles away. You have done such a good job of helping the vendor manage his business, he gives you a nice bonus. You decide to give him the program as a gift, and want to document it so whoever takes care of him in his new city will have an easy time of it. What would you do to document the program?



