Create a simple hierarchy for items

Assignment Help Data Structure & Algorithms
Reference no: EM13326500

Problem to solve:
Assume you have to write software to be used by a university library. There are three types of item that can be borrowed from the library - DVDs, books and journals. These are all a type of Media.

1751_Assign.png

You will need to create a simple hierarchy for items that the library lends out. Create a Media base class with DVD, Book and Journal as derived classes as shown in the UML diagram.

Requirements:
The member variables (id, title, year) in the Media class should be private. Each class should have appropriate constructor(s).

Reference no: EM13326500

Questions Cloud

Find the tension in the stick : A 0.16-kg ball on a stick is whirled on a vertical circle at a constant speed. Find the tension in the stick
From an ethical perspective : From an ethical perspective, describe how much information is a firm obliged to tell a potential strategic alliance partner about what it expects to learn from the cooperative arrangement.
What are the pros and cons of each method : What are the pros and cons of each method? If you are the security officer of your company and want to set up a key distribution mechanism, which one would you choose to use?
Find the maximum speed that the cycle can have : A motorcycle is traveling up one side of a hill and down the other side. Determine the maximum speed that the cycle can have
Create a simple hierarchy for items : Assume you have to write software to be used by a university library. There are three types of item that can be borrowed from the library - DVDs, books and journals. These are all a type of Media.
Does the federal court have jurisdiction : Henry, a resident of Nevada, sued Adam, a resident of Utah in the Federal Court in California. He sought $60,000 damages for personal injuries arising from an automobile accident that occurred in Los Angeles, CA.
How long does it take for Venus to make one orbit : The earth orbits the sun once per year at the distance of 1.50 x 1011 m. How long (in earth days) does it take for Venus to make one orbit
Find the position of the particle after this time : A particle moves along the x axis. It is initially at the position 0.130 m, moving with velocity 0.190 m/s and acceleration -0.330 m/s2. FIND the position of the particle after this time
What are the components of the particles veloctiy : Two forces, F1=(-3.0i-4.45j)N and F2=(-2.75-5.50j)N, act on a particle of mass 1.50kg that is initially at rest at coordinates (-2.05m,3.75m). what are the components of the particles veloctiy at t=10 seconds

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Write program to do operaretions of stack-push-pop-peek

Write down the program which does the basic stack operations: Make the stack. Push element into the stack. Pop element from the stack.

  Write algorithm to create job applicant report

Write the algorithm to create job applicant report. Input consists of a series of records that contain the Social Security number or equivalent, last name, first name, middle initial.

  Develop a flowchart and provide a brief explanation

Create a hierarchy chart depicting the chosen situation and develop a flowchart and provide a brief explanation for it.

  Creating a big inteter calculator program

Create a big-inteter calculator program that permits the user to enter two large integers and the operation to be performed and that calls appropriate function to carry out the designated operation.

  Explain spacewise efficient implementation two-stack data

Structure of such two-stack data type would consist of two arrays and two top pointers. Describe why this may not be a spacewise efficient implementation.

  Decrypting the ciphertext to recover the plaintext

If you get ciphertext message YPHDCRPBEQTAA, decrypt to recover plaintext.

  Finding page faults for lru replacement algorithms

How many page faults would happen for the given replacement algorithms, assuming one, two, three, and four frames?

  Using a backtracking algorithm

If the backtracking algorithm finds a dead end, it retraces its path until it reaches a position from which there is an untried path. The backtracking algorithm always tries all directions from any position, and always in the same order.

  Conduct time complexity analysis of the algorithm

Hand test your algorithm using your allocated 10-element long list of alphabetic charactersas an illustrative/working example (see the Data Set below),

  Include methods to set and get values for each data field

Design a class named MagazineSubscription that has fields for a subscriber's name, the magazine name, and number of months remaining in the subscription. Include methods to set and get the values for each data field.

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Using the stack data structure for storing disk objects

Which parts of the assignment were you not able to complete fully? For each, explain why you were unable to complete this part and what steps you took to attempt to complete it. Give me as much detail as possible such that I may award partial cred..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd