Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Console , package - info.java package - info.ja util 1 . java feb 1 5 . java package - info.ja feb 2 1 . java

Console , package-info.java
package-info.ja
util1.java
feb15.java
package-info.ja
feb21.java x
3
feb21(1)JavaApplicationUsersAli.p2plpluginsorg.eclipse.justj.openjdk.hot
Commissionrate%
TotalSales
Lessthan200sold:8.0%
Greaterto200sold0%
Greaterorequalto400sold0%
Entertotalsales250
Salesman'stotalsaleis250.0andcommissionis0.0
Salesman'sincomeis$250.0
J package-info.java
1 package feb15;
}
package feb21;
import java.util.Scanner;
public class feb21{
7o. public static void main(String[] args){
double doublecommission;
// TODO Auto-generated method stub
int doublecommisssion 1, doublecommission 2=0, doublecommission 3=0;
doublecommission =0.00;
double doublecommission1=0.08;
double commission2=0.10;
double commission 3=0.12;
System.out.println("Commission rate %;
System.out.println("Total Sales");
System.out.println("Less than 200 sold:" + doublecommission1*100+"%");
System.out.println("Greater to 200 sold" + doublecommission2**100+%;
System.out.println("Greater or equal to 400 sold" + doublecommission3**100+%;
Scanner scanner = new Scanner(
System.in);
System.out.print("Enter total sales");
double totalsales=scanner. nextDouble();
scanner.close();
double commission;
if (totalSales200){
}
commission=totalSalesdoublecommission2;
}else {
}
commission=totalSales*doublecommission3;
double income=totalsales +commission;
System.out.println("Salesman's total sale is"+ totalSales +" and commission is"+ commiss
}
System.out.println("Salesman's income is $"+income);
}
HELLO: My Question is how do i
Suppose you are a computer salesman and your income depend on the total sales and comm issions earned for the computers that you sell. Commission rates vary depending on how many units you sold (see chart below). Your income equals to the total sales plus the commission where the commission equals to total sales times the commission rate. That is, commission = total sales * commission rate and income = total sales + commission.
Total Sales
\table[[Less than 200 sold,Commission rate %],[Greater or equal to 200 sold,8%
MY QUESTION IS, how do i get to 500
SAles is 60 commission rate and income is 560, and then 250 sales commission is 25
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

B01JXPZ7AK, 9780805360479

More Books

Students also viewed these Databases questions

Question

Show the properties and structure of allotropes of carbon.

Answered: 1 week ago