Determines the number of times to repeat

Assignment Help Other Subject
Reference no: EM13308842

When there is a block of code you want to reuse, what do you do ?

Write it once and ...

1) Cut and Paste it, until you have the correct number of times you need it.

or

2) Place it inside a loop block, and specify the condtion which determines the number of times to repeat it.

Which do you think is best, 1 or 2 ?

Give an example.

Reference no: EM13308842

Questions Cloud

Collaborating and promoting teamwork amonst four generations : When looking to increase the collaboration, and teamwork yes I do agree that it will strenghten each generation, but when thinking about the different learning styles which each generation has, what do you think might be some obstacles which the orga..
Elements to creating a loop : Having a variable set to a initial value. A 'condition' that checks the variable against ending value, An increment or modifier to the variable
Aircraft are used to sow seed and to spread fertilizer : Aircraft are used to sow seed and to spread fertilizer.
What is the probability that the number of days of vacation : The number of vacation days taken by employees of a company is normally distributed with a mean of 14 days and a standard deviation of 3 days. For the next employee, what is the probability that the number of days of vacation taken is less than..
Determines the number of times to repeat : Cut and Paste it, until you have the correct number of times you need it. Place it inside a loop block, and specify the condtion which determines the number of times to repeat it.
What instrument could the predictive validity of a metric : F90 posted a question Sep 18, 2014 at 12:58pm ..
What is the expected value of m : A sample is selected from a population with a mean of =40 and a standard deviation of 8. If the sample has n=4 scores, what is the expected value of M and the standard error of M?
Continuous versus stepwise change : Continuous versus stepwise change: Do children grow by imperceptibly small increments or do they periodically move up from one identifiable stage to another in Skinner's theory?
What is probability that your test will have a p-value : How does your answer change if you flip the coin 400 times in- stead?

Reviews

Write a Review

Other Subject Questions & Answers

  Voters attitides toward the new deal

why did people criticize fdr and the new deal? what did the 1936 election reveal about voters attitides toward the new deal?

  Terrorist groups sprung up around the globe

Why have terrorist groups sprung up around the globe? What kinds of governments and policies make for a breeding ground for this type of "resistance"?

  Difference between health promotion and disease prevention

What is the difference between health promotion and disease prevention? How should health promotion and disease prevention be used in the advancement of population health?

  Example of personification

Which of the following is an example of personification?  He looks just like his dad.  The winds are light and the sea is sleeping quietly today.

  Income-sales and total assets

Describe some common relationships and other considerations used by auditors when assessing the Peso (dollar) amount considered material. In other words, what are some common measures of materiality with respect to income, sales, and total assets?

  American history of african slavery influenced contemporary

How has the American history of African slavery influenced contemporary society? Provide three examples you believe to be most significant

  Research involved in citing sources

One important formatting consideration, whenever research is involved, is in citing sources. At DVU, we require the use of APA citations. What are the rules involved when using this type of formatting?

  Standing point in terms of past schooling-work experience

what is your own personal "standing point" in terms of past schooling and work experience?

  Select a product or service

Select a product or service. Then select three different organizations that provide your selected product or service and compare the prices associated with your selected product or service. What is the difference between the prices among the differen..

  Excel® exercise

A business professional wants to use Microsoft® Excel® to organize data for the monthly expense report. He has never used Microsoft® Excel® and is inquiring about the functions that would support him with this task.

  Explain what adam smith meant by the ‘invisible hand

Explain what Adam Smith meant by the ‘invisible hand.’ Does this concept make sense? Please supply an example in your explanation.

  Major employment laws do you find most interesting and why

Which of the major employment laws do you find the most interesting and why? Which law, executive order, or court decision do you think is the most influential and has the most impact on staffing? Are there any of these laws that you would argue are ..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd