Write a program that will calculate a sales person's weekly salary.The sales person receives a weekly salary of $200.00 plus a commission of 9% on the amount of sales for the week.

Respuesta :

ijeggs

Answer:

The complete Java program is given in the explanation section

Explanation:

import java.util.Scanner;

public class num16 {

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       System.out.println("Enter sales for the Week: ");

       double sales = in.nextDouble();

       double weeklySalary =200.00;

       double commision = 0.09*sales;

       double salaryAndComm = weeklySalary+commision;

       System.out.println("Your Weekly salary is: "+weeklySalary);

       System.out.println("Your Commision is: "+commision);

       System.out.println("Your total earnings is "+salaryAndComm);

   }

}