Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

There is a new book franchise in town name as TechnoBooks, they wanted to have automated system for their books which need to be secure,

There is a new book franchise in town name as TechnoBooks, they wanted to have automated system for their books which need to be secure, and simple and to the point thus no complexities required .Their reuirments can be fulfilled by the following the given GUI based problem. Create a class named book with the following attributes.book title string,Bookid string,book category string,book price int,book stock int. Now create login page which will have 1 text field and 1 password field textfield will be used to read password and password field will be used to read password from user there will be login button which will be connected to actionListener, whose responsibility is to confirm whether the given user name of password present in field or not.image text in transcribed

15 mars wemo 2 same can be sure there could be multiple mame and words in the file and single password is cited to single if smame and password are authenticated, your system should display message "credentials i smame and password are incorrect your system should display message use of password wuthenticated using Option Para 15 martes) wrong sing Option Pane Aller successful authentication, new frame will be opened this new frame is your mainframe, this class will contain an array of type Book with size 100 ID title stock and price will be read using textFields while category will be selected using mboBox there will be 4 buttons as follows [10 marks) Add: all fields must be filled, if any field is left empty this button will pop 3 JOption Pane to display "All fields must be filled utton should create a new Book using these values and add it to the urray if all fields are filled then this of Books and clear all the fields if new book needed to be added has the same bookld as any of the previously added books then this button will pop a JOptionPune to display "ID already existu" and will not enter the book Search: 15 marks) this bitten only works on the bookld, if ID is found it will pop a JOptin Pune to display all the data of that book, if not found it will pop JOptionPane to display "Book not Found" ir bookld field is empty it will pop JOptionPane to display "BookID required" Sale: 15. marks his button needs 2 fields to be filled, bookld and bookStock Many of it is not filled, it will pop JOption Pane to display "ID and Stock required" they are filled then it will search the book by ID if that is not found it will pop 1OptionPane to display BookID does not exist ID is found it will check if the amount to sell is less or equal then the amount present in stock, ir mount to sell is greater then it will pop JOptionPane to display "insufficient stock" amount is available to sell then it will deduct that amount from stock and pop JOptionPane to display ale successful and then it will disply the total revenue generated by sale which will be calculated using enue amount Sold book Price 15 marks) will exit the user to login screen

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions