The application will now compare the total annual compensation of at least two salespersons. It will calculate the additional amount of sales that each salesperson must achieve to match or exceed the higher of the two earners. The application should ask f

computer science

Description

The application will now compare the total annual compensation of at least two salespersons. It will calculate the additional amount of sales that each salesperson must achieve to match or exceed the higher of the two earners. The application should ask for the name of each salesperson being compared. This are the requirements and everything works I just want the program to check for wrong data enter from the user if user enter a number where he is to enter a name is should ask the user to enter a name and not a number and if user enter a word where user needs to enter a number it should tell the user that the is an invalid input and allow user to enter the correct data. The program should not terminated if user enters wrong data it should continue untill the correct data is enter I have a java program that I can not get to check for invalid input, for example the program will compare two sales person, first it will ask for one sale person name and annual salary, then it will ask for the second sales person, and finally do all the comparison, commission, acceleration factor and so on, but I would like for the program to check when the user enters the name to make sure it does not enter a number and on the section where a number is required to be only a number and not letter. I have attached the source file as I created the files with netbeans, but you can find the source (java) inside the source directory. Please let me know if you can help me with this project


Related Questions in computer science category


Disclaimer
The ready solutions purchased from Library are already used solutions. Please do not submit them directly as it may lead to plagiarism. Once paid, the solution file download link will be sent to your provided email. Please either use them for learning purpose or re-write them in your own language. In case if you haven't get the email, do let us know via chat support.