Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

CS201 Assignment#05 Solution

See the attached file please

Views: 225


Replies to This Discussion

yeah solution execute nahi ho raha koi aur solution hoto share krain...
This solution is not related to assignment no. 5 plz upload solution of assignment no. 5....

class multiply
int myarry[10];
//Constructor initializing array for all four objects of class!

for(int i=0;i<=9;i++)

//returns values of objects a and b on the screen
void getter(multiply a,multiply b)
cout"Values for object a are:-"endl;
for(int t=0;t<=9;t++)

cout"Values for object b are:-"endl;

for(int s=0;s<=9;s++)


//takes values from user for objects a and b
void setter(multiply x,multiply y,multiply z)

cout"Enter values in array for object a"endl;

for(int m=0;m<=9;m++)
cout"Value Please?"endl;
cout"Enter values in array for object b"endl;

for(int n=0;n<=9;n++)
cout"Value Please?"endl;


//performs the multiplication
void calculate(multiply a,multiply b,multiply c)

for(int bee=0;bee<10;bee++)





//outputs result
void result(multiply f)

cout"Your Result is"endl;

for(int h=0;h<10;h++)




void main()
multiply o,a,b,c;

See the attached file plase
M. Tariq Malik Sahib, Sir jee, peer jee yah wala solution humaree assignment ka nahee hai plz kuch hum par bhi meherbani kari or humaree assignment ka solution upload kari, warna yah wali assignment to gai
see the attached file
Assignment No. 5
Semester: Fall 2010
CS201: Introduction to Programming Total Marks: 20

Due Date: Jan 31st ,2011

Please read the following instructions carefully before submitting your 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 any other file format like .doc or .txt etc. you will get zero marks.

The objective of this assignment is to provide hands on experience of using

 User defined manipulators
 Static member
 Copy Constructor

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

Problem Statement:

• You are required to write a program of class rectangle named CRectangle which should draw two rectangles by using iTop, iRight, iBot, and iLeft. Then program should calculate the area of both. Number of rectangles should be displayed to user by using static variable counter which would keep track of increment or decrement of rectangles. Dynamically Create another rectangle by using copy constructor and increment in counter should be displayed on screen. Decrement in static variable counter (after de-allocating memory which was dynamically allocated) should be displayed again on screen.

Sample Output
Area of rectangle 1 is 6400
Area of rectangle 2 is 5600
The number of rectangles is 2
After using copy constructor, total number of rectangles is 3
The number of rectangles is 2

Detailed Description:

1. The class should have 4 members: iTop, iRight, iBot, and iLeft, all of type int.
2. Area of both rectangles should be calculated by using iTop, iRight, iBot, and iLeft.
3. It should have a default constructor and a copy constructor.
4. It should have a destructor.
5. It should contain all required getters and setters.
6. It should contain a static member, iRefCount, which keeps track of the number of CRectangle objects. Increment it in the constructor, and decrement it in the destructor.

CRectangle would implement rectangles by using left, right, top and bottom and calculate their areas to compare.


Your Assignment solution must be submitted on or before Jan 31st, 2011.
tariq bhai is assignment ka solution chaiye plz share ...
plz upload the above mention
is ka solution nehi aayega because this assignment has some ambiguities jiski wajah se ye kisi ko samajh aa nehi rahi... tou sab cs201 assignmen # 5 spring 2010 ka solution upload kiye jaa rhay hein...


© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service