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

Find the domain and range of the INVERSE of the given function. Square root x-3
Can anyone help me? The directions are: Choose the correct conic section to fit each equation. Is it a Circle, Ellipse, Parabola, or Hyperbola? 1) x^2 + y^2 = 1
Which six Far Eastern countries are located mainly on islands?
Campus Rentals rents 2- and 3-bedroom apartments for $700 and $900 a month respectively. Last month they had six vacant apartments and reported $4600 in lost r
four times the sum of a number and two increased by three is at least twenty seven
How were the fossil symbols and mountain belts helpful in deciding where to move the continents
Mike is three times as old as his little sister, Mary. In 4 years, he will be twice as old as Mary. How old is Mary?
Complete the following item based on the given information. The volume of a box(V) varies directly with its length(l). Using k for the constant of proportionali
For f(x)= 2x-5 and g(x)= 3-x , find (f (times) g)(-2)
A chemist has one solution that is 80% acid and another solution that is 30% acid. How much of the first (80%) solution is needed to make a 400 L solution that