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

Which factors of 72 are multiples of its prime factor?
The questions below refer to the selections "Stopping by Woods on a Snowy Evening" and “After Apple-Picking.” Two sounds the speaker describes in “Stopping by W
Which formulas represent two polar molecules? (1) CO2 and HCl (3) H2O and HCl (2) CO2 and CH4 (4) H2O and CH4
A horizontal 20.-newton force is applied to a 5.0-kilogram box to push it across a rough, horizontal floor at a constant velocity of 3.0 meters per second to th
Uncontrolled cell division is characteristic of? a. cancer b. meiosis c. budding d. sporulation
simplify 0.3{x-2y}+0.5x-y
The Immigration Restriction League wanted Europeans to pass _____ before being allowed to immigrate to the United States. a literacy test a world history test a
Carrie is buying bulk candy for a high school fundraiser. She buys 1000 candy bars for $350. What is the unit cost per candy bar? a. $.30 b. $.35 c. $.45 d.
Determine the total charge of the boron nucleus.
Which substance cannot be broken down by a chemical change?(1) ammonia (2) mercury (3) propane (4) water