diff_months: 21

Java and Object-oriented Programming - IT Assignment Help

Flat 50% Off Order New Solution
Added on: 2022-08-20 00:00:00
Order Code:
Question Task Id: 406278
  • Country :

    United States America

Assignment Task

 

Task
The purpose of this first project is simply to refresh your knowledge of Java and object-oriented programming. You task is to create a package BookPrinting, which implements a class hierarchy as follows:
1.Create a base class called Book. It should keep track of the following data items (you need to decide on the data type for each data item):

  • Title
  • Author
  • Publication Year
  • Number of pages
  • Medium (0 - printed hardcover, 1- printed softcover, 2- electronic, 3 - all)
  • Number of copies printed
  • Production cost (i.e. the sum of all production expenses such as licensing, royalties, printing cost, etc.)
  • Sale price (i.e. what does the book sell for, e.g. $7.95/copy)
  • Number of copies sold
  • Number of positive reviews
  • Number of negative reviews

 

The class should have appropriate constructors, getters, setters, and a PrintInfo() method.

2.Create a class Textbook, derived from Book. The class inherits everything from the parent class and adds the following data (and appropriate methods):
Field (e.g. “Computer Science”, “Biology”, etc.)
Topic (e.g. “Computer Architecture”, “Molecular Modeling”, etc.)

3.Create a class Novel, derived from Book. The class inherits everything from the parent class and adds the following data (and appropriate methods): Genre (i.e. “Sci-fi”, “Thriller”, etc.)

4.Create an interface called PublicationInfo, which declares methods:
CostEffective(): This method, when implemented in a class should return true if the book is cost-effective, i.e. if the funds received from the sale of the book exceeds the production expenses. Otherwise return false.
GeneratesInterest(): The method, when implemented in a class, should return true if the number of positive reviews exceeds the number of negative review and if the number of sales exceeds a certain threshold (for example, when implemented in the Textbook class, the threshold 80% of the copies printed, whereas for novels, the threshold should be set to a larger number, say 65% of the copies printed).
Both class Textbook and Novel should implement the methods of the PublicationInfo interface.

5.Create a driver class Bookshelf. The class should contain a main method, which:
Opens a file called “data.txt”. Each line in that file will contain data about one book. For example:
“OpenGL”, M. Turner, 2020, 498,  3, 14000, 14995, 5.65, 12412, 581, 233, Computer Science, Computer Graphics
The entries are comma-separated, and listed in the order in section 1 above.

    

This IT Assignment has been solved by our IT Experts at Exam Question Bank. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.
    

Be it a used or new solution, the quality of the work submitted by our assignment Experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

  • Uploaded By : Katthy Wills
  • Posted on : March 03rd, 2020
  • Downloads : 0
  • Views : 348

Order New Solution

Can't find what you're looking for?

Whatsapp Tap to ChatGet instant assistance

Choose a Plan

Premium

80 USD
  • All in Gold, plus:
  • 30-minute live one-to-one session with an expert
    • Understanding Marking Rubric
    • Understanding task requirements
    • Structuring & Formatting
    • Referencing & Citing
Most
Popular

Gold

30 50 USD
  • Get the Full Used Solution
    (Solution is already submitted and 100% plagiarised.
    Can only be used for reference purposes)
Save 33%

Silver

20 USD
  • Journals
  • Peer-Reviewed Articles
  • Books
  • Various other Data Sources – ProQuest, Informit, Scopus, Academic Search Complete, EBSCO, Exerpta Medica Database, and more