How Software Gets Done  


Software Buyers
Request bids
Search coders
My Buyer Account
Buyer help
Buyer articles
Buyer FAQ
Latest news
Software Coders
Newest open work
Browse all work
Search all work
My Coder Account
Coder help
Coder articles
Coder FAQ
Latest news
My Affiliate Account
Affiliate help
Affiliate FAQ
Latest news
Newest Bid Requests.
(See all)
PHP MySQL Expert needed - Adult Site
By MediaTitan on Sep 8
Max Bid: Open to fair suggestions

Basic flash modifications
By csanyi on Sep 8
Max Bid: Open to fair suggestions

Check my web site english
By MMaccani on Sep 8
Max Bid: $100

Banner Advertisement Application
By mycoolross on Sep 8
Max Bid: Open to fair suggestions

By bestpractice on Sep 8
Max Bid: $5,000

QA person need to test system and confirm specs
By ops on Sep 8
Max Bid: $100

Click here to put this ticker on your own site and/or get live RSS newsfeeds

Open Work Categories.
(181 open)
(59 open)
(111 open)
(13 open)
   SQL Server 
(78 open)
   Other DB 
(23 open)
Documentation / Tech Writing 
(30 open)
   Language (Human) Translations 
(10 open)
Data Entry 
(32 open)
Game Development 
(20 open)
Graphics / Art / Music 
(64 open)
(68 open)
     Adobe AfterEffects 
(12 open)
     Adobe Photoshop 
(32 open)
     Adobe Premiere 
(11 open)
     3d Animation 
(23 open)
   Art (Misc.) 
(17 open)
(10 open)
(10 open)
   3d Modeling 
(14 open)
Language Specific 
(124 open)
   Assembly / Machine language 
(11 open)
(65 open)
   ASP .NET 
(70 open)
(75 open)
   C++ / C 
(148 open)
   Carbon (Mac OS) 
(7 open)
   Cocoa / Obj-C 
(4 open)
   Cold Fusion 
(12 open)
(57 open)
(80 open)
(13 open)
(48 open)
(5 open)
(113 open)
(41 open)
   Visual Basic 
(174 open)
   Visual Basic .Net 
(119 open)
(78 open)
(38 open)
(1 open)
(4 open)
(35 open)
   Video Editing 
(15 open)
(33 open)
   Network Design 
(6 open)
   Network Implementation 
(4 open)
(78 open)
(202 open)
     MS Exchange 
(7 open)
     MS Office 
(19 open)
(9 open)
(3 open)
   Embedded Systems 
(1 open)
   Hand Held/PDA Programming 
(12 open)
   Internet Browser 
(58 open)
(53 open)
   Lotus Notes / Domino 
(2 open)
(26 open)
(15 open)
(30 open)
Testing / Quality Assurance 
(22 open)
(197 open)
   Page Design 
(90 open)
(50 open)
(1 open)
   Web Services 
(90 open)
   Web (Other) 
(97 open)
(11 open)
   Computer Based 
(11 open)
Other Sites

Download the free Rent A Coder IE toolbar!
Show Bid Request

2 classes in C++
Bid Request Id: 10386
Bookmark in my 'To Do' list
Posted by: mohamed1421 (9 ratings)
(Software buyer rating 9.33)
Non-action Ratio: Very Good - 0.00%
Buyer Security Verifications: Excellent
Approved on: Mar 7, 2002
4:12:56 PM EDT
Bidding Closes: Mar 21, 2002
4:29:52 PM EDT
Viewed (by coders): 88 times
Deadline: 3/14/2002
100% of work completed and accepted. Coder has been paid.
Max Accepted Bid: Bidding is closed
Project Type: Personal Project / Homework Help
Bidding Type: Open Auction
Categories: C++ / C
Enter chat room for this bid request
(0 active users at Sep 8, 2003 7:56:56 PM EDT)

Create a class called "Set" in C++ using object-oriented techniques. The maximum number of elements in a Set is 100. Create the array to store the elements of the Set by using the "new" operator. The only type of elements that can be stored in a Set is an integer. Programmers may define objects of Set class in the ways shown in the following examples: int a[11]={10,0,1,2,3,4,5,6,7,8,9}; int b[6]={5,1,3,5,7,9}; int c[6]={5,0,2,4,6,8}; int d[3]={2,0,1}; int e[1]={0}; Set Nnatural ; //creates an empty set Set one_digit=a; //creates a set using an array s.t. the first element //of the array shows the size of the array Set odd=b; Set even=c; Set zero=0; //creates a set with single element 0 (i.e. {0}) Set zero_one=d; Set x=one_digit; //creates a set by usin an existing set //makes an exact copy of the existing set Set empty_set2=e; 1. Write necessary constructors (and a destructor) for above operations. 2. Write following functions: Insert: inserts an element into a set eg: odd.Insert(6) modifies odd as {1,3,5,6,7,9} Remove: removes an element from a set eg: odd.Remove(5) modifies odd as {1,3,7,9} Is_empty: tests whether the set is empty or not eg: odd.Is_empty() returns 0 Card: Finds the cardinality of a set eg: zero_one.Card() returns 2 3. Overload following operators: = : Assignment operation (between 2 sets) eg: odd=even; results in odd={0,2,4,6,8} + : Union of two sets eg: odd + even results in a set {0,1,2,3,4,5,6,7,8,9} * : Intersection of two sets eg: odd * even results in an empty set - : Difference of two sets eg: one_digit - even results in a set {1,3,5,7,9} == : Equality of two sets, if all members are same return 1, else 0 eg: one_digit == even returns 0 one_digit == x returns 1 [] : Membership of an element to a set eg: odd[3] returns 1 odd[2] returns 0 < : Subset operator eg: odd < one_digit returns 1 > : Superset operator eg: one_digit > one returns 1 << : Output a set. Elements will be separated by a blank and an end of line at the end. >> : Input a set. Read the number of elements that will be input first. Then, read the elements, which are separated by a blank.

this is the rest of the specifications: Create a class called "Bag" in C++ using object-oriented techniques. The Bag class will be a subclass of the class Set. In a Bag the same element can be repeated any number of times. Accordingly some existing Set functions should be redefined in a Bag class. Also some new functions will be defined. The maximum number of elements in a Bag is 1000. Create the array to store the elements of the Bag by using the "new" operator. The only type of elements that can be stored in a Bag is an integer. Bag objects can be constructed in different ways: int a[4]={1,2,3,4}; int b[10]={0,0,0,1,1,2,3,8,9,9}; int c[]={0,1,1,8,9}; int d[]={0,0,8}; Bag empty_bag; //creates an empty bag Bag bag1(b,10); //creates a bag by initializing it with an array //second parameter shows the size of the array Bag bag2=bag1; //creates a bag from an existing bag Bag bag3=set1; //creates a bag from an existing set Bag bag4(c,5); Bag bag5(d,3); 1. Write necessary constructors to handle the above declarations. 2. The following functions/operator will be inherited from the Set class: Insert: inserts an element into a bag unlike a set, an existing element can also be instered Remove: removes an element from a bag since each element can have several copies remove may remove only one copy Is_empty: tests whether the bag is empty or not Card: Finds the cardinality of a bag each occurence of an element contributes to the cardinality = : Assignment operation (between 2 bags) Also overlaod another version; assign a set into a bag + : Union of two bags Allows repetitions. * : Intersection of two bags Allows repetitions. - : Difference of two bags eg: bag4 - bag5 results in a bag {1,1,9} == : Equality of two bags, if all members are same return 1, else 0 [] : Count of an element in a bag eg: bag5[0] returns 2; bag5[1] returns 0 < : Subbag operator eg: bag5 < bag1 returns 1 > : Superbag operator eg: bag4 > bag5 returns 0 << : Output a bag. Each element will be printed with its count as follows: eg: cout<<bag5; will print 0:2 8:1 >> : Input a bag. Read the size of the bag first, and then read that many integers separated by a blank (or any delimeter). 3. Add the following functions. sum : find the sum of the integers in a bag, and return it product : find the product of the integers in a bag, and return it 4. Define the following function: void test(Set & ps1, Set & ps2) { Bag tb(ps1); int i; cout<>ps2; tb=ps2; cout<<tb; cin>>i; cout<<tb[i]; } Test this function (by calling it from your main function) with different type paramaters (like 2 sets, 2 bags, a bag and a set, etc.) and make sure it works correctly allways. If necessary convert some of the functions inherited from class Set to virtual. Note that we can change this test funtion also (prototype of the function will not be changed), so you should better try other functions.

runs on unix and visual c++

Must be 100% finished and received by buyer on:
Mar 14, 2002 EDT
Deadline legal notes: All times are expressed in the time zone of the site EDT (UT - 5). If the buyer omitted a time, then the deadline is 11:59:59 PM EDT on the indicated date.

Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements. We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation. If you notice a violation please help out the site and report it. Thanks for your help.
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests.

See all rejected bids (and all comments)
Name   Bid Amount 
Date   Coder Rating  
(26 ratings)
in BRAILA, Romania
Bid id: 119,100
N/A Mar 7, 2002
4:43:54 PM EDT
Hi! I'm sure that I can help you with your project. I'm a professional programmer working in C++ for about 4 years and I'm sure that I won't let you down. I can provide you the source code in a very short time and the bid is negociable. If you have questions , sugestions or other misunderstanding feel free to ask.


This bid was accepted by the buyer!
(26 ratings)
in BRAILA, Romania
Bid id: 119,110
$35 (USD) Mar 7, 2002
4:50:27 PM EDT
I can give you the code in less than 1 day.

Bid Request Search
 Advanced Search
Newest Open Work
Latest News  


Rent A Coder upholds the rigorous business practices required to be both a BBB member and Square Trade vendor.
  • All customer issues addressed within 2 days
  • Openly disclosed pricing and return policies
  • Participation in mediation at buyer request
  • Superior selling track record
This site is verified through its parent company, Exhedra Solutions, Inc.
Top Coders.

Rated a 9.97 on 120 jobs 
Rated a 9.84 on 91 jobs 
Rated a 9.97 on 157 jobs 
Andrei Remenchuk
Rated a 10 on 14 jobs 
Rated a 9.93 on 38 jobs 
Rated a 10 on 121 jobs 
Rated a 10 on 22 jobs 
Maxnet Technologi es Private Limited
Rated a 9.93 on 84 jobs 
Rated a 10 on 56 jobs 
Rated a 9.76 on 100 jobs 

See all top coders...

(What makes a top coder?)

Top Exam Scorers

Rent A Coder is PayPal verified through its parent company, Exhedra Solutions, Inc.

Created in partnership with:


Affiliate Sites
Latest News | About Us | Kudos | Feedback/Contact    Affiliates | Advertise    Privacy | Legal

Copyright 2001, Exhedra Solutions, Inc. All rights reserved.
By using this site you agree to its Terms and Conditions.
"Rent A Coder" (tm), "Safe Project Escrow" (tm) and "How Software Gets Done" (tm)
are trademarks of Exhedra Solutions, Inc.