Lab Assignment 2
Lab Assignment 2
Aim: To understand and implement an array-based solution for calculating and analyzing student grades
in C programming.
Experiment Tasks:
I. Initialize an integer array grades with 10 student grades (e.g., 85, 92, 78, 95, 88, 72, 68, 90, 82,
77).
II. Calculate and print the average grade of the class.
III. Identify and print the highest and lowest grades in the array.
IV. Count and print the number of students who scored above the average.
Aim: To create a simple contact management system using arrays to store and manipulate contact
information.
Experiment Tasks:
I. Define a structure Contact with fields for name, phone, and email.
II. Create an array contacts of type Contact to store contact information for 5 individuals.
III. Implement a function to add a new contact to the contacts array.
IV. Implement a function to search for a contact by name and display their details.
V. Implement a function to display all contacts in the array.
Aim: To explore advanced array manipulations and work with two-dimensional arrays using C
programming.
Experiment Tasks: