Question

Describe a scenario in which a programmer might find it most appropriate to implement a for-loop....

Describe a scenario in which a programmer might find it most appropriate to implement a for-loop.

Describe a scenario in which a programmer might find it most appropriate to implement a while loop.

Describe a scenario in which a programmer might find it most appropriate to implement a do while loop.


could you answer these questions

Homework Answers

Answer #1

Describe a scenario in which a programmer might find it most appropriate to implement a for-loop.

Use for loop when you have the count to iterate.. like iterating through the matrixes and list and arrays
we can use for loop as we will have the exact length

Describe a scenario in which a programmer might find it most appropriate to implement a while loop.

We use while loop when we dont exact count like reading files and reading results sets and reading userinputs
validating userinputs

Describe a scenario in which a programmer might find it most appropriate to implement a do while loop.


we will use do while when we need to test condition at the end like showing user menu etc..

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Briefly describe one situation in which it might be appropriate to use the Coercive style of...
Briefly describe one situation in which it might be appropriate to use the Coercive style of leadership.
For the following scenario, please identify the most appropriate statistical method to use. Additionally, describe why...
For the following scenario, please identify the most appropriate statistical method to use. Additionally, describe why it is the most appropriate. A study was conducted to evaluate the association between complexity of work and the incidence of dementia.  All subjects were free of dementia at baseline.  Time from consent into the study to the development of dementia (or end of study) was measured.  The goal of the statistical analysis was to determine the relationship between high complexity of work (divided into three categories)...
Describe a scenario where it would be appropriate for a researcher to do a one-tailed, a...
Describe a scenario where it would be appropriate for a researcher to do a one-tailed, a paired-sample t-test.
Write a brief scenario in which a hospital staff member might do something that could result...
Write a brief scenario in which a hospital staff member might do something that could result in the spread of an infection. use medical terms and abbreviations
For the following scenario, please identify the most appropriate statistical method to use. Additionally, describe why...
For the following scenario, please identify the most appropriate statistical method to use. Additionally, describe why it is the most appropriate. Family caregiving of older adults is more common in Korea than in the United States.  A recent study assessed 100 caregivers of older adults with dementia in Seoul, South Korea.  The dependent variable was caregiver burden as measured by the Korean Burden Inventory (KBI).  The KBI is a score which ranged from 28 to 140, with higher scores indicating higher burden.  Additional explanatory...
1. For the following scenario, please identify the most appropriate statistical method to use. Describe why...
1. For the following scenario, please identify the most appropriate statistical method to use. Describe why it is the most appropriate. A population-based case-control study was performed to assess the association between diabetes mellitus history and breast cancer in Hispanic women.  Breast cancer cases were identified through state cancer registries. Age- and ethnicity-matched controls were selected from commercial mailing lists and driver’s license and Social Security records.  The goal of the statistical analysis was to determine whether there was a statistically significant...
Describe a scenario where a researcher could use an F-test for the equality of two variances...
Describe a scenario where a researcher could use an F-test for the equality of two variances to answer a research question. Fully describe the scenario and the variables involved and explain the rationale for your answer. Why is that test appropriate to use?
Describe your daily activities at your job as a Programmer Analyst and elaborate on the critical...
Describe your daily activities at your job as a Programmer Analyst and elaborate on the critical aspect of what you do? What value do you add to the IT Company? What makes you a valuable contributor to your team/organization? Give few examples. Please answer in 350 words only and in word format only. No images please. Thanks
Describe a study for which the analysis of exiting statistic is the appropriate research method. What...
Describe a study for which the analysis of exiting statistic is the appropriate research method. What source would you use. What problem might you encounter and how might you resolve them
Describe two types of business organizations in which you could obtain an ownership position while enjoying...
Describe two types of business organizations in which you could obtain an ownership position while enjoying limited liability. Provide an example of a type of firm that you might find utilizing each business type
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT