DSA Assigment 1
DSA Assigment 1
Subject:
Submitted by:
Submitted to:
University Of Sargodha
Department of CS and IT
PROGRAM: Write a C++ program to store and display student records using arrays and
structures. The program should define a Student structure with three attributes: name (string),
rollNumber (integer), and marks (a float array of 3 subjects). The user should be able to enter
details for n students (1 ≤ n ≤ 3). After taking input, the program should calculate and display
the average marks of each student along with their details.