Okay so basically my problem is that I have to prompt the user for a set of floating point values once . If they do not enter the right data type then I have to prompt them again. If they dont enter the right type the second time I quit reading input and use exception handling to detect improper input. If they do enter the right data on either of the two chances i have to find and print the sum. So again, If it is the second prompt/input i use exception handling to detect improper inputs. So my issue is being able to prompt the user once without exceptions. I understand how to use exceptions and print the sum if they were only prompted once. At this point my code is all over the place and posting it would be useless. So any feedback as to the right methods or loop/ decision combinatioin would be appreciated. Let me also say that yes this is for school. I am in my second programming class but this is not a graded assignment it is just a problem that I decided to attempt and has stumped me and my CS tutor. So thanks again if you guys can just point me in the right direction.
Lynick 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.