Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please in python Full Description You are a software engineer who is working for a bank and you have to build a simple software to

please in python
image text in transcribed
image text in transcribed
image text in transcribed
Full Description You are a software engineer who is working for a bank and you have to build a simple software to manage customers and accounts. You will need two text files to serve as the database: one for handling login, and one file to store all the information for accounts. In the login.txt file, you need to have the following fields: Id, username, password, role. The role field will take only two values: O if the person logging in is a bankeror 1 if the person logging in is a customer. In the accounts.txt file, you need to have the following fields: Id Name Surname, Civilid, Address AccountNumber. Birthday Amount Last TransactionDate ApplyForCard, ApplyForLoan. ApplyForCard and ApplyForLoan fields will take only one of the following three values: O-No Application, 1 - Applied, 2 - Accepted B-Rejected When the program launches, the user should be prompted to login by providing the username and password. Based on the username and password the user's role is determined (either banker or customer) . if the logged user is a banker, show in a window the following options: Create new account See all customers See card Applications See loan Applications Search Logout When the banker selects "Create new account", he/she should be able to create a new customer account, by filling all the data of the customer and save the new customer in the accounts.txt file. When the banker selects "See all customers he/she should be able to see a list of all customers When the banker selects "See card Applications he/she should be able to see a list of all customers who applied for a card. The banker should be able to accept or reject each application. When the banker selects "See loan Applications, he/she should be able to see a list of all customers who applied for a loan. The banker should be able to accept or reject each application When the banker selects Search he/she should be able to search for a customer by entering the Civilid, or (Name and Surname), and see all the information for the selected customer. When the banker selects "Logout the program terminates. . If the logged user is a customer, show in a window the following options: See personal details. Withdraw Deposit Apply for Card Apply for Loan Logout If the customer selects "See personal details he/she, should be able to see and update all the personal information. When the customer selects "withdraw" he/she should be able to withdraw money from his/her account, if the amount to be withdrawn is smaller than the current balance in this case, update the amount and the last transaction date in the database (file) otherwise print a message: "Not enough funds When the customer selects deposit he/she should be able to deposit money in his/her account. The program should update the amount and the last transaction date in the database (file) and print a success message. When the user selects Apply for card the field in the text file should be ser to 1 and a message should be shown to the customer The banker will review your application of the user has already applied for a card, the show a message The banker is reviewing your application of the application for a card has been accepted by the banker show a message "Your application has been accepted. If the application for a card has been rejected by the banker, show a message "Your application has been rejected" When the user selects "Apply for loan the field in the text file should be set to 1 and a message should be shown to the customer The banker will review your application. If the user has already applied for a loan the show a message "The banker is reviewing your loan application. If the application for a loan has been accepted by the banker show a message Your loan application has been accepted". If the application for a loan has been rejected by the banker show a message your loan application has been rejected When the customer selects Logout the program terminates. You must make sure to use Exception Handling, Objects, and optionally GUI

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

XML Data Management Native XML And XML Enabled Database Systems

Authors: Akmal Chaudhri, Awais Rashid, Roberto Zicari, John Fuller

1st Edition

0201844524, 978-0201844528

More Books

Students also viewed these Databases questions

Question

What is group replacement? Explain with an example. (2-3 lines)

Answered: 1 week ago