ashah122205 ashah122205
  • 01-12-2020
  • Computers and Technology
contestada

What kinds of circumstances would lead you to writing a function versus using a loop? please explain in simple terms

Respuesta :

handsomesquid807
handsomesquid807 handsomesquid807
  • 02-12-2020

Answer:

1. You want to use parameters

2. You don't want your program to run multiple times

3. You want to call that snippet of code throughout your program

hope this helped :D

Answer Link

Otras preguntas

Write the equation of the line that passes through (4, -8) and is parallel to the line y = -2x - 13.​
1. Question There are two sections A and B of a class, consisting of 36 and 44 students respectively. If the average weight of section A is 40 lbs. and that of
A journal in the books of accounts of a company showed that stationery worth $1,500 was purchased by the company in an accounting period. Jamie has to post this
An 85-foot rope from the top of a tree house to the ground forms a 45 degree angle of elevation from the ground. How high is the top of the tree house?
if slope is 3/5 and y = -2 what is it in slope intercept form
Which statements describe a traditional economy? Economic decisions are made by the government. Economic growth is not a top priority. Change is slow. Advanced
help me with 17. (I know the image is upside down, but there's a flip button and u can click It to flip it)
Find the primary solution of cosθ=−0.3 ⁡
4x² - 3y, when x= 1/2 and y= -5
A publisher needs to send many books to a local book retailer and will send the books in a combination of small and large boxes. Each small box can hold 20 book