Question
book.java.txt = public class book { //---------------------------------------- // Data Members //---------------------------------------- String ISBN; String title; String author; float price; static int numberOfbooks=0; //---------------------------------------- // Member
book.java.txt =
public class book {
//----------------------------------------
// Data Members
//----------------------------------------
String ISBN;
String title;
String author;
float price;
static int numberOfbooks=0;
//----------------------------------------
// Member Functions
//----------------------------------------
//------------ METHODS' TYPE" -----------
book()
{
String ISBN="";
String title="";
float price=0.0f;
numberOfbooks++;
}
book(String isbnVaule,String titleValue, String authorValue, float priceValue)
{
ISBN=isbnVaule;
title=titleValue;
author=authorValue;
price=priceValue;
numberOfbooks++;
}
//--------------- METHODS' TYPE" ----------
// set ISBN data member
void setISBN(String isbnValue)
{
ISBN=isbnValue;
}
// set title data member
void setTitle(String titleValue)
{
title=titleValue;
} ********************************************************* booksDB.txt = 1676898776311,Introduction to java libraries,Jimi Smith,60 1276898776331,Principles of C++,Fares Talal,60 3487997222442,Introduction to java libraries,Omar Ali,95 1288776729021,Software Documentation,Fatimah Noaman,63 1229333321111,Procedural Programming Using C++,Maha Sami,76 8776555299444,HTML Programming,Abeer Yahya,75 9087782663312,Computer Architecture,Sami Omar,19 7174922276611,Advanced Java Programming,Jacob Chriss,100 8939847612222,Software Engineering for Beginners,Ayoob Sameh,200 1111888832679,COBOL programming for Beginners,Adel Kumar,65 4448127399922,Object Oriented Programming Using Java,Efat Anwar,154 2828742882289,Advanced Operating Systems,Sara Fayez,300
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started