. when in ‘large’ mode, all integers larger than p ii. when in ‘small’ mode, all integers smaller than p 2. 2) obj.scramble(seq) — obj is of type dataFilter

Part I: Class Design
Design an inheritance hierarchy of dataFilters, where each object encapsulates a prime number p and
provides the functionality to filter and to scramble an integer sequence:
1) obj.filter() — obj is of type dataFilter — returns a subset of an encapsulated integer sequence,
as follows
a. returns ‘p’ if the internal sequence is null b. Otherwise, returns,
i. when in ‘large’ mode, all integers larger than p ii. when in ‘small’ mode, all integers smaller than p
2. 2) obj.scramble(seq) — obj is of type dataFilter
a. updates the encapsulated sequence with seq, if not null b. returns a reordered integer
sequence, as follows
i. When in ‘large’ mode, views a sequence of n integers as n/2 pairs;
For each pair, exchanges the values, if necessary to have the larger value first e.g if a[4]=
15 and a[42]= 56 are ‘paired’, a[4] and a[42] are swapped
and a[45]= 111 and a[83]= 36 are ‘paired’, they are not swapped
ii. When in ‘small’ mode, views a sequence of n integers as n/2 pairs;
For each pair, exchanges the values, if necessary to have the smaller value first e.g if
a[4]= 15 and a[42]= 56 are ‘paired’, they are not swapped
and a[45]= 111 and a[83]= 36 are ‘paired’, a[45] and a[83] are swapped
3. 3) each dataMod object is-a dataFilter and thus operates like an dataFilter object, except that:
a. filter() increments each value returned when in ‘large’ mode; otherwise, decrements b.
scramble(seq) replaces all prime numbers with ‘2’ before scrambling
4. 4) each dataCut object is-a dataFilter and thus operates like an dataFilter object, except that:
a. filter() removes the maximum number when in ‘large’ mode; otherwise, removes the
minimum
b. scramble(seq) removes any number that occurred in the previous scramble request before
scrambling
5) Client’s sequences acquired via Dependency Injection so design should include error processing.
Many details are missing. You MUST make and DOCUMENT your design decisions!!
Part II: Driver (P3.cs) — External Perspective of Client – tests inheritance hierarchy design
The P3 driver must test the use of all 3 types together as well as each class separately. Design
the tests carefully.
Additionally:
1) Use at least one heterogeneous collection for testing collective functionality 2) Instantiate a
variety of objects
3) Trigger a variety of mode changes

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
error: Content is protected !!