Hi there everyone.
I'm new to the boards (and C++ as well) :confused:
I was wondering if someone out there would be so kind as to guide me or explain the best way to handle this dilemma I'm having.
I''ve spent a full week coding my programming assignment for this week, and I finally got it working. The goal was to take last week's assignment and modify it to do the following:
*Accept user input for total shares desired to be purchased
*Accept user input for the price per share
*Display the results (some values are hard-coded, such as the commission, minimum commission amount, etc, which is correct).
*Offer the user a choice to continue buying shares or quit
I managed to get all of the above working. Now, here's where it all fell apart. I failed to read properly and noticed that this is also a requirement:
I need to check for input errors (I guess make sure numbers are entered instead of letters), and if the input is incorrect, it should display a message asking the users if they'd like to start from the beginning or quit.
I'm afraid of even thinking that I may have to rewrite this code again. I'm hoping one of you C++ gurus can take a look at my code and advise if there's an easier way to add this requirement to what I have. I thought about using strings, but I don't know how to work with those too well...
Any help is very much appreciated, and if you need more info from me, feel free to ask!! :o)
Thanks so much!
Cooberman76