Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Aims Develop a Python program to solve a problem Follow good program development and coding style practices Develop a Graphical User Interface Instructions Write a

Aims
Develop a Python program to solve a problem
Follow good program development and coding style practices
Develop a Graphical User Interface
Instructions
Write a Python program to solve the following problem. Your solution should include a readme.md file (which includes details of how to run your assignment) and your Python program in a file named payment.py, and be submitted as a single .tgz file named pt3.tgz. You should ensure your solution works using the Python 3 interpreter on turing.
Problem
Customers and the store manager are delighted with the new automated self-check-in system. However, there have been complaints about the payment process, which still requires customers to visit the service desk and queue up for payment while a human clerk handles the transaction.
To address this issue, the store manager has devised a plan to enhance the self-check-in counter by introducing a graphical user interface (GUI) for credit card payments. Your task is to develop this GUI, ensuring it meets the following requirements:
The application's GUI should start by presenting the payment interface, which includes fields for entering the amount due (a positive numeric value) and the credit card number (16 digits). Users should find it intuitive to input these values correctly on the designed interface .
The payment interface should feature a "Pay" button to initiate the payment process. When users press this button, the application must first validate the entered values for the amount due and the credit card number. If both values are accurate, the application should record the payment amount and the credit card number within a list of dictionaries data structure. Subsequently, a confirmation message box should appear, thanking the customer for their payment and ensuring that the main interface is reset to its default state (e.g., clearing any previous inputs from text boxes / label elements). In the event of incorrect values, the application should display an error message in a message box, specifying the issue (e.g., "Error: the credit card number must consist of 16 digits without spaces or other characters").
The payment interface should also include a button for "Operator Mode." When this button is pressed, a new window should be created and displayed. This window should contain a concealed input field for entering a password, indicated by asterisks (*) in place of the actual characters typed. The input field should be clearly labeled, instructing the user to enter the correct password. The new window should also feature a "Submit" button for submitting the entered password. If the password is correct ("Codetown"), the application should close the password window and open a new window listing all transactions, displaying the amount paid and the associated credit card numbers, along with the total payments collected thus far (saving transactions to a persistent file is not required). In case of an incorrect password, the application should display an error message in a message box, prompting the user to re-enter the correct password.
The application's GUI should be implemented using the Python package Tkinter. Using alternative packages for GUI elements may result in substantial deductions.

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

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions

Question

what is a peer Group? Importance?

Answered: 1 week ago