Ask Question

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.

+5
Answers (1)
  1. 9 February, 00:51
    0
    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);

    }

    }
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “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 ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers