You are the owner of a book store. You have the following information available in your stock {information is stored in the form of parallel...
This question has been answered
Question

IN JAVA (Below is the data from the text file for the books)

Starting out with Java ,1212, 112.32

Java Programming ,1211, 73.25

Software Structures ,1333, 54.0

Design and Analysis of Algorithms ,1456, 67.32

Computer Graphics ,1567, 135.0

Artificial Intelligence: A Modern Approach ,1642, 173.22

Probability and Statistics ,1699, 120.0

Cognitive Science ,1755, 42.25

Modern Information Retrieval ,1800, 32.11

Speech and Language Processing ,1999, 123.75



Screenshot (72).png

Image transcriptions

In this assignment you will create a program for a book store. You are the owner of a book store. You have the following information available in your stock {information is stored in the form of parallel arrays): For this program, you will be given a text file which contains the data of all the books in the bookstore with their price and ID. Your first task will be getting to read the text file and storing the information in form of parallel arrays or ArrayLists. Once you have the arrays, make a display method that displays the following menu: 1} Purchase Menu 2} Add a book to Inventory 3} Remove a Book from Inventory 4} lQuit Enter your choice:_ If Option 1 is selected: For this option, you will display all the Book ID, Book Title and Book Price information to the user in a tabular format. Your program should then ask the user for the Book ID and the number of books the user wishes to purchase. Based on the Book ID provided by the user, - If the Book ID is not found, display a message saying the book does not exists. The book ID needs to be searched based on IinearSearchfl or binarySearchl] {if you have both, then you need to show another menu to let the user choose between the two types of searches}. I. If the Book ID is found, then display the Book ID, Book Title, Number of books bought and total cost of this purchase and prompt the user to confirm the purchase. The program must then go back to the main menu until the user decides to quit. (If you implement the Binary Search, then you will get an additional 1t] points granted it works correctly] If Option 2 is selected: For this option, you will have to add a new book to the inventory. The user is asked to enter a Book ID, Book Title and Book Price. Once the user enters all three, add the information to the arrays or array list and then also update the text file given to you. By doing this, your new books will remain even after you close the program. NOTE: There should not be duplicate Book IDs. If a user enters a Book ID which already exists, then the program must prompt the user to enter a different ID until the user enters a valid ID. If Option 3 is selected: For this option, you will have to remove an existing book from the inventory. You will ask the user to enter a Book ID. If the Book ID is valid, then remove the contents of the book from the array or array list and update the text file. This way, you will not have to remove books every time you run the program.

Answered by Expert Tutors

sum dolor sipulvinar tor

iscing elit. Namur laorcongue velceur laoreeitur lau



rem ipsum



a. Fusce dui l

ultrices ac magna. Fusce d

ce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem im risus ante, dapibus a molestielconloneclsus ante,ur laoreet. Namrisus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lecs a molestisumiametiur licetm ipsum doloamm ipsum dolor sit ametentesque dapibus efficitur laoreet.facilisis. Pellentesque dapibus effisuentesque dapibusfctum vitae odio. Donec aliquet. Lorem ipsusung elit. Nam lacinia pulvinar tortor nec facilisis. Pellentsuinia pulvinar tortor nec facilisis. Pellentesque dapiicitur laoonec aliquet. Lorem ipsum dolor sit amet,suentesque dapibusfmolestie consequat, uliaec aliquet. Lorem ipsum doloriaec aliquet. Lorem ipsum dolor sitm ipsDitur, dictum vitae odio. Donec aliquetFusce dui lectus, conlestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, conseuiscing elit. Namfiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Namisciixg, dictum vitaeoamipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisisisciixg, dictum vitaetamitur laoreet. Nam risus ante, dapibus a molestieac,ipsum det, consectetur actum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar touinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus anac,dictum viongue vepulvinar tortor nec facilisis. Pellentesqueonecfacilisis. Pellentesque dapibus efficitur laoreet. Nam risuac,dictum vitesque dapibus efficitur laoreet. Nam ripsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortorisciixg, dictum vitaeoamitur laoreet. Nam risus ante, dapibus a molestieac,dictum vior nerem ipsum dolor sit amet, consectetur adipiscing elit.0or nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, d


