Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Looping to the start?
#1
Okay, so I am on my final project for the semester in programming, but I am having an issue straight from the get go, and seeing a tutor after school didn't seem to help because she didn't know what she was doing either.

I have to build a program that will continually take in letters for employee names (The letters that will let it run are A,B, and E. It is ran on the assumption that the user makes no mistakes.) and it needs to loop back to the initial question that ask for the next letter, unless the letter Z is put in, which terminates the program. So it needs to keep looping and asking for letters until Z is put in, going from the bottom of the list to the top.

I have made a quick code to try to test multiple ways to work this, however, it will only show all three if they go in the order they are scripted in. If you jump to the second employee, you cannot get to the first. *Note: The code isn't finished, so a lot of the variables won't make sense. This is only meant to display their names.*

 Spoiler

I do not believe the teacher went over these kinds of loops with us. What we learned SEEMED pretty basic. And my tutor seemed stumped as well.

If my description was confusing, I have this screencap of the visual logic flow chart he gave to us. You can see it here.

He's able to loop the program over and over again until he presses Z, and I don't know how to replicate this effect in Visual Studio.
Reply


Messages In This Thread
Looping to the start? - by kimicatdemon - 2012-05-02, 01:49 AM
Looping to the start? - by XTOTHEL - 2012-05-02, 01:54 AM
Looping to the start? - by Kalovale - 2012-05-02, 02:30 AM
Looping to the start? - by kimicatdemon - 2012-05-02, 02:42 AM
Looping to the start? - by FenixR - 2012-05-02, 02:50 AM
Looping to the start? - by kimicatdemon - 2012-05-02, 02:53 AM
Looping to the start? - by Kalovale - 2012-05-02, 03:06 AM
Looping to the start? - by kimicatdemon - 2012-05-03, 03:54 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)