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, 23.06.2019 07:50
Most shops require the technician to enter a starting and ending time on the repair order to track the actual time the vehicle was in the shop and closed out by the office. this time is referred to as _ time ? a. comeback b. ro c. cycle d. lead
Answers: 1
question
Computers and Technology, 25.06.2019 05:00
Arun is 5 years older than anu. five years ago, the ratio of their ages was 3: 2 . find their present age
Answers: 2
question
Computers and Technology, 25.06.2019 06:10
In a game with three frames, where will the objects on layer 1 appear? a. next to the play area b. in the middle of the game behind everything else d. in front of everything else select the best answer from the choices provided
Answers: 1
question
Computers and Technology, 25.06.2019 08:10
Is a philosophy and a software and system development methodology that focuses on the development, use, and reuse of small, self-contained blocks of codes to meet the software needs of an organization.joint application designextreme programmingrapid application developmentservice-oriented architecture
Answers: 1
You know the right answer?
I need the following code commented and addressed: Specifically, your script should address the foll...
Questions
question
Mathematics, 30.10.2019 09:31
question
Mathematics, 30.10.2019 09:31
Questions on the website: 13722359