1. What is your question (What is it doing, not doing, provide your test data to get the above).
2. Paste your code in formatting tags
3. Make sure your program compiles
4. When taking user input,...