1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
zmey [24]
3 years ago
8

Write a program that calculates the amount of money the salesperson will earn from selling discount cards. java program

Computers and Technology
1 answer:
BaLLatris [955]3 years ago
4 0

Answer:

import java.util.Scanner; public class Salesman2 {

public static void main(String[] args) { // TODO Auto-generated method stub double CommissionRate;

double TotalSales, Commission;

Scanner Read = new Scanner (System.in); System.out.println("Please enter total sales "); TotalSales=Read.nextDouble();

if (TotalSales<500)

CommissionRate=0.0;

else if (TotalSales>=500 && TotalSales <1000) CommissionRate=0.05;

else

CommissionRate=0.08;}

Commission = CommissionRate * TotalSales;

System.out.println("The Commision is: "+ Commission); }

}

}

You might be interested in
What is the different between cat and less commands in linux?
luda_lava [24]

the less command is a dedicated file reader while CAT command is mainly used for the creation of files or it can conCATenate (link) files.

5 0
3 years ago
A user has become compromised as a result of visiting a specific web page, without clicking on any kind of content. What type of
Nostrana [21]

Answer:

drive-by-download

Explanation:

3 0
3 years ago
Read 2 more answers
A network administrator needs information about the printers that employees can access. Where can he find the information? The a
Kaylis [27]
The information can be found on the printserver or terminal serve information where mapped users to the server printers were granted or have access to. On setup of server printers, the administrators allow certain individual access to the terminal server after installing the printer to be made available on the server.
6 0
3 years ago
Read 2 more answers
Hey are u guys in any zoo/m rn ?​
tester [92]

Answer: Nope. Why???

Explanation:

6 0
3 years ago
Which is needed for the specific task of inserting a chart into a report?
Arturiano [62]

To add charts in Access to reports, click the “Create” tab in the Ribbon. Then click the “Report Design” button in the “Reports” button group. Unlike other report controls, the chart control uses its own data source to show its data. Therefore, you can insert it into a blank, unassociated report, if desired

6 0
3 years ago
Other questions:
  • What is a drawback to being in Slide Show mode? a- Being able to review each slide in order
    8·2 answers
  • The risk of carbon monoxide poisoning can be reduced by
    12·1 answer
  • Why should a person consider doing an apprenticeship?
    7·1 answer
  • unittttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt
    7·1 answer
  • (Financial application: compound value) Suppose you save $100 each month into a savings account with the annual interest rate 5%
    8·1 answer
  • What do developers do to support software products
    14·1 answer
  • The internet is best described as a vast
    7·2 answers
  • Which of these items will least likely increase pressure in the evaporative emission control system?
    9·1 answer
  • Which memory device is most appropriate for backing up a computer’s hard drive?
    11·2 answers
  • Suppose you have 10 image files, each taking up 300 KB. About how many MB of space do they take up
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!