Tags:
tag this topic
create new tag
view all tags
---+ Arrays: Shopping lists: a better way: Fall 2024 ---++ Learning Objective(s) * Learn to use arrays ---++ 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.<br><br> You can also run a solution for this program if you want. See classroom instructions for more details. ---++ Lab Hints * Hint 1: [[%ATTACHURL%/ShoppingListFC.pdf][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. 1 Look at the solution to the previous lab. Compare your work to it and answer the following questions a. What was the same between the two? a. What did you do better than the solution? a. What did the solution do better than you? a. What insights have you learned by looking at the solution? a. Generate a pdf file (name "assessment.pdf") with your answers and add it to the zip folder 1 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
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r1 - 2024-06-14
-
CathyBareiss
Home
Site map
Assessment web
BethelAIResources2026 web
CenterForComputing web
ChatGPT web
Intro2AIatBethel web
Main web
Sandbox web
TWiki web
CenterForComputing Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
P
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
E
dit
A
ttach
Copyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback