(1) Write a class called Book having the following data members: title (String), author1 (String), author2(String), publisher (String), yearPublication (int), isbn (String), accessionNum (long), issuedTo (LibMember). Include following public methods in the class: Default constructor (without any parameters), constructor with 6 parameters (except for issuedTo - initialize issuedTo to null), set and get methods for all attributes, equals and toString. NOTE: The ISBN is a unique 13 digit number assigned by the publisher. It is like barcode. AS there can be multiple copies of a book in a library, the libraries assign a unique number, called accession number, to every book in the library to keep track of the books in the library. Assume that accession number starts from 1001.

Question

JAVA

(1) Write a class called Book having the following data members:
title (String), author1 (String), author2(String), publisher (String), yearPublication (int),
isbn (String), accessionNum (long), issuedTo (LibMember).
Include following public methods in the class:
Default constructor (without any parameters), constructor with 6 parameters (except for
issuedTo - initialize issuedTo to null), set and get methods for all attributes, equals and
toString.
NOTE: The ISBN is a unique 13 digit number assigned by the publisher. It is like barcode. AS
there can be multiple copies of a book in a library, the libraries assign a unique number, called
accession number, to every book in the library to keep track of the books in the library.
Assume that accession number starts from 1001.
Expand
Transcribed Image Text

(1) Write a class called Book having the following data members: title (String), author1 (String), author2(String), publisher (String), yearPublication (int), isbn (String), accessionNum (long), issuedTo (LibMember). Include following public methods in the class: Default constructor (without any parameters), constructor with 6 parameters (except for issuedTo - initialize issuedTo to null), set and get methods for all attributes, equals and toString. NOTE: The ISBN is a unique 13 digit number assigned by the publisher. It is like barcode. AS there can be multiple copies of a book in a library, the libraries assign a unique number, called accession number, to every book in the library to keep track of the books in the library. Assume that accession number starts from 1001.

Expert Answer

Want to see the step-by-step answer?

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

*Response times may vary by subject and question complexity. Median response time is 34 minutes for paid subscribers and may be longer for promotional offers.
Tagged in
Engineering
Computer Science

Java

Related Computer Science Q&A

Find answers to questions asked by students like you.

Q: In a python program you can simulate a magic square using a two-dimensional list. Write a function t...

A: #Set the number of NumOfRows and columns NumOfRows = 3 NumOfColumns = 3 MIN = 1 MAX = 9 #Define a fu...

Q: Create a program named TipCalculation that includes two overloaded methods named DisplayTipInfo. One...

A: Program approach: create a class  define two overloaded method named DisplayTipInfo ()  one method ...

Q: Write a Java application that will accept two filenames (text files) as command line arguments and u...

A: The main objective of the java program is to create two files to read two files by using Threads. On...

Q: Only C/C++

A: #include <iostream>using namespace std;// This functions returns the// Maximum no of students ...

Q: Question-3 There are n number of students in a class. Assume a teacher enters and wants to shake han...

A: Solution is in Step 2.

Q: Write a class named StockPrices . The class constructor should accept an array of stock prices as it...

A: Actually, c++ is powerful general purpose language.

Q: Lmat that w all OL SP De int[] list = {-2, 8, 13, 22, 25, 25, 38, 42, 51, 103}; This would construct...

A: Actually, array is an collection of elements.

Q: need help with python. Also, can you explain how we have to do this? Please write codes for prog1.py...

A: Actually, python is easiest programming language. It is a dynamically typed programming language.  

Q: Write a program in C write a program that reads a series of strings and prints only those beginning ...

A: program approach:- // using header file & main function. // string array which can take a series...

Q: Clustering is a side effect of linear probing. Group of answer choices True False Also explain why?

A: The, answer has given below;

Q: what is live streaming in social media

A: Live streaming refers to the continuous capture and transmission of internet streaming media in real...

Q: a) Determine the correct class of the following IP addresses:Address Class?191.107.2.10 172.16.16.15...

A: (a)There are five classes, A, B, C, D, and E, in classic addressing. Each class has a number of valu...

Q: List some of the ways in which IPV6 is different from IPV4 .Explain the concept of tunneling IPV6 da...

A: One of the difference between IPV6 and IPV4 is that the appearance of the IP address IPV6 uses hexad...

