Develop the book and volume classes

Assignment Help Computer Engineering
Reference no: EM132217582

Please use java.

A Book has such properties as title, author, and numberOfPages. A Volume will have properties such as volumeName, numberOfBooks, and an array of book objects (Book [ ]).

You are required to develop the Book and Volume classes, then write an application (DemoVolume) to test your classes.

The directions below will give assistance.

Create a class called Book with the following properties using appropriate data types: Title, Author, numberOfPages, Create a second class called Volume with the following properties using appropriate data types: volumeName, numberOfBooks and Book [ ].

The Book [ ] contains an array of book objects.

Directions

Create a class called Book with the following properties using appropriate data types: Title, Author, numberOfPages,

The only methods necessary in the Book class, for this exercise, are the constructor and a toString(). 

Create a second class called Volume with the following properties using appropriate data types: volumeName, numberOfBooks and Book [ ]. Book [ ] will contain an array of book objects.

The only methods necessary in the Volume class, for this exercise, are the constructor, toString() and getBookArray(). The getBookArray returns a string of book properties for each book.

Create an application called DemoVolume. 

In the main method,

Create an array of book objects to be added to the volume. 

Create a volume object called volume1.

Display the properties of volume1.

Reference no: EM132217582

Questions Cloud

What is the book value of klingons assets today : If all the current assets were liquidated today, the company would receive $2.6 million cash. What is the book value of Klingons assets today
Create a program to play game of tic tac toe : Using two dimensional arrays, create a program to play game of Tic Tac Toe. Your program enables you to play against the computer.
Calculate the area of a rectangular shaped wall : write a C++ program that calculates the area of a rectangular shaped wall and then calculates the required cost to paint that wall.
Write java programs that use command-line input : CS 2130: Write Java programs that use command-line input and call the following integer functions.
Develop the book and volume classes : You are required to develop the Book and Volume classes, then write an application (DemoVolume) to test your classes.
Write a public static method named q that takes an arraylist : Write a public static method named q that takes an ArrayList of type Double and returns an int.
Write a program to compute the mileage given by a vehicle : Write a program to compute the Mileage given by a vehicle. Mileage = (new_odometer - old_odometer)/(gallons_gas) // illustrating how ‘for' loop works.
Write a statement to call template function defined : Assume dList[50] declares an array of 50 doubles, and is properly initialized. Write a statement to call template function defined above to sort the array.
Find the distance and midpoint of the line : Create a line struct from point struct having x and y coordinates. Find the distance and midpoint of the line (as members of struct).

Reviews

Write a Review

Computer Engineering Questions & Answers

  A system that calculates and returns the mean and a method

A system that calculates and returns the mean and a method

  Draw tree storing k as its keys using maximum number of node

Consider the set of keys K = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}. Draw a (2,4) tree storing K as its keys using the maximum number of nodes.

  Make the shell capable of taking its command line put

Script file support Make the shell capable of taking its command line put from a file whose name is provided as a command line.

  Determine legal requirements for penetration testing

Determine Legal Requirements for Penetration Testing - Write a brief report to your instructor outlining the steps you should take before beginning

  Write a program to test the function and print the content

Write a C++ program to test the function and print out the content of each element in the new array in main.

  Differentiate between the various tools and tactics

Differentiate between the various tools and tactics for attacking network security monitoring and the considerations involved in incident response.

  Describe each approach and compare their relative merits

What approaches are there to distinguish an OS process from other user processes. Briefly describe each approach and compare their relative merits.

  Analyze the invention and growth of crowdsourcing in the

crowdsourcing in the field of interface design takes tasks traditionally performed by specific individuals and spreads

  At what time does john catch the parachute

Assume that John leaves the airplane in the head down (area is 0.3 m) position 45 seconds after the parachute. At what time does John catch the parachute?

  Why does a change of case help make a stronger password

Why does a change of case help make a stronger password? How did you choose the password you currently have? Could others follow the same logic and choose a similar password?

  How each layer of technology is related

Consider the three component layers of cloud computing, and explain in your own words how each layer of technology is related. Ensure that each layer.

  Explaining the trust/security domain boundaries

Recognize and explain Trust/Security Domain boundaries which may be applicable to the personal computer (workstation) security in the business context.

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