Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 1: A bookstore owner needs to keep track of the books in his store. Each book in his bookstore has a unique number, a

image text in transcribed

Problem 1: A bookstore owner needs to keep track of the books in his store. Each book in his bookstore has a unique number, a title, an author, a subject, a price, and a number of copies in the bookstore. He keeps a list of his books in a file called myBooks.in Build an application to help this bookstore owner, which reads the books from the myBooks.in file each morning, keeps track of each books sold by decreasing the number of copies remaining in the bookstore, and then re-saves the books to a new file The app should display a menu to do the following Display all book information in the bookstore Display all books for a certain author Display all books for a certain subject Display a list of books with number of copies remaining 0 Display all books sorted according to price (from most expensive to least expensive) -Sell a certain book (the book number is given by the user). The number of copies remaining should be decreased after selling the book Give the total amount of money for all the books that were sold Save the new list of books to an output file (the file name is also given by the user). You will need three classes: Book, BookStore, (which has a Array list of Books), and TestingBookStore (with the main method). Building the GUI for this application is optional. Text interface is acceptable Sample input file 001, Java Java Java, Ahmed Khan, IT, 40.50, 10 002, Nature in the desert, Ali Hassan, Biology, 55.75,4 003, The Internet for Dummies, Mohammed Ali, IT, 33.50, 6 004, Under the Sea, Mohammed Ali, Biology, 70.00, 0 005, Outer Space Physics, Ali Hassan, Physics, 100.99,0 006, Gray's Anatomy, Alex Gray, Medicine, 300.00, 10

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2014 Administration

Authors: Adam Jorgensen, Bradley Ball

1st Edition

111885926X, 9781118859261

More Books

Students also viewed these Databases questions