Assignment 1

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

National University of Computer and Emerging Sciences

Islamabad.
Programming for Engineers-II
Sections-A, B, C, D
Assignment # 1
Marks=100
Semester: Spring 2011
Due Date: 7th Feb, 2011
Instructors: Qurat-ul-Ain/Nisar Ahmed
In this assignment you have to write a complete program in VC++ 6.0. Your program should do the
following things.
You have to maintain the student information system using structures.
Represent following attributes of a student using structures
 Name
 Student ID
 Number of subjects registered
 Registration Date [Note: this attribute should be of a type structure and you need to create it
with attributes, day, month, year]
 A 2D array to represent Quizzes, Assignments, Mid-I, Mid-II and Final exam marks of the
student in each subject.
 Average Marks

Now you have to maintain the records of students. For this declare an array of structure for students
and provide following options to the user in shape of a menu.
 Set the values of each attribute for a particular student.
 Update the values of each attribute for a particular student.
 Set the values of each attribute for all students.
 Update the values of each attribute for all students.
 Display record of all students
 Display record of a particular student given his/her Student ID.
 Calculate Average Marks of a particular student.
o Average Marks=Total Marks/5;
o Total Marks for subject= Sum of Quizzes, Assignments, Mid-I, Mid-II and Final
exam marks
o Final Total Marks=
(Subject1 Total marks+ Subject1 Total marks+…+ Subject n Total marks)/n
Where n is the total number of subjects
2D Array for subject Result:

Quizzes(10) Assignments(10 Mid-1(10) Mid-II(10) Final


)
Subject 1
Subject 2
.
.
Subject N

Bonus Points:
If you define dynamic number of subjects (hint: dynamic array for number of subject) instead
fix size number of subjects. Similarly 2D array for subjects’ marks should also be dynamic in this
case.

Guidelines:

 Your Code must be fully commented.

 Submit your assignment at slate web portal.

You might also like