Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can someone please explain what error is in this code? I dont understand what they are saying I did wrong. The first picture is what

Can someone please explain what error is in this code? I dont understand what they are saying I did wrong. The first picture is what they said I did wrong. The second one is my code.
image text in transcribed
image text in transcribed
image text in transcribed
T 140 Final Project Script Three Draft Rubric ATM Script feedback: Please be sure to add the missing functionality to your functions when you create the final version Custom Functions: You created nice custom functions to perform the processing in your script. Input (Parameters) Function(s): None of your functions too input as parameters. You need to add some parameter passing to at least one of your functions Functions That Return Correct Output: None of your functions returned data on the "return" line. You should have at least one of your functions use a "return" line Script Comments: You included some comment but more would be better. You need more details in the comments to better explain what is the code #1111pon sys #account balance account balance float(500.25) functions go here > #creating a print balance function def printbalance0 print( "Account balance: $%2t" % account, balance) # creating a deposit function def deposit0: #accessing account, balance variable which is outside the global account balance deposit amount-float(inputHow much would you like to deposit today?") account balance+ deposit amount print("nDeposit was $90.2f, current balance is S%.2 % (deposit amount,account balance)) # creating a withdraw function def withdraw: #accessing account, balance variable which is outside the global account balance withdrawal amount-float input(How much would you like to withdraw?") # using if and else to set if a user can withdraw money. Only can withdraw if they have funds if account balance

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

Students also viewed these Databases questions

Question

Is there a clear hierarchy of points in my outline?

Answered: 1 week ago