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 11:20
The kurt vonnegut commencement speech, the neiman-marcus chocolate chip cookie recipe, and the get-well emails to the dying boy are examples of select one: a. social engineering b. hoax emails c. email viruses d. worms
Answers: 1
question
Computers and Technology, 22.06.2019 22:40
Least square fit to polynomial write a function leastsquarefit3pol that solves a linear system of equations to find a least squares fit of a third order polynomial to an experimental data set given as two row arrays. the function leastsquarefit3pol must explicitly solve a set of linear equations and cannot use polyfit. there should be no restriction on the size of the problem that can be solved.
Answers: 1
question
Computers and Technology, 23.06.2019 23:00
Lucas put a lot of thought into the design for his company's new white paper. he made sure to include repeating design elements such as color schemes and decorative images. his goal was to a.add symmetry b.create a unified publication c.provide consistency d.save money
Answers: 1
question
Computers and Technology, 24.06.2019 10:10
Which view in a presentation program displays a split window showing the slide in the upper half and a blank space in the lower half?
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, 09.12.2019 07:31
question
Mathematics, 09.12.2019 07:31
Questions on the website: 13722360