How can i write a loop for searching for a certain name in large file within exc
ID: 3542716 • Letter: H
Question
How can i write a loop for searching for a certain name in large file within excel? Once the name is found it stops.
How can I write a loop for a program I run that converts music into an MP3, if a file fails it still continues to convert the files till the end, an djust skips over the failed file?
What kind of loops can be used with a music program that plays music within a playlist till a new playlist is picked.
What kind of loops can be used with Netflix when watching a tv series, pop ups appear after every 2 eposides and a user clicks continue to continue onto the next eposide?
Explanation / Answer
1) A while loop can be used in this way
while(End of File is not Reached)
{
if(currentRecord.equals(searchName))
{
System.out.println("Name was found !!!")
break;
}
}
2)A for loop can be used in this way
for(int start =0;start<length of music; start++)
{
addToMP3(musicAt(start));
}
3)A while loop can be used in this way
while(a new playlist is not picked)
{
Play the Current PlayList
}
4)An infinite while loop can be used in this way
while(true)
{
if(Two episodes are done)
showPopUp();
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.