06-28-2010, 11:28 AM
Assignment No. 04
Semester: Spring 2010
CS201: Introduction to Programming
Total Marks: 20
Due Date:30/06/2010
Instructions
Please read the following instructions carefully before submitting assignment:
It should be clear that your assignment will not get any credit if:
The assignment is submitted after due date.
The submitted assignment does not open or file is corrupt.
All types of plagiarism are strictly prohibited.
Note: You have to upload only .cpp file. Assignment in any other format (extension) will not be accepted. If you will submit code in .doc (Word document) you will get zero marks.
Objective
The objective of this assignment is to provide hands on experience of using
Basic concepts of C++ language and Programming
Functions of C/c++ language
Classes in c/c++ language
Guidelines
Code should be properly aligned and well commented.
Follow c/c++ rules while writing variables names, function names etc
Use only dev-C++ for this assignment.
Assignment
Problem Statement: Student class
You are required to write a class named “Student “. Student class has the following data members
• Name
• Roll Number
• Semester
• CGPA
Student class should have
• Default and overloaded constructors
• Getter and setter functions
• A display function that will display the values of data members of an object
You are required to create two objects of student class. One object should be initialized with default constructor, and second object should be initialized with overloaded constructor.
Then you should display the values of both objects using display() function.
Deadline
Your assignment must be uploaded/submitted on or before 30-06-2010
Semester: Spring 2010
CS201: Introduction to Programming
Total Marks: 20
Due Date:30/06/2010
Instructions
Please read the following instructions carefully before submitting assignment:
It should be clear that your assignment will not get any credit if:
The assignment is submitted after due date.
The submitted assignment does not open or file is corrupt.
All types of plagiarism are strictly prohibited.
Note: You have to upload only .cpp file. Assignment in any other format (extension) will not be accepted. If you will submit code in .doc (Word document) you will get zero marks.
Objective
The objective of this assignment is to provide hands on experience of using
Basic concepts of C++ language and Programming
Functions of C/c++ language
Classes in c/c++ language
Guidelines
Code should be properly aligned and well commented.
Follow c/c++ rules while writing variables names, function names etc
Use only dev-C++ for this assignment.
Assignment
Problem Statement: Student class
You are required to write a class named “Student “. Student class has the following data members
• Name
• Roll Number
• Semester
• CGPA
Student class should have
• Default and overloaded constructors
• Getter and setter functions
• A display function that will display the values of data members of an object
You are required to create two objects of student class. One object should be initialized with default constructor, and second object should be initialized with overloaded constructor.
Then you should display the values of both objects using display() function.
Deadline
Your assignment must be uploaded/submitted on or before 30-06-2010
