Professional Documents
Culture Documents
Technical Assessment 4 - DE VERA
Technical Assessment 4 - DE VERA
(Computer Programming)
SUMMATIVE
4
DECLARING ARRAYS
Affective
a) appreciate the concept behind this experiment
Array is a sequence of objects of the same type and packaged together under one identifier name. The
first element in an array is at position zero: array [0]. There are three steps to create an array:
Declaration, Construction and Initialization.
Declaring one-dimensional
data_type name_of_array[integer_expression];
Example:
Example:
Array Controlling
III.EXPERIMENTAL PROCEDURE:
1. Create a program that will store student information in two dimensional array
studentarr[3][3], the program should be able to display the names of the students
and their corresponding grades and averages.
Studentarray[3][3]={{“peter”, 75,77},
{“clark”, 78, 80},
{“logan”,82,84}};
IV. QUESTION AND ANSWER:
1. Why is it necessary, being a programmer, to use arrays? What are the risks of not using
arrays?
The fact that arrays model how a computer works with memory and bytes written to
and from disks is one of the main reasons they are popular as a storage and retrieval
mechanism in applications. As a result, they are the simplest to generate internally
using efficient hardware-facing code. When it comes to reading and writing data,
arrays have two significant advantages:
V. ASSESSMENT
Topic Arrays
Lab Summative 4
No.
Lab Summative Declaring Arrays
CLO 2
Note: The following rubrics/metrics will be used to grade students’ output in the Lab
Summative 4.
Criteria Score
Program execution (20)
Correct output (20)
Design of output (10)
Design of logic (20)
Standards (20)
Delivery (10)
TOTAL