PDA

View Full Version : Lab 2


smileysand
07-27-2015, 10:55 PM
Oh my i have completed but could not figure out how to do the bonus. I tried creating a string list for the different yes. The problem with the string list when you put in a call method it will ask for the first or the last of the string list. This was quite challenging by far. Was anyone able to do the bonus. An how many statements did everyone have. Were they able to consolidate statements?

shaolinkidd
07-27-2015, 11:14 PM
I was able to accomplish the same thing a different way. I created a pop-up box with the choices 'Yes' and 'No'. If you click 'Yes' loop continues, if 'No' it stops.

Just stumbled on this by exploring, I didn't even attempt the Yes, yes, YES method!

Diary0926
07-27-2015, 11:49 PM
Unfortunately I suffered the same fate. I believe that part is too advanced for me. I was able to complete everything else though.
Loops are becoming easier to use.

Petit Suisse
07-28-2015, 04:27 AM
That's great. The bonus is a bonus for a reason I suppose, but in terms of the logic of how to do it, think of it this way...

You have already asked the user if they want to repeat the program, and if they input "yes" your while loop continues.

In the bonus you want to give them an option so they can input EITHER yes OR YES OR Yes.

In the same place you defined "while statement true", you can pick "logic". This will give you the option to add criteria, such as either yourVariable == yes or yourVariable == Yes or yourVariable == YES.

Have a play with the logic option and see how it goes. There might be other ways, but that way worked for me.

Good luck playing!