What are the benefits to using function to accomplish

Assignment Help Basic Computer Science
Reference no: EM132988992

A computer program may need to accomplish multiple tasks. For example, an automated teller machine (ATM) program can accomplish the following tasks:

Verifying user's credential

Displaying the current balance

Depositing money

Withdrawing money

A function is a block of organized and reusable code that can be used to accomplish a specific task. Assume that you are the programmer hired by a bank to write a program for its automated teller machines (ATM). Give an example of a task that you want to use a function to accomplish in the program, and answer the following questions:

What are the benefits to using a function to accomplish that task?

Does the function need parameters or return value? Why or why not?

Reference no: EM132988992

Questions Cloud

Describe the use of an eco-map in assessment : Post a description of the importance of using multiple evidence-based tools (including quantitative, open ended, and ecologically focused) to assess children.
Programming languages provide concept called loop : Almost all the programming languages provide a concept called loop, which helps in executing one
Create an eco-map to represent claudia situation : Create an eco-map to represent Claudia's situation. Describe how the ecological perspective of assessment influenced how the social worker interacted with Claud
Outline for basic qualitative risk assessment plan : Create an outline for a basic qualitative risk assessment plan. Define the scope and boundaries for the risk assessment.
What are the benefits to using function to accomplish : What are the benefits to using a function to accomplish that task? Does the function need parameters or return value? Why or why not?
Installing and running anti-malware software : Create a malware protection procedure guide that includes steps for installing and running anti-malware software.
Compute their child credit : Mr. and Mrs. Cox reported $115,900 AGI on their 2018 joint return. The couple has three dependent children under age 17. Compute their child credit
Explain what is the nuclear nonproliferation : Explain what is the "Nuclear NonProliferation" treaty? Who or what are non-state hackers? Provide a brief explanation of a non-state hacker.
What amount will be reported as cost of goods sold : Using the FIFO perpetual inventory method, what amount will be reported as cost of goods sold for the 24 units that were sold

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Research on national infrastructure initiatives

MN503 - Overview of Internetworking - Network requirement analysis and plan - Using the uploaded case study on the Moodle titled GLOBAL BROADBAND ACCESS

  Define an exception to signal errors

A SingleBuffer supports get and put: The SingleBuffer stores a single item and an indication whether the SingleBuffer is logically empty.

  Explain the issues that exist between 3nf and bcnf

Explain the issues that exist between 3NF and BCNF.  Now normalize through BCNF.  Show the relations at each step even if there is no change so I can see the process.

  Depreciation on equipment

Prepare adjusting entries for the following transactions. Omit explanations. 1. Depreciation on equipment is $800 for the accounting period.2.There was no beginning balance of supplies and purchased $600 of office supplies during the period. At the ..

  Write findmin and findmax methods for the avltree class

Using the Timing class, compare the times for the methods implemented in Exercise 1 to the same methods in the BinarySearchTree class. Your test program should insert a sorted list of approximately 100 randomly generated integers into the two tree..

  What do you think about pairing-up idea

What possible Organizational Behavior topics do you see in this story? Explain. What do you think about this pairing-up idea?

  Difficult to prosecute cybercriminals

Internet-related crime occurs every minute. Why is it so difficult to prosecute cybercriminals?

  Systems and quality assurance

Managing systems implementation involves paying constant attention to quality assurance (QA).

  What are instances of economic failure

What are instances of economic failure that have contributed to this cost escalation? What should we do about them?

  Write a method priceisright

You may assume there is at least 1 element in the array, and you may assume that the price and the values in bids will all be greater than or equal to 1. Do not modify the contents of the array passed to your method as a parameter.

  Sales transactions of the department store

What kind of business rules could be used for sales transactions of the department store.

  Determine the output displayed when the button is clicked

Write a program that displays the output shown in a list box. The last two lines of the output should be displayed by one or more Sub procedures using data passed by variables from an event procedure.

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