CIS 150 Arrays lab

Objectives

  • Declare an array
  • Initialize an array
  • Access elements of an array
  • Use repetition to process all elements of an array

Requirements

Modify the supplied program (arrayLab.cpp) to make it work properly.

Program to be modified

Example run of program

6 4 2 4 6 8 12 2 21 6 8 12 Press enter to continue...

Rubric

  • Note: Points may be deducted for not having documentation comments, improper indentation, using tabs in the source code, and other violations of the style conventions used in this course.
  • 1 point: for getting each step working properly (* 10 steps)