Hello everyone,
I am writing a simple program for homework that processes the users income taxes. Part of the assignment is to allow the user to process a second user if they desire.
My problem is that when the user elects to go ahead with round number two. The program skips the part of allowing the user to enter their name and goes right to the next output line. I believe in c++ something like cin.ignore would do the trick, but I have no idea what to do in Java. I cannot figure out how to use the reset command nor the clear function..
I have tried placing the variables in and out of the loop but nothing is working .. any help is GREATLY appreciated
Here is the output,,, code is kind of long to post on here ,, if anyone is willing to look at it Im more than happy to post ..
Please enter your first and last name: sdiksdi
Hello sdiksdi please enter the following information
and I will compute your Federal Income Tax.
Enter your salary income: 232
Enter your interest income: 2323
Enter the total number of exemptions withheld: 3
Enter the total amount of tax withheld: 233
Your refund amount is $1226.0
sdiksdi if you would like to process another tax payer please enter 1,
otherwise enter 0 to end this program:1
Please enter your first and last name: Hello please enter the following information
and I will compute your Federal Income Tax.
Enter your salary income: