CIS115 Lab 6 New in Python – Shopping List in Python:
Week 6 Activity – Array Handling
TCO 5—Given a simple business problem that requires iteration, create a solution algorithm that employs loops.
TCO 7—Given a simple business problem that requires simple data structures, design, code and test a solution algorithm that uses arrays.
Assignment
Arrays are incredibly fun! Today we are going to work on a program to keep track of our homework scores for a math class. Write a program that accepts five homework scores as input values and stores them into a table (which is another name for an array). Once the scores are in the array, we can process them again and again.
First, load the scores in your array. Second, display the contents of the array in order. Third, display the array in reverse order. Fourth, calculate the average of the five scores entered in the array. Finally, the algorithm should display all the homework scores in the array that are larger than the previously calculated average. Make sure you use some output statements to clarify all the details you are displaying, being cautious about spelling and communicating to your user.
Be sure to think about the logic and design first (IPO chart and/or pseudocode), then code the Visual Logic command line processing.
Rubric
Complete the steps and submit the completed file to the Dropbox.
1) This instruction sheet first
2) IPO chart
3) Flowchart
4) Pseudocode
5) Visual Basic code
Please submit this file along with the complete project folder (in a zip file).
Homework Array
Document Points possible Points received
IPO chart 5
Pseudocode 5
Flowchart and output 10
Total points 20
1) This instruction sheet first
2) IPO Chart
List the inputs, any processes/calculations, and outputs. Use the same valid variable names you used in Step 1.
Inputs Process (calculations) Outputs
3) Flowchart
4) Pseudocode
Begin homeworkScores
End
5) Visual Basic Code
Screenshot of Running Program
Zipped Project File (submitted to Dropbox)
Copy/paste your Visual Basic code here.
Paste a screenshot(s) of the complete working program here. Use test scenarios to test all possible paths of execution: You may have to design additional test scenarios to make sure you have tested all possible paths of execution.
Submit a separate zipped file to the Dropbox containing the complete project folder.