Assign 4
Assign 4
Course Title: Programming Fundamentals Course Code: CSC103 Credit Hours: 4(3,1)
Resource Person: Dr. Muhammad Sharjeel Programme Name: BSSE
Instructor/s:
Semester: 1st Batch: FA24 Section: A/B Max Marks: 10
First create a struct ‘Student’ with members ‘name’, ‘subjects’, and ‘marks’.
o Select appropriate data types and data structure for each of the members.
Take input from the user to decide total number of students and total number of subjects for each
student.
o Use input validation, total number of students must not exceed 8 and total subjects must not
exceed 4.
Save each student record by taking input from the user.
o The user must enter name of the student and marks scored in each of the subjects.
Display all the students’ records.
o Use a separate function for printing names and marks of all the students.