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

In the step by step simplification of expression below which property is not used? 3(1+x)3(x+1)3(x)+3(1)3x +3  A) associative B) commutative C) distributive D)
You have a piece of wood that is 7 3/4 feet long.  You want to cut one piece that is 3 7/12 feet long and one piece that is 4 1/12 feet long.  Do  you have enou
A laptop computer is priced at $650. If the sales tax is 5%, find the total cost of the computer, including sales tax.
A laptop computer is priced at $650. If the sales tax is 5%, find the total cost of the computer, including sales tax.
Proof: Given: Isosceles trapezoid TRAP with TR=PA Prove: Angle RTA = angle APR
In the step by step simplification of expression below which property is not used? 3(1+x)3(x+1)3(x)+3(1)3x +3  A) associative B) commutative C) distributive D)
Proof: Given: Isosceles trapezoid TRAP with TR=PA Prove: Angle RTA = angle APR
A laptop computer is priced at $650. If the sales tax is 5%, find the total cost of the computer, including sales tax.
A laptop computer is priced at $650. If the sales tax is 5%, find the total cost of the computer, including sales tax.
Proof: Given: Isosceles trapezoid TRAP with TR=PA Prove: Angle RTA = angle APR