subject

When breaking a problem down, you often encounter elements that you want to use repeatedly in your code. sometimes it's appropriate to write a new function; at other times it's appropriate to write a loop. what do you think? what kinds of circumstances would lead you to writing a function versus using a loop? show the output and hand trace the values of the variables during each iteration of the loops below. a. declare integer counter = 1while counter < 60display counterset counter = counter + 10end whileb. declare integer counter = 10while counter > 0set counter = counter - 2display counterend whilec. declare integer counterconstant integer max_value = 10for counter = 1 to max_value step 2display counterend for

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:00
When jen is planning to upgrade to a monitor with a better resolution, what should she be looking for in the new monitor?
Answers: 1
question
Computers and Technology, 22.06.2019 13:00
Why the bear has a slunky tail determine the meaning of the word slunk in the story
Answers: 1
question
Computers and Technology, 24.06.2019 20:30
How is energy expended in active transport
Answers: 1
question
Computers and Technology, 24.06.2019 22:30
To include a watermark or page border on a word document, you will first need to navigate to the tab. file home insert design
Answers: 1
You know the right answer?
When breaking a problem down, you often encounter elements that you want to use repeatedly in your c...
Questions
question
Mathematics, 15.06.2021 16:30
question
Social Studies, 15.06.2021 16:30
question
Mathematics, 15.06.2021 16:30