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 21:30
Write a function named printfloatrepresentation(float number) that will print the floating point representation of a number using the format given below. (sign bit) exponent in binary (assumed bit).significandfor example if the number passed an argument is 71 yourprogram should print (0) 10000101 (1).00011100000000000000000similarly if the number passed to the function as argument is -71 the program should print (1) 10000101 (1).00011100000000000000000
Answers: 3
question
Computers and Technology, 23.06.2019 20:40
On nba 2k 19, every time i try to join a my park game, it leads ro a website telling my dad that he needs ps plus. i already have ps plus though. how do i fix this?
Answers: 2
question
Computers and Technology, 23.06.2019 22:30
How many points do i need before i can send a chat
Answers: 1
question
Computers and Technology, 24.06.2019 02:20
Peter is thinking of a number which isless than 50. the number has 9 factors.when he adds 4 to the number, itbecomes a multiple of 5. what is thenumber he is thinking of ?
Answers: 1
You know the right answer?
I need the following code commented and addressed: Specifically, your script should address the foll...
Questions
question
Social Studies, 16.12.2019 11:31
question
Business, 16.12.2019 12:31
Questions on the website: 13722367