Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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();

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote