i am trying to have a way to make the program goback to the top of the while loop. When the user enters 'No' for their answer, i want to have the loop go back to where it says "what kind of wash".
Currently because s doesn't change you have either an infinite loop or it doesn't loop at all. So once you see "What kind of wash" you will always see it again no matter what.
Hello fivestar,
If you want to put an if statement in before the while loop to check the value of "s" you can, but it is not necessary because if "s" is not equal to "y" the while loop will fail and not execute. I would suggest using tolower or toupper to catch either case of the letter entered. just like you did on line 22.
At line 22 you could either use if statements or a switch to deal with entry for choice and I would add a choice to quit the while loop. I would more likely use a switch myself.
Give it some thought and a try and see what happens.