Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Code in Java please Scammers will be reported. Scenario You have just started a sales job for company COP Inc. Your pay consists of a

Code in Java please

Scammers will be reported.

image text in transcribed

Scenario You have just started a sales job for company COP Inc. Your pay consists of a base salary and a commission. The base salary is $5,000 per month. The scheme shown below is used to determine the commission rate. Note that this is a graduated rate, meaning your first $5,000 in sales nets you 8% commission and the next $5,000 you get 10%. Let's do an example. Say you sold $25,000 in a month. That means you would receive: ($5,0008%)+($5,00010%)+($15,00012%)+$5,000=($400)+($500)+ ($1,800)+$5,000=$7,700. What about $8,000 in sales? That would be ($5,0008%)+($3,00010%)+ $5,000=($400)+($300)+($5,000)=$5,700. Objective We are going to write a program that performs these calculations and outputs a table of values showing how much money someone will make given an amount of sales that month. You will start with the sales amount $1,000 and increment it by $1,000 up to $20,000 in sales (see the table below for an example output). You will create a function that looks like the following: public static double computelncome(double salesAmount) Given a sales amount it will calculate the amount of money earned that month. Don't forget to add the base salary of $5,000 ! Example Output: Note: I do not require that your output matches mine (for example tabbed and

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

Ai And The Lottery Defying Odds With Intelligent Prediction

Authors: Gary Covella Ph D

1st Edition

B0CND1ZB98, 979-8223302568

More Books

Students also viewed these Databases questions