Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION: What do I need to do in order to get the expected output? For the code below, I am getting this result: Check 1

QUESTION: What do I need to do in order to get the expected output?

For the code below, I am getting this result:

Check 1 failed

Output:

What would you like to do? Your current balance : 500.250000

Expected:

What would you like to do? Your current balance: 500.25

image text in transcribed

i Safari File Edit View History Bookmarks Window Help GIF 4) 78% L- Sun 2:16 PM Q?? codio.com How to Give ...ing Hand-Job Character De...rs Workshop Shap our fan.... Bad Dragon Junior Plus Si thing I rue21 Fiction Writi.ters Workshap Moroccan Caf...ibaba Group Abaya in Dub...ibaba Graup Module Five- IT-140-T4506 Introduction to Scripting Pills & Automobiles (Official Video) YouTuboe Codio it-140-praject 3 draft-atm extra zeros on python balance Google Search Introdu..t Codio Project File Edit Find View Tools Education Help , Run Current? Google ? ?Configure LAPONTE ATM.py Collect Custa.. import sys Collapse account balance account balancefloat (500.25) 4 Collect Customer Input #PPrint the balance function to print the 7 def printbalance: print ("Your current balance : %2f" % account-balance) #the function for deposit 11def deposit): 12 13 14 15 16 17 def withdraw): 18 19 20 21? depositamount -float (input("Enter amount to deposit: ")) balanceaccount_balance +deposit_amount print ("Deposit was $%2f, current balance is $%2f" %(deposit-amount,balance)) account balance . print the account actions and create the action 2b #function for withdraw IP9 withdraw_amount float (input ("Enter amount to withdraw")) if(withdraw_amount> account_balance) print ("$%2f is greater than account balance $%2f " %(withdraw amount , account-balance)) else: balanceaccount balancewithdraw amount print ("$%2f was withdrawn, current balance is pg $%2f" % (withdraw. amount, balance)) 23 24 25 26 userchoice -input("What would you like to do? ") 27 28 if (userchoice'D'): 29 30elif userchoice'W' 31 32elif userchoice'B' # User Input goes here, use if/else conditional statement to call function based on user input outputting account balance outputting. deposit() withdraw() printbalance () sys.exit) 34 else: 35 Input Information The following data will be used as input in the 6% (3:1)

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

More Books

Students also viewed these Databases questions

Question

4. Are there any disadvantages?

Answered: 1 week ago

Question

3. What are the main benefits of using more information technology?

Answered: 1 week ago

Question

start to review and develop your employability skills

Answered: 1 week ago