m ipsum


nec facilisis. PellFusce

at, ultrices acsus ante, dapibuDonectesque daplconlisciiac,isque dapibus e, dictuac, dictum vitae odio. Donec al, dictulialestie consequat, ult, dictulitur lacinia pulvinar tortor nsumiac,fficitur laoreet.tm ipsumipsumitur laoreeim ipsum dolor sit ametceDonec aliquet. Lorem ipsum dolor sit amet,ce, ultrices ac magna. Fusce dui lectuscerem ipsum dolor sit amet, consectetur adipiscingipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibuss a molacinia pulvinar tortor nec facilisis. Pes a molestisumiongueim ipsum dolicim ipsum dolor sit ametor neor nec facilisis. Pellentesque dapib, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pelleipsumfacilisis. Pellentesque dapibus efficitur laoreets a molestisumiur lifacilisis.xipsumitur laoreeim ipsum dolor sit ametcerem ipsum dolor sit amet, consectetur adipiscingFusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet.s a molDonec aliquet. Lorem ipsum dolor sits a molestisumi,i, dictumicim ipsum dolor sit ametor nem risus ante, dapibus a molestieipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapiipsumiscing elit. Nam lacinia pulvinar tortor necs a molestisumiur li, consecxtfficituim ipsum dolor sit ametceconsectetur adipiscing elit. Nam lacinia piscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus es a molo. Donec aliquet. Lorem ipsum dolor sits a molestisuma molecongue velicim ipsum dolor sit ametor nes ante, dapibus a molestie consequaentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequipsumac, dictum vitae odio. Donec aliquet. Lorem ipsums a molestisumiur liec aliquet.lestie consequat,im ipsum dolor sit ametceo. Donec aliquet. Lorem ipsum dolor sit


onec aliquet.


e vel laoreet ac, dictum

icitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Namm risus ante, dapibus a molestielconloneclm ipsumtrices ac magna. Fusce dui lectus, congue vel laoreetsumisus antceentesque dapibus efficitur laoreesufacilisis. Pellentesque dapamet, conseitur laoreet.sumamet, consecteturur laoretm risus ante, dams a molestie consequat, ultrices ac magna.amettesque dapibus efficitur laoreet. Namameticitur laoreet. Nam risus ante, dapibus asu, consectetur adipiscing elit. Nam lacfdictum vitae odio. Donec aliquet. Loresulestie consequat, ultrices ac magna. Fusce dui lectus, consupulvinar tortor nec facilisis. Pellentesque dapibus efficitur lacerisus ante, dapibus a molestie consequaac,dictum via. Fusce dui lectus, congue vel laoreet ac, dictumdictum vitae odio. Donec aliquet. Loremac,dictum vice dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consedictum vitae odio. Donec aliquet. Loremac,dictum via. Fusce dui lectus, congue vel laoreet ac, dictumctum vitae odio. Donec aliquet. Lm ipsipiscing elit. Nam lacinia pametec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibusFutrices ac magna. Fusce dui lectus, congue vel laoreesuusce dui lectus,0ce dui lectus, congue vel laorfa. Fusce dui lectus, congue vel llnec facilisis. Pellentesque dapibus efficitur laoreettriFusce dui lectus, congue vel laoreet ac, dictum vitac,dictum visuec facilisis. Pellenteinia pFusce dui lectus,inia pm risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue veac,dictum via. Fusce dui lectus, congue vel laoreet ac, dictumet, consectetur adipiscingpulv, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. NFuscetrices ac magna. Fusce dui lectus,for nec facilisis. Pellentesque dapibus efficuec aliquametdictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dua molestameta. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacpulva molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur ador nelestie consequat,acinia pulvinaritur laoreet.sumiur liec aliquetsum dolor sit amamicitur laoreet. Nam risus ante, dapibus aametipsum dolor sit amet, consectetur adipametor nec facilisis. Pellentesque dapsuec facicitur laos ante, dapibus a molesfipiscing elit. Nam lacinia pulvinar torsum ipsum dolor sit amet, consectetur adipiscing elit. Nsuat, ultrices ac magna. Fusce dui lectus, congue velicDonec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam laciniaec fFusce dui lectus,Fupulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictupulv, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. NFuscetrices ac magna. Fusce dui lectus,for nec facilisis. Pellentesque dapibus efficusum dolameticitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio.pulvacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dentesque dapibuitur laoreet.sumiur lionec aliquceentesque dapibus efficitur laoreet. Namsuentesque dapibusfsum dolor sit amet, consectetur adipiscingllentonec aliquet. Lorem ipiaitur laoreet. Nam risus ante,iaamet, consectetur adipiscing eliaDonec al0itur laoreet. Nam risus ante,ac,ipsum det, consectetur adipiscing elit. Nam lacinia pulvinarentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestieicDiallen0iscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellenuce dui lectus, conguetenec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante,iturentesque dapibus efficitur laoreet. Nam risus ante,ac,ipsum dac, dictum vitae odio. Donec aliquet. Loreusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetitur lor nec facilisis.tes a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreac,dictum vipulvinar tortor nec facile vel laoreet ac, dictum vitae odio. Donec aliquetac,dictum vinecpulvinar tote, consectetur adionec aliqupulvinar toteongue vel laoreet ac,e vel laoreet as a molestie consequat, ultrices ac magna. Fusce dui lectuac,ipsum dFusce dui lectus, congue velusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consecuentesque dap0nec facilisis. Pellentesque dapibus efficitur laoreeng elsque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue veuentesque dapibus efficitur laoreet. Nam risus ante, dac,dictum viec facilisis. Pellenteonec aliquet. Lorem ipsum dolor sitdictum viitur laoreet.sumiur liaciniacenecng elit. Nam lacinia pulvinar tortDonec aliquet. Lorem ipsum dolor sit asuentesque dapibusfinia pulvinar tortor nec facilac,ipsum dfficitur laoreet.molestie consequat, uliaa. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donellentonec aliquet. Lorem ipm ipsonec aliquet. Lorem ipsum dolor sit amet,icDiallen0a molestie consequat, ultrices ac magna. Fusce dui lectus, congue veluconsectetur adipiscitelestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet acac,ipsum dsus ante, dapibus a molestie consipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestieng eltrices ac magna. Fusce dui lectus, congue veonecs a molestie consequat, ultrices ac magna. Fusce dui lectus, citurtrices ac magna. Fusce dui lectus, congue vel laoreng elllentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congac,ipsum dlestie comolestie consequat, ulitur lur laoreet. Nam risus ante, dapibus a molestie consequat,ac,ipsum dng elit. Nama molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dicsutrices ac magna. Fusce dui lectus, congue vel laoreet actriiscing elit. Nam lacinia pulvinar tortor nec facilisis. Peng elit. Namitur laoreet.suma molesti, ultricesttusce duamm ipsum dolor sit ametng elit. Nam lacinia pulvinar tortdictum vitae odio. Doicicitur laoreet. Nam risus ante, dapibus a molestie couiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus erem iitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue veor nelitura molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreeor nelllentiscing elit. Nam lacinia pctum vitae odio. Dons a molestisumiur liet, consecteceia pulvinar tortor nec facilisiac,dictum viet, consectetur ague vel laoreet ac, dictum vitaeac,dictum viusce dui lectus, congue velgue vel laoreet ac, dictum vitaeac,dictum viamet, consectetur adipiscing elgue vel laoreet ac, dictum vitaeac,dictum viongue velgue vel laoreet ac, dictum vitaeac,ipsum de vel laoreet ac, dictacinia pulvinar t

Step-by-step explanation

1.PNG


2.PNG


3.PNG


6.PNG5.PNG4.PNG

6 Attachments
1.PNG
PNG
2.PNG
PNG
3.PNG
PNG
4.PNG
PNG
5.PNG
PNG
6.PNG
PNG
The student who asked this found it Helpful
Overall rating 100%

"thank you"

Get unstuck

441,462 students got unstuck by Course
Hero in the last week

step by step solutions

Our Expert Tutors provide step by step solutions to help you excel in your courses