Lab. Activity 3 - Array Basic Operations
Lab. Activity 3 - Array Basic Operations
Name:_________________________
Course, Year and Section: _________
---------------------------------------------------------------------------------------------------------------------
Directions:
1. Create the following problems in C++. Copy the code and paste it in a word file. One (1)
word file per problem. Collect it and Zip the file.
2. Each problem must be also be provided with simulation results. Place your simulation
results to the word files created.
6. Don’t forget to turn in your assignment once you send the file to the email address given
---------------------------------------------------------------------------------------------------------------------
Problems:
a. Write a program that will Traverse the elements & show the output of the following
elements in a given array:
Given:
Arr1[8] = {Dasher, Dancer, Prancer, Comet, Cupid, Donner, Blitzen, Vixen}
Default index = 0;
b. Write a program that will ask to enter five (5) Names of a person (in a form of Array) and ask
what New Name (New Element) to be inserted. The New Name (New Element) should be
inserted at the last position of the array.
c. Delete an element & Show the output of the new following elements:
--------------------------------------------------------------------------------------------------------------------
Rubrics from this Lab Activity are as follows:
40 Points
Understanding of Array Concepts:
Advanced Proficient Approaching Beginning
(10points) (9 points) Proficiency (3 points)
(6 points)
Demonstrates an Usually Provides
understanding of differentiates Sometimes limited
efficiency of data between indexed differentiates differentiation
representation in and non-indexed between indexed between
lists. variables. and non-indexed indexed and
variables. non-indexed
variables.
Identification of Data:
Programming Style