Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Scenario A salesperson can earn the following commissions: 20% commission on weekly sales of $5000 or more 10% commission on weekly sales of $3000 or

Scenario

A salesperson can earn the following commissions:

  • 20% commission on weekly sales of $5000 or more
  • 10% commission on weekly sales of $3000 or more

Please note: Most salespeople regularly sell about $2000 a week. These salespeople do not receive a commission.

Assignment

Using NetBeans IDE to implement a CLI application that does the following:

  • Accepts a salesperson's weekly sales amount from user.
  • Calculates the commission based on the scenario above.
  • Outputs the salesperson's:
    • weekly sales
    • commission level
    • actual commission
  • Expected outputs:
    1. image text in transcribed
    2. image text in transcribed
    3. image text in transcribed
    4. image text in transcribed
run: With weekly sales between $3000 and $4999.99 you receive 10% commission. With Sales of $5000 or more you receive 20% commission. We will calculate your commision for this week. ================= ======== ==== =================== How much sales did you do this week? run: With weekly sales between $3000 and $4999.99 you receive 10% commission. With Sales of $5000 or more you receive 20% commission. We will calculate your commision for this week. =========================================== ================ How much sales did you do this week? 1400 ============================================= === Total Weekly Sales: $1400.00 You do not qualify for a commission this week, try again next week! BUILD SUCCESSFUL (total time: 13 minutes 52 seconds) run: With weekly sales between $3000 and $4999.99 you receive 10% commission. With Sales of $5000 or more you receive 20% commission. We will calculate your commision for this week. =========================================================== How much sales did you do this week? 3500 =========================================================== Total Weekly Sales: $3500.00 Your 10% commission this week is $350.00, congratulations! BUILD SUCCESSFUL (total time: 12 seconds) run: With weekly sales between $3000 and $4999.99 you receive 10% commission. With Sales of $5000 or more you receive 20% commission. We will calculate your commision for this week. == === === === == ==== === == === ==== === === === === === === === === === == = How much sales did you do this week? 6500 ======= ==================================================== Total Weekly Sales: $6500.00 Your 20% commission this week is $1300.00, congratulations! BUILD SUCCESSFUL (total time: 6 seconds)

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 2 Lnai 9285

Authors: Annalisa Appice ,Pedro Pereira Rodrigues ,Vitor Santos Costa ,Joao Gama ,Alipio Jorge ,Carlos Soares

1st Edition

3319235249, 978-3319235240

More Books

Students also viewed these Databases questions