subject

I need the following code commented and addressed: Specifically, your script should address the following critical elements:I. In Your Script (Annotated Text File) Refer to the directions in the module in Codio for how to export out and comment your completed script. A. Identify examples of custom functions in your script using comments in your code. B. Identify examples of input (parameters) that are utilized within the function(s) in your script using comments in your code. C. Identify examples of functions that return the correct output in your script using comments in your code. Applying Your Experience Making mistakes when you learn to write code is common. It is part of learning. What is important is developing the skill of learning how to understand your errors and then fix them (debugging). For this part of your final project, you will respond to the following: A. Reflecting on your experience with this activity, explain the importance of knowing how and when to use and modify custom functions, inputs (parameters) within functions, and functions to return the correct output. Support your response with examples from the activity of the types of errors and your method for fixing them. Thanksimport sys# account balanceaccount_balance = float(500.25)#PPrint the balancedef printbalance(): print("Your current balance : %2f" % account_balance)#the function for depositdef deposit(): deposit_amount = float(input("Enter amount to deposit : ")) balance = account_balance + deposit_amount print("Deposit was $%2f, current balance is $%2f" %(deposit_amount, balance))#function for withdrawdef withdraw(): withdraw_amount = float(input("Enter amount to withdraw")) if(withdraw_amount > account_balance): print("$%2f is greater than account balance $%2f\n" %(withdraw_amount, account_balance)) else: balance = account_balance - withdraw_amount print("$%2f was withdrawn, current balance is $%2f" % (withdraw_amount, balance))# User Input goes here, use if/else conditional statement to call function based on user inputuserchoice = input("What would you like to do?\n")if (userchoice == 'D'): deposit()elif userchoice == 'W': withdraw()elif userchoice == 'B': printbalance()else: sys. exit()

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:30
What do character formats do for your document's message? a.set the tone b.provide organization c.provide clarity d.set how texts align with documents
Answers: 2
question
Computers and Technology, 22.06.2019 20:00
What statement best describes operating systems? it’s possible for modern computers to function without operating systems. most operating systems are free or very inexpensive. operating systems are managed by the computer’s microprocessor (cpu). operating systems manage the computer’s random access memory (ram).
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
Which option allows you to view slides on the full computer screen?
Answers: 1
question
Computers and Technology, 24.06.2019 05:30
Cómo pongo un tomo de llamada sin pagar?
Answers: 1
You know the right answer?
I need the following code commented and addressed: Specifically, your script should address the foll...
Questions