Mis 3330 project using intellij idea

Semester Project

Concept Summary:

1. Object Oriented programming concepts
2. Abstract classes
3. Polymorphism
4. Collections

Objective:

you will need to create three classes and a driver program. The first class, the parent, should be
an abstract class called Item. The other two classes, the children, should inherit from the parent
class and be called Book and Periodicals. Finally, create a test class called myCollection.

Item abstract class

Create an abstract class called Item. It must have:

● title – A private attribute of type string.
● A getter/setter for title
● A constructor that takes no arguments and sets title to empty string ● A constructor which

takes a title and sets the title attribute.
● getListing() is an abstract method that returns a string and is implemented in classes

Book and Periodicals.
● An override of toString/ToString which returns the title.

Book child class
Create a Book class which inherits from Item. It must have:

● isbn_number – A private attribute which holds an ISBN number (13 digits) to identify the
book

● author – A private attribute which holds the authors name (string) ● getters/setters for the
attributes in this class.

● A constructor which takes no arguments
● An overloaded constructor which sets all the attributes in the Book class as well as the

Item class.

● A concrete version of the getListing() method which should return a string that contains
the following:

Book Name – Title
Author – Author

ISBN # – ISBN number

Periodical child class
Create a Periodical class which inherits from Item. It must have:

● issueNum – A private attribute which holds the issue number (e.g. 103)
● getter/setter for issueNum
● A constructor which takes no arguments
● An overloaded constructor which sets all the attributes in the Periodical class as well as

the Item class.
● A concrete version of the getListing() method which should return a string that contains

the following:
Periodical Title – Title Issue
# – Issue number

myCollection Driver Program
Write the driver program which will prompt the user exactly 5 times to add Books and
Periodicals to an array (***BONUS POINTS FOR USAGE OF COLLECTION IN PLACE OF
ARRAYS***)

The array should be of type Item since it can hold either Books or Periodicals. This is
polymorphism!

Ask the user to “Please enter B for Book or P for Periodical”

If they choose Book, prompt for Title, Author and ISBN number. Store the results in the next
cell of the array.

If they choose Periodical, prompt for Title and IssueNumber. Store the result in the next cell
of the array.

Once the user has entered 5 items which could be any combination of Books and
Periodicals, show the user their collection.

See sample output below.

Sample Output:

Please enter B for Book or P for Periodical
B
Please enter the name of the Book
Lord of the Rings
Please enter the author of the Book
Tolkien
Please enter the ISBN of the Book
34
Please enter B for Book or P for Periodical
P
Please enter the name of Periodical
Times
Please enter the issue number
1234
Please enter B for Book or P for Periodical
B
Please enter the name of the Book
War and Peace
Please enter the author of the Book
Tolstoy
Please enter the ISBN of the Book
4567
Please enter B for Book or P for Periodical
B
Please enter the name of the Book
Alice in Wonderland
Please enter the author of the Book
Lewis Carroll
Please enter the ISBN of the Book
7890
Please enter B for Book or P for Periodical
P
Please enter the name of Periodical
New Yorker

Please enter the issue number
45

Your Items:
Book Name – Lord of the Rings
Author – Tolkien
ISBN# – 34

Periodical Title – Times
Issue # – 1234

Book Name – War and Peace
Author – Tolstoy
ISBN# – 4567

Book Name – Alice in Wonderland
Author – Lewis Carroll
ISBN# – 7890

Periodical Title – New Yorker
Issue # – 45

Submission Guidelines:
You will zip and submit the intellij idea project folders similar to previous assignments

Calculate Your Essay Price
(550 words)

Approximate price: $22

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