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

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

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