Learning Objective(s)
Overview of the Program
Adapt the program from the previous lab to use arrays as the primary data storage during the running of the program instead of files.
Specifics
- Same as previous lab plus:
- The data file can only be read once during the running of the program.
- The data file can only be saved once at the end of the program
- The sequential search should return the location of the item not the amount
Sample dialogue
Same as previous lab.
You can also run a solution for this program if you want. See classroom instructions for more details.
Lab Hints
- Hint 1: a flowchart that you can use: This flowchart is a bit more abstract and only partially complete on purpose. Your programming should be advancing.
- Hint 2: See class examples. Use the previous solution. This version should be easier
Submission
- Create a software development report
- For the system design, you may use my flowchart if it is the design of your program. Otherwise, you need to make your own.
- For testing report,
- The menu does not need to be included in the expected or actual results.
- make sure you do statement coverage testing
- For "Lessons Learned" discuss how using arrays improved the program and/or programming
- For the improvement section, specify how many points were lost from the last lab that you should not lose points for on this lab because you corrected the problem
- If the solution is used, that should be included in "Outside Resources"
- create a pdf document from your software development report
- create an empty zip folder
- place only Shoppinglist.java and your pdf document into it
- submit the zip folder on canvas
Optional improvements
Optional improvements should ONLY be worked on once the program is completing working. In addition, the work is to be done on your own with little if any help for lab assistants or the instructor.
- Look at the solution to the previous lab. Compare your work to it and answer the following questions
- What was the same between the two?
- What did you do better than the solution?
- What did the solution do better than you?
- What insights have you learned by looking at the solution?
- Generate a pdf file (name "assessment.pdf") with your answers and add it to the zip folder
- Maintain the list sorted but do not use arrays or any library sort routines. Save the code as "ShoppingListExtra.java" and add it to the zip folder