Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The Following question is requered to be done using Java + JOption. The Question

ID: 3631335 • Letter: T

Question

The Following question is requered to be done using Java + JOption. The Question is >>>>
(Sales commission Calculator) a large company pays its salespeople on a commission basis. The sales people receive 200$ per week + 9% of their gross sales for that week. For example, a salesperson who sells 5000$ worth of merchandise in a week receives 200 $ + 9% of 5000$, or a total of 650$, you’ve been supplied with a list of items sold by each sales person. The values of these items are as follows:
Item value
1 239.99
2 129.99
3 99.95
4 350.89
Develop a java application that inputs one salespeople’s item sold for last week and calculates and displays that salesperson’s earnings. There’s no limit to the number of items that can be sold.

Please help.........

Explanation / Answer

import java.util.Scanner;

public class SalesPeople
{
public static void main(String[] args)
{

double total = 0;
String in = "";
Scanner kbd = new Scanner(System.in);
int count = 1;

System.out.println("Enter item values or -1 to quit Item Value");
while(!in.equals("-1"))
{
System.out.println(count+" ");
in = kbd.next();
total += Double.parseDouble(in);
}

total = total * 0.9;
total += 200;

System.out.println("This weeks commission is "+total);
}//end main

}//end class SalesPeople

This should do fine!!!

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote