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

  Issues facing police departments in today’s society

Suggestions for how the relationship between DHS and police departments may be improved.  Describe how local, state, and federal law enforcement agencies currently interact with the U.S. Department of Homeland Security (DHS).

  The equation of the path of a balloon

A balloon is launched from station A. At any instant its horizontal position is defined by x =0.4t2, where t is in seconds and x is in meter. The equation of the path is defined by: y = x 2 - 0.4 x

  Clinic regarding staffing-patient load-financial stability

A managed care network has contacted you as the administrator and would like to have your clinic become part of their network. What impact would this have on your clinic regarding staffing, patient load, and financial stability?

  Aid of statistical analysis

In contrast to the qualitative paradigm, quantitative data is used to answer specific research questions with the aid of statistical analysis.

  Illustrate out the term hypotheses

Illustrate out the term Hypotheses, theories, and laws, and the relationship among them.

  Accuracy or inaccuracy of sensory information

Discuss some reasons for believing in the accuracy or inaccuracy of sensory information. Identify and describe some factors contributing to the accuracy or inaccuracy of sensory data.

  Struggling local local suburban regional shopping mall

Imagine yourself as the manager of a struggling local local suburban regional shopping mall. what do you think the mall should do to improve its performance? what shopping trends do you foresee over the next 10 years?

  Means for gathering the data

Explain the various means available to you for gathering data.

  Strategic planning decisions

One problem in making strategic planning decisions regarding people is that all other resources are evaluated in terms of _______________ and, in most organizations, people are not.

  What are weapons of mass destruction

What are weapons of mass destruction? How is the United States working to mitigate the threat? Are International Weapons Inspections an effective tool? Explain in 250 - 300 words. Just a simple write up.

  Eliminated a lot of labor intensive jobs

What do you think of the impact of technology in that it has eliminated a lot of labor intensive jobs without necessarily creating new jobs?

  Describe tradeoffs between lifecycle and first cost analyses

Create the 1,050- to 1,400-word paper in which you describe tradeoffs between lifecycle and first cost analyses in terms of risk and cost.

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