Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cs201 assignmentno 5 solution fall 2010 on 27/01/2011
#1
[FONT=&quot]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 [/FONT]
  • [FONT=&quot]was dynamically allocated) should be displayed again on screen.[/FONT][FONT=&quot][/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot]Sample Output [/FONT]
[FONT=&quot]Area of rectangle 1 is 6400[/FONT]
[FONT=&quot]Area of rectangle 2 is 5600[/FONT]
[FONT=&quot]The number of rectangles is 2 [/FONT]
[FONT=&quot]After using copy constructor, total number of rectangles is 3[/FONT]
[FONT=&quot]The number of rectangles is 2[/FONT]
[FONT=&quot] [/FONT][FONT=&quot][/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot]Detailed Description:[/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot]1. [/FONT][FONT=&quot]The class should have 4 members: iTop, iRight, iBot, and iLeft, all of type int. [/FONT]
[FONT=&quot]2. [/FONT][FONT=&quot]Area of both rectangles should be calculated by using iTop, iRight, iBot, and iLeft. [/FONT]
[FONT=&quot]3. [/FONT][FONT=&quot]It should have a default constructor and a copy constructor. [/FONT]
[FONT=&quot]4. [/FONT][FONT=&quot]It should have a destructor. [/FONT]
[FONT=&quot]5. [/FONT][FONT=&quot]It should contain all required getters and setters.[/FONT]
[FONT=&quot]6. [/FONT][FONT=&quot]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.[/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot]Hint: [/FONT]
[FONT=&quot]CRectangle would implement rectangles by using left, right, top and bottom and calculate their areas to compare. [/FONT]


Attached Files
.doc   Fall 2010_CS201_5.doc (Size: 163 KB / Downloads: 250)
Reply
#2
xpert plz upload the solution of CS201 5th assignment.last date is 31st
Reply
#3
pllllzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz upload the solution today is last day
Reply
#4
please Upload the solution ..........!!!
Reply
#5
Ok dear tonight i will try to upload it. you still have a bonus day
Reply
#6
xpert plz uplaod solution file as soon as possible
Reply
#7
i will dear at night dont worry pleaze
Reply
#8
plz send the solution the assignment no 5 of cs201 plz today is last date
Reply
#9
Dear don't worry it will be uploaded soon.
Reply
#10
plzz upload the solution of cs 201 assignment # 5 solution
today is the last date
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  CS703 – Advanced Operating Systems Assignment No.3 solution January 2016 Vuhelper 0 5,905 01-23-2016, 09:58 PM
Last Post: Vuhelper
  CS601 Data Communication Assignment No. 03 Solution 23rd January 2016 Vuhelper 1 1,926 01-23-2016, 06:09 PM
Last Post: Vuhelper
  CS403 Assignment No. 03 Solution 23rd January 2016 Vuhelper 2 1,162 01-23-2016, 03:18 PM
Last Post: Vuhelper
  CS506 Web Design and Development Assignment no 3 Solution 3rd January 2016 Vuhelper 0 2,240 01-23-2016, 03:16 PM
Last Post: Vuhelper
  CS724 Software Process Improvement Assignment No 01 Solution 20th January 2016 Vuhelper 0 1,963 01-20-2016, 06:26 PM
Last Post: Vuhelper
  CS711 Software Design Assignment No 01 Solution Due Date Feb 12, 2016 Vuhelper 0 1,661 01-20-2016, 06:24 PM
Last Post: Vuhelper
  CS709 Formal Methods for Software Engineering Assignment No 01 Solution January 2016 Vuhelper 0 1,795 01-20-2016, 06:22 PM
Last Post: Vuhelper
  cs703 assignment no 3 Solution 20th January 2016 Vuhelper 0 1,698 01-20-2016, 06:20 PM
Last Post: Vuhelper
  CS704 Assignment No. 01 Solution January 2016 Vuhelper 0 4,795 01-20-2016, 06:19 PM
Last Post: Vuhelper
  Data Warehousing– CS614 Assignment No. 3 solution 20th Jauary 2016 Vuhelper 0 9,574 01-20-2016, 06:16 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)