Professional Documents
Culture Documents
4 Total Marks: 20
Semester: Fall 2010
CS201: Introduction to Programming Due Date: 24th Jan, 2011
Instructions:
Please read the following instructions carefully before submitting your
assignment:
It should be clear that your assignment will not get any credit if:
Note: You have to upload only .cpp file. Assignment in any other format
(extension) will not be accepted. If you will submit code any other file
format like .doc or .txt etc. you will get zero marks.
Objective
The objective of this assignment is to provide hands on experience of using
Guidelines
Code should be properly aligned and well commented.
Follow C/C++ rules while writing variables names, function names
etc.
Use only Dev-C++ IDE for this assignment.
Assignment
You are required to create a class in C++ named Price with the following
Data members, Data members should be publicly declared.
• Rupees
• Paisas
The Price class presents Price in Rupees and Paisa. For instance, Price (10,
80) means 10 rupees and 80 paisas. The Price class should have the following
features as described in detailed descriptions:
Detailed Description:
Constructors
• Add two objects and return Price object. Note that Paisas should not
exceed 100.
• Add first number into second objects and return Price object. Note that
paisas should not exceed 100.
After Addition
Note: you have to use same Class and Function name as mentioned in the
assignment details. If we find any deviation, marks will be deducted.
Deadline:
Your Assignment solution must be submitted on or before January 24th, 2011.
Only CPP file will be accepted, file other than CPP will be awarded
zero (0) marks.