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
Special characters that display on the screen but do not print are called _____________
Eva8 [605]
Whitespace characters ?
5 0
3 years ago
9. Changing from a bystander to an advocate requires
Rina8888 [55]
9
The answer is bravery
6 0
2 years ago
OMG 2 TIMES ;DDDDDDDDDDDDDDDDD​
torisob [31]

Answer:

Keep going! Nice!

Explanation:

INSANE :D

4 0
3 years ago
Which popular file format loses some of the information from the image? JPEG TIFF RAW NEF
lisov135 [29]

Answer:

The popular file format that loses some of the information from the image is JPEG

Explanation:

4 0
3 years ago
  Why does a shaded-pole motor run at a constant speed?  A. The lines of force do not change direction.  B. The current through
Ostrovityanka [42]
<span>D. The frequency of the applied voltage is constant. </span>
3 0
4 years ago
Other questions:
  • What are the major features of a successful ethics training program and communication systems? Think of an example of a company
    13·1 answer
  • Application programmers specialize in developing system software such as operating systems, device drivers, security modules, an
    10·1 answer
  • Using a wireless network without the network owner's permission is known as ________.
    15·1 answer
  • Which of the following is an advantage of computer usage? *
    10·1 answer
  • What does hashing mean when it comes to cryptography?
    15·2 answers
  • What facilitates the automation and management of business processes and controls the movement of work through the business proc
    9·1 answer
  • When i add someone to canvas course, do they get an invitation?.
    8·1 answer
  • How many times is the second for loop going to loop in this block of code? Write your answer in numeric form in the box provided
    6·1 answer
  • Explain why you would use the soft on/off jumper when working on ATX system
    14·1 answer
  • Select a software package/electronic device that you know well. It can be from any domain (work related, entertainment, desktop,
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!