0% found this document useful (0 votes)
6 views

Computer Programming Lab Session 11

Uploaded by

Samir Aldeep
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Computer Programming Lab Session 11

Uploaded by

Samir Aldeep
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Computer Programming – Practical session

1. Define a one-dimensional array (size 10) using for loop(s). The program should:
a. Have a predefined array
b. Display the numbers in FIFO and LIFO patterns

2. Define a two-dimensional array (size 4 x 4) using nested for loops. The program
should:
a. Have a predefined array
b. Display the result in the 4x4 format
c. Also display the transpose (4x4 format)

3. Write a C++ program that defines an empty array of size 10 and asks the user to input
marks scored by ten students. The program should show the top three scores achieved
by students.

4. Write a C++ program that defines an empty array of size 4x4 and accepts sixteen
numbers from the user. Display the numbers as rows and columns. Also, display the
transpose of the obtained matrix.

You might also like