Write an if/elif statement that assigns a value to the variable bonus depending on the amount of sales, which will be input. Sales Bonus Greater than or equal to 100,000 10,000 Greater than or equal to 75,000 5,000 Greater than or equal to 50,000 2,500 Greater than or equal to 25,000 1,000 Input Format a whole number Constraints input will be positive Output Format One of the bonus amounts listed in the problem statement. Sample Input 0 200000 Sample Output 0 Your bonus is $10,000.00

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter6: Looping
Section: Chapter Questions
Problem 11PE
icon
Related questions
Question

Write an if/elif statement that assigns a value to the variable bonus depending on the amount of sales, which will be input.

Sales Bonus

Greater than or equal to 100,000 10,000

Greater than or equal to 75,000 5,000

Greater than or equal to 50,000 2,500

Greater than or equal to 25,000 1,000

Input Format

a whole number

Constraints

input will be positive

Output Format

One of the bonus amounts listed in the problem statement.

Sample Input 0

200000

Sample Output 0

Your bonus is $10,000.00
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning