Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ QT GUI Operation below is the task and an almost complete code can you help me finish the rest Library System You are asked

C++ QT GUI Operation
below is the task and an almost complete code can you help me finish the rest
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Library System You are asked to make a system for a library from which students can buy books using QT's GUl operations, You will mainly have three case scenarios to complete. First student should sign in then can have options to recharge his balance and buy a book. The application should have a similar GU window as the below. Because you did not learn how to control multiple windows in QT. you shall have both the scenario of singing in and buying the books in the same window. However, given the below GU, you will control all the user's test cases in order to make sure that he signs up first, then buy his preferred book if he has enough money in his balance. ComboBox explained in QT https://wwwyoutube.comwatch? Y-stbsDZhAAis\&ab_channel=VoidRealms Points to be covered in your assignment: A. The library system has the following data: (5 Points) t. Students data - Names (String array) - passwords (String array) - lds (String array) - Account balance (money to buy books) (int array) 2. Books data: - Name (String array) - Price (int array) B. Sign in Case Scenario (30 Points) Student sign in using name and password to his account, in order for that to happen, you must cover the following conditions: a. If user enters a name is not in the database, in your case it is an array, you should clarify that the name does not exist. b. If user enters a correct name but wrong password, you should print on the sereen to the user that the name exists but the error is in the password. c. If the user enters both name and password correctly, then you should print his account balance and his ID on the screen as below. C. Balance Recharge Case Scenario. (25 Points) - As we have all options in one window, we have to ensure that user signs in first to recharge his balance. You have to cover the following cases: a. If user charges his balance without logging in first, a descriptive error message should be printed on the screen to explain the error. b. If the user is signed in and recharges his balance, then his balance should be updated on the screen. i) You should accept only positive values. ii) Accept only numbers not strings. iii) After entering the amount to the balance, clear the text area. D. Buying Book Case Scenario ( 40 Points) The user will be given a combo box that shows the available books, when he chooses a bock, the book price should be printed on the sereen. If he decides to buy a book then this should be reflected in his account. You should cover the following conditions: a. User can view the books's names and information without signing in. b. If user decides to buy book without enough money in his account balance, an error message should appear. c. If user decides to buy book without signing in, error message should appear. 5 d. If user is signed in and has enough money, then print a message that he bought the book successfully and show his updated account balance

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

50 Tips And Tricks For MongoDB Developers Get The Most Out Of Your Database

Authors: Kristina Chodorow

1st Edition

1449304613, 978-1449304614

More Books

Students also viewed these Databases questions

Question

c. What were the reasons for their move? Did they come voluntarily?

Answered: 1 week ago

Question

5. How do economic situations affect intergroup relations?

Answered: 1 week ago