Question: PLEASE USE ONLY ARRAYS IN JAVA! Library Book Reservation System You are a computer engineer working in a library. You are asked to develop a

 PLEASE USE ONLY ARRAYS IN JAVA! Library Book Reservation System Youare a computer engineer working in a library. You are asked todevelop a new application to operate book reservations. The library has 10different books. Your application asks for the following operations 1 View All

PLEASE USE ONLY ARRAYS IN JAVA!

Library Book Reservation System You are a computer engineer working in a library. You are asked to develop a new application to operate book reservations. The library has 10 different books. Your application asks for the following operations 1 View All 2 View Available 3 View Authors 4 View By Year and Type 5 Get 6 Return 7 Exit To do this you will need to use 3 different arrays (books[ ], years ] and counts[ ]) The books array has book name, author name and book type information as a string entity The years array has publication year information of each book The counts array has information about the number of available books Initially, all books, authors, book types, years, and counts must be set. You should use the code below to initialize your arrays String books[] { "The Outsider, Stephen King, Novel", "Improbable, Adam Fawer, Novel", Doctor Sleep, Stephen King, Novel", "Java, Walter Savitch, Technical", "Relativity, Albert Einstein, Scientific", "The Evolution of Physics, Albert Einstein, Scientific" , "The Success Principles, Jack Canfield, Self-help", "Hack Your Habits, Joanna Jast, Self- help", "Unlimited Memory, Kevin Horsley, Self-help", "First 100 Words, Roger Priddy, Children" ; int years]-2018, 2006, 2013, 2014, 1916, 1938, 1997, 2016, 2016, 2011 ; int counts[] 10, 13, 5, 28, 4, 3, 2, 4, 1, 2 J; These three arrays are connected to each other with their indexes. For example, your library may have 10 available The Outsider, Stephen King, Novel books which were published in 2018. Similarly, your library may have 1 available Unlimited Memory, Kevin Horsley, Self-help book which was published in 2016 The system asks to select an operation until the user selects 7 (Exit) 1 View All: User selects 1 The application displays all the books in the library with their names and publication year A simple screen shot is shown in Figure-1 2 View Available: User selects 2 The application displays the available books with their names, publication year and counts A book is available if the counts array tells you have at least one book in the stock. A simple screen shot is shown in Figure-2. View Authors: User selects 3 The application displays only the authors of the books . You must iterate on the books array and print each author only once. Hint: you can use extra arrays if needed A simple screen shot is shown in Figure-3. Do not directly print "Stephen Kinq Adam Fawer Walter Savitch ALbert Einstein "!(0 points 4 View By Year and Type: User selects 4 The application gets an integer input as publication vear and a string value as book type, and then displays a list of books whose publication year and book type fits A simple screen shot is shown in Figure-4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!