Find Jobs
Hire Freelancers

LinkedBag Set C++

$10-30 USD

In Progress
Posted about 6 years ago

$10-30 USD

Paid on delivery
USING VISUAL STUDIO C++ Create a templated class called Set that will use LinkedBag as a data member to be a “has a” implementation. The Set will have the following public functions: int getCurrentSize() void isEmpty() bool add(const ItemType& newEntry) bool remove(const ItemType& anEntry) The above Set functions will invoke the data member LinkedBag. Note: there are no duplicates in the sets so the Set add should not allow duplicates (do NOT change the LinkedBag code). Also add to Set the following overloaded operator: Set operator+(const Set&) // do a union Set operator-(const Set&) // do an intersection friend ostream& operator<<(ostream&, const Set&) // print the set Put the class definition in Set.h, implementation in [login to view URL], and a main – 3 files all together. Have main create 3 Set objects that are unsigned integers then create a menu like so: [login to view URL] elements to set1 [login to view URL] elements to set2 [login to view URL] an element from set1 [login to view URL] an element from set2 [login to view URL] a union of set1 and set2 into set3 [login to view URL] an intersection of set1 and set2 into set3 [login to view URL] set1, set2, and set3 [login to view URL] Have the add elements loop and add positive integers until you enter a 0. You can create extra functions (separate from the Set class) to make it easier. Printing would look like: Which set to print? 1 Set 1 has 3 elements of: 11 5 33 With the overloaded operators, you should be able to do something like: set3 = set1 + set2;
Project ID: 16670667

About the project

5 proposals
Remote project
Active 6 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
5 freelancers are bidding on average $84 USD for this job
User Avatar
Hi there! I will deliver the completed Implementation within 24 hours (after you have awarded the project ofcourse). Let me know if you want me to handle this project for you. Thanks for reading!! Best, Maher
$50 USD in 1 day
4.9 (129 reviews)
6.3
6.3

About the client

Flag of UNITED STATES
glendale, United States
5.0
3
Member since Apr 8, 2018

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.