Question: Java Write a Java program to print the income statistics for a company. A consumer products company pays its part time sale representatives a basic
Write a Java program to print the income statistics for a company. A consumer products company pays its part time sale representatives a basic of $200 biweekly and 8% of gross sales. For example, a sales representative who makes S6000 sales will receive a total of S680 in two weeks. The income statistics should show the number of sale representatives earn in each salaries range. The salarie s range is as follow: a. $200-299 b. S300-399 d. S500-599 e. $600-699 f. $700-799 g. $800-899 h. $900-999 i. $1000 and over The salaries range is truncated to integer. Print the income statistics in a tabular format. Your program should use a loop structure and a Scanner class to read in arbitrary numbers of salaries and printf) method to formulate the tabular output. A sample output is as follow: nter gross sales or enter a negative value to terninate the progran: 55.25 nter gross sales or enter a negative value to terninate the progran: 77.88 nter gross sales or enter a negative value to terninate the progran: 123.89 nter gross sales or enter a negative value to terninate the progran: 356.78 nter gross sales or enter a negative value to terninate the progran: 338.73 nter gross sales or enter a negative value to terninate the progran: 3256.88 nter gross sales or enter a negative value to terninate the progran: 6765 nter gross sales or enter a negative value to terninate the progran: 7763.66 nter gross sales or enter a negative value to terninate the progran: 76587-99 nter gross sales or enter a negative value to terninate the progran: 23567.99 nter gross sales or enter a negative value to terninate the progran: 88899.66 nter gross sales or enter a negative value to terninate the progran: 9 ncone Range 200 $299 0 $399 600$699 88 799 00- $899 $999 1880 and over ress any key to continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
