Reference no: EM132238903
Assignment - ATM Script
A function is a named series of statements. Invoking a function's name, known as a function call, causes the function's statements to execute. Python comes with a number of built-in functions, such as input(), int(), type(), and others. A programmer can also create a new function using the def keyword, the new function's name, and a block of statements. A block is a series of indented statements following the function definition.
To call a function, use the function's name followed by braces: function_name(). This causes execution to jump to the function's statements. The function's return causes execution to jump back to where the original call occurred, to the next statement after the call. A good practice is to follow the convention of naming functions with lowercase letters and underscores, such as print names or print_face.
Your task for this project is to create a simple ATM script. The script emphasizes the importance of using functions in the creation of more organized and reusable code.
You will be working on this project in the Project: ATM Script module in Codio on this project. Following the directions in that module, you will also be able to determine the exact placement of the comments you will need to make in the code. Follow the directions in the module in Codia to walk through the activity.
Your script should do the following three things:
1. Collect customer input.
2. Calculate the ending balance.
3. Display the results to the customer.
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.
II. 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.
Attachment:- Assignment Files.rar