Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ QT GUI operations Library System You are asked to make a system for a library from which students can buy books using QT's GUl

c++ QT GUI operations 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. Bonus Points: 1. Remove a purchased book from the comboBox. (5 points) 2. Implement a sign out case. (5 points)

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_2

Step: 3

blur-text-image_3

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

IBM Db2 11 1 Certification Guide Explore Techniques To Master Database Programming And Administration Tasks In IBM Db2

Authors: Mohankumar Saraswatipura ,Robert Collins

1st Edition

1788626915, 978-1788626910

More Books

Students also viewed these Databases questions

Question

Write the difference between sexual and asexual reproduction.

Answered: 1 week ago

Question

What your favourite topic in mathematics?

Answered: 1 week ago

Question

Briefly describe vegetative reproduction in plants.

Answered: 1 week ago

Question

2. How should this be dealt with by the organisation?

Answered: 1 week ago

Question

explain what is meant by the term fair dismissal

Answered: 1 week ago