Create a simple ATM script

Assignment Help Python Programming
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

Reference no: EM132238903

Questions Cloud

Have the federal government policies on drugs : Have the federal government's policies on "drugs" and "narcotics" been successful?
High income households-population per sport franchise : Individual ticket demand: -Population, Age, Household Income, Retail Spending, High Income households, Population per sport franchise
What have you done to protect against pets : What have you done to protect against pets, children or adults coming into contact with the poisonous substances? Describe the circumstances of poisoning.
How do managers use concurrent control in a organization : How do managers use concurrent control in a organization?
Create a simple ATM script : Create a simple ATM script. The script emphasizes the importance of using functions in the creation of more organized and reusable code
Discuss about the punishment vs rehabilitation : Discuss about the Punishment vs. Rehabilitation. What is more effective, imprisonment or rehabilitation?
Differences between the federal deficit and federal debt : What are the differences between the Federal deficit and Federal Debt? How does a government budget deficit affect the economy
Contribution to holes in the ozone by cattle : Which model is Joe's best choice if he is presenting a speech on the contribution to holes in the ozone by cattle?
What would be examples of valid selection methods : What would be examples of valid selection methods used by the human resource department to ensure selecting the appropriate candidate for a job.

Reviews

len2238903

2/21/2019 12:47:10 AM

This is a codio project. The instructions are attached along with two versions of text files of what I had already started with. I need this to be thoroughly completed per the instructions. The critical elements criteria need to be captured as well as notes for each function.

len2238903

2/21/2019 12:47:03 AM

Guidelines for Submission: Your submission should include all annotated text files of code for the script, as well a Microsoft Word document that includes the reflection part of your assignment in which you explained the problem solving approaches you employed (critical element II). Custom functions - Identifies examples of custom functions in your script using comments in your code. Input (Parameters) Function(s) - Identifies examples of input (parameters) that are utilized within the function(s) in your script using comments in your code.

len2238903

2/21/2019 12:46:57 AM

Functions That Return Correct Output - Identifies examples of functions that return the correct output in your script using comments in your code. Applying your experience - Experience Explain how using functions is important in the creation of more organized and reusable code, and submission is supported with examples from the activity about the types of errors and your method for fixing them. Articulation of Response – Submission is free of errors related use of citations, grammar, spelling, syntax, and organization and is presented in a professional and easy-to-read format.

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd