CIS 115 EXERCISE WEEK 6 Homework Array

01 August, 2024 | 2 Min Read

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 incredible 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

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:

When completed staple the following documents together neatly in 1234 order:

This instruction sheet first

The IPO Chart second

The Pseudocode third

The Flowchart and output example last.

Point distribution for this application:

Homework Array

Document:

Points possible:

Points received

IPO Chart

5

Pseudocode

5

Flowchart and output

10

Total Points

20

Week 6 Activity – Homework Array

Related posts