The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 3 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
(may have already posted, didn't show) Java: A program of payment management system of a company. Assume the program allows the user to input employeeA????1s salary and increasement rate. We have following declarations of variables:
double person_salary, increase_rate; // store employeeA????1s salary and annual increase rate.
double total, average; // store the total employeeA????1s salary and average
int employee_num; // store the number of employees.
// Assume we had declared a Scanner object named A????1inputA????1, we get following input
System.out.print(A????1Enter employeeA????1s salary: A????1);
person_salary  = input.nextDouble();
System.out.print(A????1Enter employeeA????1s increase rate: A????1);
increase_rate  = input.nextDouble();
Write a program to take userA????1s input for base salary, increase rate and calculate the final salary. You need to validate the input data from user and display result. Salary is usually positive, increase rate can be zero or larger. Make sure your program gives user three chances to input if the data is not valid.
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll