Question

In: Computer Science

Focuses on the design, development, implementation, and testing of a Python program using Jupyter Notebook only...

Focuses on the design, development, implementation, and testing of a Python program using Jupyter Notebook only to solve the problem described below. You will write a program that simulates an Automatic Teller Machine (ATM). For this program, your code can have of user-defined functions only. However, the program must not call on any external functions or modules to handle any of the input, computational, and output requirements. Note, the program can be completed without the use of user-defined functions.
Requirements:
There is one customer with the following profile:
• Name: John Smith
• This customer has two account types—Checking and Savings Accounts with balances starting with $1000 each.
• When the program starts, customer name and accounts starting amounts must be processed and stored before the customer interacting with the system.
Customer Choices (Sub-menu choices based on the type of transactions)
1) View Balance
2) Deposit
3) Transfer
4) Withdraw
5) Exit
Account Processing Restrictions
a) The balances of each account type must be updated base on selected customer choices.
b) The customer can only withdraw from the Checking Account but can only withdraw if there is enough money in the account to meet the withdrawal request. When making a Withdraw, the customer must be presented with an appropriate message to show the withdrawing account's balance.
c) When the request to View Balance, the appropriate output must display the balance for each account type and the accounts' total balance.
d) A customer can only transfer money from the checking to the savings account. However, there is a transfer fee charge. (.05% of the total amount transfer). The fee must be displayed as part of the output when the customer performs this operation. Moreover, the customer can only transfer if there is enough money for the transfer and its respective transfer fee charge. The customer must be presented with an appropriate message showing the transferring account balance before completing such a transaction.
e) The system will not accept a deposit > $600
f) The customer cannot deposit, withdraw, or transfer partial currency (ex: $200 is valid. $200.50 is invalid)

Additional Requirements:
1) Appropriate introduction statements (s) (output) to the customer for the purpose and options when the program starts
2) Appropriate statement (s) to the customer to capture all input requirements as per program requirements
3) Properly tested to valid customer/admin input. Also, appropriate and detail messages for invalid input
4) Appropriate formatted output
5) The program runs in a continuous loop until the admin chooses to quit. For this program, we will assume that customers will not use the quit option. It will be used by your instructor to test your program thoroughly. Hence, include the quit option, but do not make it evident as one of the listed customer choices.
6) Meets correct code format and structure requirements

Solutions

Expert Solution

Program Code (Not using any User-defind function)

print("Wellcome to Autometic Teller Machine ")
name= input("Enter Name :")
checkaccount =int( 1000)
savingsaccount=int( 1000)
print("NAME : ",name)
print("Savings Account Balance is :$ ",savingsaccount)
print("Checking Account Balance is :$ ",checkaccount)
while True :
    print("Choice Manu :")
    choice=int(input("1)View balance 2)Deposit Balance 3)Transfar 4) Withdraw 5) Exit :"))
    if(choice==1):
        print("Savings Account Balance is :$ ",savingsaccount)
        print("Checking Account Balance is :$ ",checkaccount)
        print("Total Balance is : ",savingsaccount + checkaccount)
    elif (choice==2):
        deposit=int(input("Enter Amount for Deposit :$"))
        if(deposit>600):
            print("System didnot accept the deposit,Deposit must be lessthan $600")
        else:
             savingsaccount= savingsaccount+ deposit
             print("Amount Deposited Successfully !!")
    elif (choice==3):
        Transfar=int(input("Enter the Amount is transfer :$ "))
        if(Transfar>savingsaccount):
            print("Insufficient Balance for transfer")
        else:
            servicecharge= Transfar * (.05/100)
            transferamount = Transfar + servicecharge
            savingsaccount=savingsaccount - transferamount
            checkaccount= checkaccount + transferamount - servicecharge
            print("Service charge is ",servicecharge)
            print("Amount is Transferd !!")
    elif (choice==4):
        withdraw=int(input("Enter ammount to withdraw : "))
        print("Withdrawing Amount is :",withdraw)
        if(withdraw>savingsaccount):
            print("Enterd Amount would not sufficient for withdraw")
        else :
            savingsaccount=savingsaccount - withdraw
            print("Withdraw amount Successfully !!")
           
    elif (choice==5):
        print("System Exit")
        break
    else:
        print("Wrong choice enter please enter the correct choice !!")

Output Case Run

Wellcome to Autometic Teller Machine
Enter Name :John Smith
NAME : John Smith
Savings Account Balance is :$ 1000
Checking Account Balance is :$ 1000
Choice Manu :
1)View balance 2)Deposit Balance 3)Transfar 4) Withdraw 5) Exit :2
Enter Amount for Deposit :$800
System didnot accept the deposit,Deposit must be lessthan $600   
Choice Manu :
1)View balance 2)Deposit Balance 3)Transfar 4) Withdraw 5) Exit :2
Enter Amount for Deposit :$500
Amount Deposited Successfully !!
Choice Manu :
1)View balance 2)Deposit Balance 3)Transfar 4) Withdraw 5) Exit :3
Enter the Amount is transfer :$ 700
Service charge is 0.35000000000000003
Amount is Transferd !!
Choice Manu :
1)View balance 2)Deposit Balance 3)Transfar 4) Withdraw 5) Exit :1
Savings Account Balance is :$ 799.65
Checking Account Balance is :$ 1700.0
Total Balance is : 2499.65
Choice Manu :
1)View balance 2)Deposit Balance 3)Transfar 4) Withdraw 5) Exit :4
Enter ammount to withdraw : 900
Withdrawing Amount is : 900
Enterd Amount would not sufficient for withdraw
Choice Manu :
1)View balance 2)Deposit Balance 3)Transfar 4) Withdraw 5) Exit :4
Enter ammount to withdraw : 600
Withdrawing Amount is : 600
Withdraw amount Successfully !!
Choice Manu :
1)View balance 2)Deposit Balance 3)Transfar 4) Withdraw 5) Exit :1
Savings Account Balance is :$ 199.64999999999998
Checking Account Balance is :$ 1700.0
Total Balance is : 1899.65
Choice Manu :
1)View balance 2)Deposit Balance 3)Transfar 4) Withdraw 5) Exit :5
System Exit


Related Solutions

Create a new Python 3 Jupyter Notebook. At the top, be sure to name your notebook...
Create a new Python 3 Jupyter Notebook. At the top, be sure to name your notebook as "*assignment 2.08 - Your Name Here.ipynb*" (obviously, replace the "Your Name Here" part with your actual name). Create a single python cell to program the following specifications. Use what you've learned on this page to: 1. Find the index of "lmno" in the English alphabet using an appropriate instruction and store it in a variable. (hint: you'll need to define a string that...
Write a program in Python jupyter notebook for following: Part1: Course grade calculation: Course grades for...
Write a program in Python jupyter notebook for following: Part1: Course grade calculation: Course grades for CIS 1100 are calculated based on two assignments, a midterm exam, and a final exam. Here are the weights of these. Assignments 25% Midterm exam 35% Final exam 40% Ask the user for the scores they received for the two assignments, midterm exam, and the final exam. Then calculate and display their total weighted score they received for the course. Based on the weighted...
Python: Using Jupyter Notebook 1. Write code to generate Fibonacci series. Fibonacci numbers – 1, 1,...
Python: Using Jupyter Notebook 1. Write code to generate Fibonacci series. Fibonacci numbers – 1, 1, 2, 3, 5, 8, … 2. Check if a number is an Armstrong number A positive integer is called an Armstrong number of order n if abcd... = a^n + b^n + c^n + d^n + ... In case of an Armstrong number of 3 digits, the sum of cubes of each digits is equal to the number itself. For example: 153 = 1*1*1...
Write a program IN PYTHON of the JUPYTER NOOTBOOK Write a Python program that gets a...
Write a program IN PYTHON of the JUPYTER NOOTBOOK Write a Python program that gets a numeric grade (on a scale of 0-100) from the user and convert it to a letter grade based on the following table. A: 90% - 100% B 80% - 89% C 70% - 79% D 60% - 69% F <60% The program should be written so that if the user entered either a non-numeric input or a numeric input out of the 0-100 range,...
Python HW with Jupyter Notebook Declare a variable named DATA as a dictionary object. Assign the...
Python HW with Jupyter Notebook Declare a variable named DATA as a dictionary object. Assign the set of key/value pairs shown below. Create a function named iter_dict_funky_sum() that takes one dictionary argument.    Declare a running total integer variable. Extract the key/value pairs from DATA simultaneously in a loop. Do this with just one for loop and no additional forms of looping. Assign and append the product of the value minus the key to the running total variable. Return the funky...
Machine Learning do using python on jupyter notebook 1. Linear Regression Dataset used: Diabetes from sklearn...
Machine Learning do using python on jupyter notebook 1. Linear Regression Dataset used: Diabetes from sklearn You are asked to solve a regression problem in the Diabetes dataset. Please review the Diabetes dataset used before creating a program to decide which attributes will be used in the regression process. please use the cross-validation step to produce the best evaluation of the model. All you have to do is • Perform linear regression using the OLS (Ordinary Least Square) method (sklearn.linear_model.LinearRegression)...
Write a program In python of Jupiter notebook (using loops) that prompts the user to enter...
Write a program In python of Jupiter notebook (using loops) that prompts the user to enter his/her favorite English saying, then counts the number of vowels in that (note that the user may type the saying using any combination of upper or lower case letters). Example: Enter your favorite English saying: Actions speak LOUDER than words. Number of wovels: 10
The purpose of this is to plot data using Matplotlib. Description complete the Jupyter notebook named...
The purpose of this is to plot data using Matplotlib. Description complete the Jupyter notebook named main.ipynb that reads in the file diamonds.csv into a Pandas DataFrame. Information about the file can be found here: ------- diamonds R Documentation Prices of over 50,000 round cut diamonds Description A dataset containing the prices and other attributes of almost 54,000 diamonds. The variables are as follows: Usage diamonds Format A data frame with 53940 rows and 10 variables: price price in US...
Python HW Open a new Jupyter notebook Create a new function named fibonacci() that takes one...
Python HW Open a new Jupyter notebook Create a new function named fibonacci() that takes one required parameter: maxint, an integer that will serve as the upper bound of the loop Following the example on the Python tutorial: https://docs.python.org/3/tutorial/introduction.html#first-steps-towards-programming Our implementation will have a few changes: While you will use a while loop to make a Fibonacci sequence, the upper bound of the sequence will be your maxint parameter. Store the results into a list and append each new generated...
Please give me an example of how we import stock data in jupyter notebook(Python) and analyze...
Please give me an example of how we import stock data in jupyter notebook(Python) and analyze each step.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT