Question
Note: Please Use Python Write a client-server program to work like an ATM machine using UDP protocol. The client program should have the ability to
Note: Please Use Python
Write a client-server program to work like an ATM machine using UDP protocol. The client program should have the ability to choose operations, such as deposit, withdraw and balance check of the user if he is a valid user. And server program maintains a file with user details for authentication. For each row we would have user details including name, pin, and available balance. When a client requests to deposit or withdraw money, then the server should prompt them for their id and pin and after their validation, the server should allow them to deposit or withdraw money (On deposit add the money to the available balance and on withdraw deduct the available balance by the amount given and save this information to the file, and also provide some sentence to client program that the operation is successfully done). Test the operations from client program like deposit + balance check, withdraw + balance check, invalid user trying to withdraw/deposit/checking balance (show an error message that he is not a user) and provide screenshots of their output. NOTE: Maintain a txt file with predefined user details with a space/tab separating their details or you can add one more operation that will create a new account with the details as above also.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started