You are on page 1of 3

Experiment 1.

Student Name: Divya Prakash Singh UID: 21BCA1946


Branch: BCA Section/Group: 21PH-BCA 5B
Semester: 3rd semester Date of Performance: 22/09/2022
Subject Name: DS lab Subject Code: 21CAP-214

1. Aim/Overview of the practical: To reverse an array elements entered by user.

2. Task to be done: Creating an array and reversing the array.

3. Concept used: Array, operations on array, reversal of array.

4. Steps/Commands involved to perform practical:


#include <iostream>
using namespace std;

int main(int argc, char const *argv[])


{
cout << "Name: Divya Prakash Singh" << endl << "UID: 21BCA1946" << endl << endl;
int n;
cout << "Enter the size of array: ";
cin >> n;

int arr[n];

for (int i = 0; i < n; i++)


{
cout << "Enter the element at position " << i << ": ";
cin >> arr[i];
}

for (int i = n-1; i >= 0; i--)


{
cout << arr[i] << " ";
}
return 0;
}

5. Result/Output/Writing Summary:

Learning outcomes (What I have learnt):

1. I learned to create an array.

2. I learned to reverse the array.

3. And I learned to print the array.

Evaluation Grid:

Sr. No. Parameters Marks Obtained Maximum Marks


1. Worksheet 20
2. Demonstration/Performance / 10
Quiz/Viva
Worksheet Rubrics:
Understanding of Experiment 10% of total grade that is 2 marks

Command Description for all concepts covered in experiment 30% of total grade that is 6marks

Steps Involved in question 40% of total grade that is 8 marks

Writing Output/Screenshot 20% of total grade that is 4 marks

You might also like