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 20:00
What statement best describes operating systems? it’s possible for modern computers to function without operating systems. most operating systems are free or very inexpensive. operating systems are managed by the computer’s microprocessor (cpu). operating systems manage the computer’s random access memory (ram).
Answers: 1
question
Computers and Technology, 23.06.2019 08:00
Which argument is not a valid filter? does not equal this quarter filter by cell color all of these are valid filter arguments.
Answers: 2
question
Computers and Technology, 23.06.2019 17:10
Ac++an of of pi. in , pi is by : pi = 4 – 4/3 + 4/5 – 4/7 + 4/9 - 4/11 + 4/13 - 4/15 + 4/17 . ., to pi (9 ). , if 5 to pi,be as : pi = 4 - 4/3 + 4/5 - 4/7 + 4/9 = 4 – 1. + 0.8 - 0. + 0. = 3.. atoofbe to pi?
Answers: 2
question
Computers and Technology, 23.06.2019 22:00
Take a critical look at three gui applications you have used—for example, a spreadsheet, a word-processing program, and a game. describe how well each conforms to the gui design guidelines listed in this chapter.
Answers: 3
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, 26.06.2020 16:01
question
Mathematics, 26.06.2020 16:01
question
Mathematics, 26.06.2020 16:01
question
Mathematics, 26.06.2020 16:01
question
Mathematics, 26.06.2020 16:01
Questions on the website: 13722363