I need help changing this program
Attachment 13750
Attachment 13751
To this program
Attachment 13748
Attachment 13749
The first 2 images are what I've already did in a previous program, but I have no idea how to get the loops and switch to work properly. Many attempts and no success. Somebody please help me