That would be a much better way of accomplishing it, but we are limited to only the commands/functions in that particular chapter of the book. I'm glad you caught that spelling error. I had already...
Type: Posts; User: Tdawg75
That would be a much better way of accomplishing it, but we are limited to only the commands/functions in that particular chapter of the book. I'm glad you caught that spelling error. I had already...
Thank you. Now that you mention counters I feel like a moron. It never occurred to me to use a counter that way.
This is my last lab assignment for the semester. It was supposed to be due next week, but my instructor will be out next week so he decided today that it would be due on Thursday. He did this because...
Ok, I have it. Thank you guys so much for the help and suggestions. I know I have to work on making my code prettier, but I am hoping that will come with time.
//Travis Bryant
//CPT-168-A01...
That solves the never-ending loop problem. I now have to figure out how to get it to pre-test the condition, but still have a prompt inside the loop for years of service. Thanks again for pointing...
After further reading... I GET IT!!! It should be && to keep it between 1 and 99. THANK YOU!
In actual years of service it should be, but he wanted it to be set so that the user could enter 0, 99 or over, or a negative number to exit. Unless I am having a serious brain fart, the while...
Coincidentally, I used the "code" brackets. It came out better than the last code that I posted, but is still not correctly indented, etc. I apologize. I am working on it, though.
In the interest of full disclosure, this is a lab assignment that is due tomorrow. We are allowed to work with classmates in/out of class on it, so I am not cheating by asking for help. i am much...
Ok, thank you both for your replies. Whiteflags, that is probably why he hasn't taught it to us yet (not that I recall anyway), but it just bugs me that it terminates every time.
I am an "old dude" who became frustrated with my current career and decided to go back to school to make a career change. I am in my second semester and in a C++ programming class. My question...