Computer Programming Lab Session 11
Computer Programming Lab Session 11
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.