0% found this document useful (0 votes)
11 views1 page

Assign 4

C++

Uploaded by

awstudyonly
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views1 page

Assign 4

C++

Uploaded by

awstudyonly
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

COMSATS University Islamabad, Lahore Campus

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

Assignment 4: [Submission Date: Tuesday, 17th December, 23:59]

Q1: [CLO-3 - Applying]


Write a C++ program (with proper comments and indentations) that stores and displays students marks list,
using arrays and structures.

 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.

You might also like