• Post Reply Bookmark Topic Watch Topic
  • New Topic

Creating Options and Loops  RSS feed

 
ashlan cooper
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I'm writing a program that offers several options including booking, quitting and posting a comment about a concert.
The comment is then printed the next time someone chooses that group and replacing any earlier comment. This program will run continuously until the user clicks quit option.

So far this is what I have written

for booking option I did this



But I'm not sure whether this is the best way to do it

and for comment and quitting option I did this



For this second program, I'm not quite sure How to make the comment to appear after someone new comments on a band, and I tried to make it quit when the user clicks no, but it is still running. How do I make it quit when the user clicks No.


And one more thing, How Do I make the program to run continuously, I know I have to use a loop, probably while loop. But where should I put it?


Any help would greatly appreciate.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!