An I/O psychologist uses hand-strength to assess overall well-being in an occupational health study, given that…

I am having trouble with my C++ program….
Directions:
In this lab assignment, you are to write a class IntegerSet that
represents a set of integers (by definition, a set contains no
duplicates). This ADT must be implemented as a singly linked list
of integers (with no tail reference and no dummy head node), but it
need not be sorted.

The IntegerSet class should have two data fields: the cardinality
(size) of the set, and the head reference to the linked list. It
should provide the following public methods:

_ IntegerSet(int size): this constructor method creates a new set
of size integers by prompting the user to enter size elements for
the set on the keyboard.

_ int size(): this method returns the cardinality of the set.

_ boolean isEmpty(): this method returns true if the set has no
elements, false otherwise.

_ boolean isMember(int item): this method returns true if item is
an element of the set, false otherwise.

_ boolean add(int item): if item is not in the set, this method
adds it to the set and returns true; otherwise, the set is
unchanged and the method returns false.

_ boolean remove(int item): if item is in the set, this method
removes it from the set and returns true; otherwise, the set is
unchanged and the method returns false.

_ boolean isSubset(IntegerSet set2): this method returns true if
every element in set2 is also in the calling set, false
otherwise.

_ IntegerSet intersection(IntegerSet set2): this method returns a
new set that is the intersection of the calling set and set2. An
integer is an element of the intersection set if it is in both the
calling set and set2.

_ IntegerSet union(IntegerSet set2): this method returns a new set
that is the union of the calling set and set2. An integer is an
element of the union set if it is in either the calling set or
set2, or both. Keep in mind that the union set formed should not
contain any duplicates.

_ IntegerSet difference(IntegerSet set2): this method returns a new
set that is the difference between the calling set and set2 (in
this order). An integer is an element of the difference set if it
is in the calling set but not in set2.

_ void display(): this method prints all elements of the set on the
screen.

In addition to the IntegerSet class, you are also required to write
a test driver that serves as the test harness for the IntegerSet
class. This test harness should provide the user with options to
explicitly test each method in the IntegerSet class.
Program so far:
Header.h
#include

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more