Question: In JAVA Part A: Book class (Total: 40 points] a. Add another .java file called Book into the same folder MidtermExam1 Makeup. [5 points) b.
![In JAVA Part A: Book class (Total: 40 points] a. Add](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f4542d79fb9_36466f4542cdbf0d.jpg)

In JAVA
Part A: Book class (Total: 40 points] a. Add another .java file called Book into the same folder MidtermExam1 Makeup. [5 points) b. Add the following private instance variables. [5 points] Variable name title author price id isReference Data type String String double int boolean c. Generate setters and getters for the instance variables. [5 points) d. Add the following new constructor. [10 points) as public Book(String title, String author): Takes the title and the parameters and sets the instance variables. Set the remaining instance variables to random values as follows. Variable name price id isReference Description (both lower and upper bounds are inclusive) Set to a random double number between 25.0 - 150.5 Set to a random integer number between 1 - 5000 Set to true if the id is less than 500. Set to false otherwise. e. Add the displayInfo() method which displays the Car information as follows. [5 points)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
