1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Kisachek [45]
3 years ago
6

Identify examples of loop structures using comments in your code. Be sure your examples address each of the following: i. Item-b

ased for loops ii. Index-based (range) for loops ii. While loops
Computers and Technology
1 answer:
Alex73 [517]3 years ago
4 0

Answer:

item based for loop is used to iterate items in a collection .it is useful to apply some operations on item. Index based for loop is used to execute some logic repetitively. While loop also useful to execute a logic repetitively

Explanation:

item based for loop is used to iterate items in a collection .it is useful to apply some operations on item. Index based for loop is used to execute some logic repetitively. While loop also useful to execute a logic repetitively

in c#.net , following example explains this

using system;

void main(){

String[] names=new  names[20];

int counter=0;

//index based for loop

for(int i=0;i<20;i++){

console.read(names[i]);

}

//item based for loop

foreach(string s in names){

console.writeline(s);

}

//while loop

while(counter<20)

{

console.read(names[counter];

counter++;

}

}

You might be interested in
ASAP PLEASE the online research you did to describe how Senet is related to the culture and historical period when it was create
Morgarella [4.7K]

Answer:

I think this belongs in the history category as the computers % technology is a bit inactive.

6 0
2 years ago
Movie recommendations? I’m in middle school so nothing nasty bro and I don’t really like horror movies so none of those either
lbvjy [14]

Answer:

watch happy gilmore

Explanation:

5 0
3 years ago
Read 2 more answers
What is the processing speed for the second generation of computers​
Helga [31]

10mbp

I hope it helps you

5 0
3 years ago
I am in desperate need to graduate. Overloaded with tons of online homework to be completed before the school year ends. I don't
Alenkinab [10]

What school do you go to?

8 0
3 years ago
Which behavior demonstrates teamwork
attashe74 [19]
Cooperation, agreements, trust Etc*
3 0
3 years ago
Read 2 more answers
Other questions:
  • Which term describes the distinct number of colors a graphic contains? (1 point)?
    10·1 answer
  • Double clicking a word selects the entire word?
    10·1 answer
  • Describe conductors and insulators in terms of energy
    11·1 answer
  • Raj’s computer just crashed and he lost most of his files. What should he do to avoid this problem in the future?
    10·2 answers
  • You have a screen and a pen, which is an instance of the Turtle class.
    13·2 answers
  • Ok so I know this is the most random question to ask on brainly, but does anyone know how to copy on placement in sims 4 for pc?
    14·2 answers
  • A type of SDLC in which each phase has results that flow into the next phase is called the __________ model.
    8·1 answer
  • The contribution of Charles Babbage in the history of computer​
    6·1 answer
  • What are the ten application areas of computer?​
    10·1 answer
  • Help with Java, please!
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!