0% found this document useful (0 votes)
1 views1 page

Task 2

The document outlines a task to research and provide examples of arrays in C++. It includes instructions to define an array, write programs for one-dimensional and two-dimensional arrays, and solve specific problems related to these arrays. The submission guidelines specify the format and deadline for the code submission.

Uploaded by

Elly
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views1 page

Task 2

The document outlines a task to research and provide examples of arrays in C++. It includes instructions to define an array, write programs for one-dimensional and two-dimensional arrays, and solve specific problems related to these arrays. The submission guidelines specify the format and deadline for the code submission.

Uploaded by

Elly
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Task No.

Research and Provide Examples of Arrays in C++

1. Research:

o Define what an array is in C++. (Put as comment the meaning of C++ in


your program)

2. Examples: (Provide an Example)

o Write a C++ program that demonstrates the use of a one-dimensional


array.

o Write a separate C++ program that demonstrates the use of a two-


dimensional array.

3. Answer the Given Problems:

o After writing the programs, solve the following problems:


For the One-Dimensional Array:

 Store and display the marks of 5 students.

 Calculate and display the average of the marks.

For the Two-Dimensional Array:

 Create a matrix (2x3) and display it.

 Find the sum of all elements in the matrix.

Submission Guidelines:

 Write and submit the code for both programs.

 Include comments in the code explaining each step.

Filename: NameofActivity_FamName ( Ex. OneDimensionalArray1_Dangasi)

Submission Schedule: January 28, 2025

A ---- https://drive.google.com/drive/folders/1WPAUTlNSehAXJECC-Ac63U8qAmKVg1gR?usp=sharing

B---- https://drive.google.com/drive/folders/1WPAUTlNSehAXJECC-Ac63U8qAmKVg1gR?usp=sharing

C---- https://drive.google.com/drive/folders/13mhRqAcmauZA24QJU6LtilBaoobPjlZx?usp=drive_link

You might also like