I somewhat of an idea on what I'm am doing, but could use some help. I do have a few questions, but I want to try to figure most of them out. My first hurdle is why is my output skipping a line? I also know my calculations are off, but I'll try to figure it out.
code tags help a lot.
I made a couple of tiny changes (do while loop, moved cin and cout around a little for the new loop, etc), is this what you had in mind?
Sorry, just looked up how to use code tags and edited it. Your code shows "quit?" after every input. I was trying to get it to just show "Enter the number of registrants(q to quit)" every line until you enter "q". Thanks for the help by the way.
to do that you have to read their input as a string, convert it to a number if you can, if it fails, see if its a "q" (not 'q' now, its a string now) and if so, stop, else invalid junk typed... like that. Can you do it? You can use stoi() to convert string to int, if you want. Its the easiest way for this program.