Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4. User Following ADT for the user class, later the description of its usage. Id int email String password String first_name. String last_name String age

image text in transcribed

4. User Following ADT for the user class, later the description of its usage. Id int email String password String first_name. String last_name String age int Requirements - The application provides user signUp/login functionality using simple GUI and the suitable data structure: HashMap. - The application provides a dashboard that contains all the books with their information (those have quantity > 0). - The application provides the following operations on the books: insert, get, delete, search. You have to use a data structure that does these operations efficiently, like TreeMap. - The application provides a way to buy a book by the user that is already logged in. - The application provides a way to display the books that a user already bought. - The application provides a way to logout and return to the login page, you should keep all the work saved at least in RAM.

Writing code in java is in gui

library management system is a simple application to he built using the Balanced Binary Search Tree (Tree Map) in Java. The program will provide some basic book management tasks like, insertion, deletion, sorting regarding specific book information, and searching for books matching specific query. Additionally, the program should have a list of people, each of whom may be interested in one or more books, so there's a mapping between the two entities in this simple program: User \& Book. This project offers you the opportunity to gain valuable hands-on experience. You'll try to, efficiently, practice all the basic operations and algorithms we have discussed along the term. Java Classes 1. Tree Map A Red-Black (balanced BST) tree based NavigableMap implementation. The map is sorted according to the natural ordering of its keys, or by a Comparator provided at map creation time, depending on which constructor is used. This will insure log(n) time complexity for most of the operations. You can see this class and how to use it here 2. HashMap This data structure to be used for mapping each user to his list of books. also, each user with its personal data (i.e., its Object). You can see this class and how to use it here 3. Book This class contains all the required information for a book, you can follow this ADT

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

Oracle Database 19c DBA By Examples Installation And Administration

Authors: Ravinder Gupta

1st Edition

B09FC7TQJ6, 979-8469226970

More Books

Students also viewed these Databases questions