Q: Description You are contacted by a Birthday Party Clubownerwho wants you to help withmaking a Websit...

A: Click to see the answer

Q: Define the terms, foreground and background, in a multitasking operating system. Describe how a comp...

A: Step 1:- Note:-As per our policy, We are entitled to answer the first question only. Operating Syste...

Q: ). This problem is about linear probing method we discussed in the class. Problem 4, Consider a hash...

A: Hash Function hx=x mod 11 Start with 5. 5 will be placed at index 5 (a). 8 will be placed at index...

Q: A salesman has n things to sale .The cost price of all n things is different out of which p things h...

A: We have the formulas for Loss and Profit as Profit = selling price- cost price  (We are selling the ...

Q: List file & disk management tools, and describe the function of each.

A: Click to see the answer

Q: a) Printers today have many features that include improved quality, photo printing capabilities, dig...

A: Some of the most important feature that are needed for a printer is that The printer must have a hi...

Q: 3.Write a generic class called GenericStack<T> that represents a stack structure. A stack stru...

A: //Note: Since two questions are different i prefered to answer the first question please resubmit th...

Q: Subject :database

A: The following properties are required to solve the problems in the given scenario: Atomicity, Consis...

Q: 9.1: MonetaryCoinDesign and implement a class called MonetaryCoin that is derived from the Coin  cla...

A: Note: Below is the required program in java language. Program Approach: Creating class coin Declari...

Q: Scilab program for solving ordinary diffrential equation using ode package

A: It is numerically oriented high level programming language. It is free and open source software for ...

Q: You have to construct a string “cmpmpcmpm” from a blank string. There are two ways to construct a st...

A: Click to see the answer

Q: TIME CLASS (Language: C++) - Write a time class named timeClass  - Write code to demonstrate that it...

A: Program: Filename: Main.java   import java.util.*; import java.lang.*; import java.io.*;   class Mai...

Q: The IT director of Global Hills started the meeting today by saying "I've got some good news and som...

A:   Solution 1:  Some of the drawbacks related to device growth are:  By the end of November, which i...

Q: (Airplane Seating Assignment) | Write a program that can be used to assign seats for a commercial ai...

A: Program : #include<iostream.h>#include<iomanip.h> void menu(int& choose); void seat...

Q: Problem 1 (*^ ;. Consider the following heap, which shows integer keys in the nodes: 42 75 56 83 77 ...

A: The given figure shows a min heap data structure. Since the integer value of all the children nodes ...

Q: How should i use github?What are the best hacking apps for Android?Can I earn through canva and remo...

A: GitHub GitHub is a highly used software that is typically used for version control. It is helpful wh...

Q: Give the transition diagram of a standard Turing Machine that implements the function. Briefly expla...

A: Actually, transition is a changing from one state to another.

Q: please provide some explanations to help me understand the topic (image).

A: Based on our rule, we should answer only the first question when multiple questions are posted. Plea...

Q: Suppose that your company is trying to decide whether it should buy special equipment to prepare hig...

A: Solution is in Step 2.

Q: (b)/Éxplain Dijkstra Algorithm and compute the shortest paths of given Network fig-1. 2 Source Desbn...

A: Introduction of Dijkstra's Algorithm: The Dijkstra's Algorithm is used to find the minimum distance ...

Q: Information Security For a sniffer attack to succeed, what must the attacker do? How can an attacker...

A: Remember back in some movies, law agencies, and criminals used to bug the telephone lines in order t...

Q: how can i find the number of entered sixes with one dimensional array. import java.util.Scanner;impo...

A: Introduction of Program: The Java Program takes numbers of students and number of groups as input fr...

Q: There is a legend about a magical park with N × N trees. The trees are positioned in a square grid w...

A: #include <stdio.h>int main(){ //number of trees int N; scanf("%d",&N); //array to st...

Q: A student has 5 different English book, 2 different Science books and 2 different Mathematics books....

A: Solution is in Step 2.

Q: Q6: (Display patterns using loops) Use nested loops that display the following pattern in three sepa...

A: Pattern A  : Program in  C #include <stdio.h> int main() {    int i, j, rows;    printf("Enter...

Q: Create a pentagon (5 sided polygon) in code blocks

A: Since it is not mentioned here nor the programming language. Following is a code in c++ using graphi...