In my program I need the user to input a price. The purchase price must be a number.
My assignment says:
Ignore any data that may be on the life after the amount. In a non-numeric is entered for the price, issue an error message, and ask the user to input the price again.
Does anybody know how to do this? Thank you.