write the java mini project and upload the code .class as like this and also provide the screenshot of the code. use these method for insert ,remove and search  public  boolean insertBook(Book b) {                  for(int i=0; i

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

write the java mini project and upload the code .class as like this and also provide the screenshot of the code.

use these method for insert ,remove and search 

public  boolean insertBook(Book b) {
        
        for(int i=0; i<books.length; i++) {
            
            if(books[i] == null) {     
               books[i] = b;
                return true;
            }
        }
        
        return false;
    }
    
    
      public  boolean removeBook(Book b) {
        
          for(int i=0; i<books.length; i++) {
            
            if(books[i].getIsbn().equalsIgnoreCase(b.getIsbn())) {
                
                for(int j=i; j<books.length-1; j++) {
                    books[j] = books[j+1];
                }
                
                return true;
            }
        }
        
        return false;
    }

   public Book searchBook(String isbn) {
        
      for(int i=0; i<books.length; i++)
        {
            if(books[i] != null)
            {
                if(books[i].getIsbn().equals(isbn))
                {
                    return books[i];
                }
            }
        }
        return null;
    }
    
    
   public void showAllBooks() {
        
        for(int i=0; i<books.length; i++) {
            
            if(books[i] != null)
            {
             
              books[i].showDetails();

            }      
                
        }
    }

Bike
Vehicle
ParkingAreaOperations
Car
ParkingArea
ParkingArea
Bike
String name;
Vehicle vehicles [=new Vehicle[100]
String bikeNum
void setBike(String bikeNum)
void setName(String name)
String getName()
String getBikeNum()
abstract void showDetails()
void showDetails()
Car
String carNum
Vehicle
String ownerName
String ownerContactNum;
String date;
String time;
void setcarNum(String carNum)
String getcarNum(0
void setownerName(String ownerName)
String getownerName()
void showDetails()
void setownerContactNum(String
ownerContactNum)
String getOwnerContactNum)
ParkingAreaOperations
String getName()
void setDate(String date)
String getDate()
void setTime(String time)
String getTime()
boolean insertCar(Car c)
boolean removeCar(Car c)
Vehicle searchVehicle(String carNum)
boolean insertBike(Bike b)
boolean removeBike(Bike b)
Vehicle searchVehicle(String bikeNum)
void showDetails()
void showAllVehicles()
Transcribed Image Text:Bike Vehicle ParkingAreaOperations Car ParkingArea ParkingArea Bike String name; Vehicle vehicles [=new Vehicle[100] String bikeNum void setBike(String bikeNum) void setName(String name) String getName() String getBikeNum() abstract void showDetails() void showDetails() Car String carNum Vehicle String ownerName String ownerContactNum; String date; String time; void setcarNum(String carNum) String getcarNum(0 void setownerName(String ownerName) String getownerName() void showDetails() void setownerContactNum(String ownerContactNum) String getOwnerContactNum) ParkingAreaOperations String getName() void setDate(String date) String getDate() void setTime(String time) String getTime() boolean insertCar(Car c) boolean removeCar(Car c) Vehicle searchVehicle(String carNum) boolean insertBike(Bike b) boolean removeBike(Bike b) Vehicle searchVehicle(String bikeNum) void showDetails() void showAllVehicles()
Start
The Start class contains the main method. Inside the main method the application prompts the user
to choose among the following options:
1.Bike Management
2.Car Management
3. Exit
Upon choosing any of the option the user is given some further options to choose from:
Options for Bike Management:
1. Insert New Bike
Remove Bike
4. Show All Vehicles
5. Go Back
2.
3. Search Bike
Options for Car Management:
1. Insert New Car
2. Remove Car
3. Search Car
4. Show All Vehicles
5. Go Back
The application will prompt the user to give input for the necessary values as per the option they
choose. The application will repeatedly go on according to the user choices.
Transcribed Image Text:Start The Start class contains the main method. Inside the main method the application prompts the user to choose among the following options: 1.Bike Management 2.Car Management 3. Exit Upon choosing any of the option the user is given some further options to choose from: Options for Bike Management: 1. Insert New Bike Remove Bike 4. Show All Vehicles 5. Go Back 2. 3. Search Bike Options for Car Management: 1. Insert New Car 2. Remove Car 3. Search Car 4. Show All Vehicles 5. Go Back The application will prompt the user to give input for the necessary values as per the option they choose. The application will repeatedly go on according to the user choices.
Expert Solution
steps

Step by step

Solved in 5 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY