[2+3+5+5+5+5+10+5+5+5=50 n Question 1: There is a new bookstore franchise in town named as TechnoBooks, they wanted to system for their book which needs to be secure, simple and to the point thus no complexitiu Their requirement can be fulfilled by following the below given GUI based problem Create a class named Book with following attributes [ book Title String . bookID int . bookCategory String . book Price int . bookStock int Now create login page which will have I textField and I password Field [31 textField will be used to read password and password Field will be used to read password from user (5 m there will be a login button which will be connected to actionListener, whose responsibility i whether the given username and password are present in text File or not [5 m Add: thiere could be multiple username and passwords in the file and single password is associated to single username, no 2 usernames can be same [5 marks) if username and password are authenticated, your system should display a message "credentials authenticated using JOptionPane if username and password are incorrect, your system should display a message "useme or password wrong" using JOption Pane After successful withentication, new frame will be opened 15 marks) this new frame is your mainframe, this class will contain an array of type Book with sinn 100 ID, title, stock and price will be read using textFields while category will be selected using mboBox there will be 4 buttons as follow [10 marks) all fields must be filled, if any field is left empty this button will pop a JOptionPane to display "All fields must be filled it all fields are filled then this button should create a new Book using these values and add it to the array of Books and clear all the fields of new book nended to be added has the same bookld as any of the previously added books then this button will pop a JOptionPane to display "ID already exists" and will not enter the book 15 marks) this button only works on the bookld, if ID is found it will pop a JOptinPatie to display all the data of that book if not found it will pop JOptionPane to display "Book not Found" ir bookid field is empty it will pop JOptionPane to display "BookID required [S marks) this button needs 2 fields to be filled, bookld and bookStock if any of it is not filled, it will pop JOptionPane to display "ID and Stock required" if they are filled then it will search the book by ID if that is not found it will pop JOptionPure to display Search: Sale: "BookID does not exist if ID is found it will check if the amount to sell is less or equal then the amount present in stock, it amount to sell is greater then it will pop JOptionPane to display "insufficient stock" if amount is available to sell then it will deduct that amount from stock and pop JOptionPane to display "Sale successful and then it will disply the total revenue generated by sale which will be calculated using revenue amount Sold book Price [5 tarks) Exit: this will exit the user to login screen