Ok, I used one of Malcom's fixes to correct the mis-typing error. Thanks to everyone who helped, I appreciate it.
Chris
Type: Posts; User: ravens199
Ok, I used one of Malcom's fixes to correct the mis-typing error. Thanks to everyone who helped, I appreciate it.
Chris
Ok, so what do we agree is the final verdict? I've already established in my first post that I am not a programmer, I am an Industrial Engineer who took an entry level C++ class as an elective, and...
I appreciate your help, but the 1000 level class i'm in would look at me funny if i showed up with week 10 stuff in my code when he hasnt even taught it yet. Thanks for everything, everyone!!
Ok, I'm back with a completed program, except one thing doesnt work. I've added option 9; the user can quit by choosing 9. That works fine, but everything else typed other than 1-9 ends the program....
The do-while worked like a champ, thanks everyone on both threads who helped!
Which type of loop would be best?
I would want my program to say something like "Invalid entry. Please choose y/n" if anything other than y or n was typed.
As for my syntax, I can see how it should be the same, but I'm an...
I guess this program is written assuming that the user can read, and 'y' or 'n' are the only options he/she has.
In reference to my indentation, what is wrong with it? I've always been told that...
OK, so I wrote the program the way Elysia suggested, and it works great. Now, after the number is converted, i want to ask the user if they want to convert another value. If they type 'y' or 'Y', it...
OK, so I wrote the program the way Elysia suggested, and it works great. Now, after the number is converted, i want to ask the user if they want to convert another value. If they type 'y' or 'Y', it...
I think a switch seems the best, because if I add 5 more options, i can just add 5 more cases to the switch and not have to worry about changing all of the if statements
Muchos Grassy-ass ;)
By skeleton I mean saying "Use a switch statement to direct the user's input choice to calculate the value of the conversion" or "I would set up a function table, although it is somewhat more...
I think in my original post i asked to NOT have code written ;-)
Ok, so I just create functions for each conversion, but how does the 'option' chosen by the user get referenced to the appropriate function written for the option?
Ok, so I supposed I was somewhat vague in description. Basically, I want to print out a menu of options for the user to select from by choosing the corresponding number next to the option, ie:
1....
Greetings all, I am a senior Industrial Engineer major at Wayne State University in Detroit, MI who took a 1000 level (100 at most schools) computer class as an elective, and quickly discovered I was...