Recent Feedback
PART 1Write a Java™ application using NetBeans™ Integrated Development Environment (IDE) that calculates the total annual compensation of a salesperson. Consider the following factors:A salesperson will earn a fixed salary of $30000A salesperson will also receive a commission as a sales incentive. Commission is a percentage of the salesperson’s annual sales. The current commission is 5% of total sales.• The total annual compensation is the fixed salary plus the commission earned.The Java™ application should meet these technical requirements:• The application should have at least one class, in addition to the application’s controlling class (a controlling class is where the main function resides).• There should be proper documentation in the source code.• The application should ask the user to enter annual sales, and it should display the total annual compensation.PART 2The company has recently changed its total annual compensation policy to improve sales.• A salesperson will continue to earn a fixed salary of $30,000. The current sales target for every salesperson is $120,000• The sales incentive will only start when 80% of the sales target is met. The current commission is 5% of total sales.• If a salesperson exceeds the sales target, the commission will increase based on an acceleration factor. The acceleration factor is 1.25• The application should ask the user to enter annual sales, and it should display the total annual compensation.• The application should also display a table of potential total annual compensation that the salesperson could have earned, in $5000 increments above the salesperson’s annual sales, until it reaches 50% above the salesperson’s annual sales.Sample Table: Assuming a total annual sales of $100,000, the table would look like this:Total SalesTotal Compensation100,000<>105,000<>110,000<>115,000<>120,000<>125,000<>130,000<>135,000<>140,000<>145,000<>150,000<>The Java™ application should also meet these technical requirements:• The application should have at least one class, in addition to the application’s controlling class.• The source code must demonstrate the use of conditional and looping structures.• There should be proper documentation in the source code. The application will now compare the total annual compensation of at least two salespersons.• It will calculate the additional amount of sales that each salesperson must achieve to match or exceed the higher of the two earners.• The application should ask for the name of each salesperson being compared.The Java™ application should also meet these technical requirements:• The application should have at least one class, in addition to the application’s controlling class.• The source code must demonstrate the use of Array or ArrayList.• There should be proper documentation in the source code.PART 3The application will now compare the total annual compensation of at least two salespersons.• It will calculate the additional amount of sales that each salesperson must achieve to match or exceed the higher of the two earners.• The application should ask for the name of each salesperson being compared.The Java™ application should also meet these technical requirements:• The application should have at least one class, in addition to the application’s controlling class.• The source code must demonstrate the use of Array or ArrayList.• There should be proper documentation in the source code.
Optional Information: Language (or Software): Other Browser (if necessary): Chrome Already Tried: I wrote the program but my code was wrong.
Hi
Welcome to JustAnswer
You there?
yes
ok
you there?
Please wait
Working on it
Please wait for few minutes
Here is part #1
SalesPersonCommission2.zip
Let me know once you get it
Working on #2
got it?
How do I open this file?
Unzip it to a folder
You will get two java file
Do you know how to unzip?
Did you run it?
Download these two java files
Driver1.java
SalespersonCommission.java
Let me know once you get them
Did you run the file?
Out them in same directory. Compile and run Driver1.java
to get output
I had to switch computers. Cannot open files.
Did you download the files?
Yes I tried to download the files but it did not work
For part#1
java
Download these two files and let me know
once you get them
Yes I have it? what is the last step, do I have to compile it? also all I need is part 3
yes I was able to down load the files. This is part 1 now I need part 2 & 3
You can compile and run it
put them in same directory. Compile and run Driver1.java
not to sound stupid, how do I put this in the same directory?
copy them in a single folder
like you put other files
should I provide next part?
How do I compile and run
If you have java installed and path configured, use
javac Driver1.java
to compile
and
java Driver1
to run
Ok thanks, Im ready for part 2
Driver.java
SalespersonCommissionModified.java
These are the files for #2
Fot them
*Got
Yes Got it, ready for part 3
You can ask me again using "For LogicPro only" at the start of your questions like other customers to get instant and fresh answers.It will ensure that question is for me.Please bookmark my profile page:http://www.justanswer.com/computer/expert-logicpro/so you can come back and ask me a question anytime.Rate this answer as 'Excellent Service' and leave bonus or use the reply tab and let me know how I can be of further assistance
Got it too?
Can I submit the same scenario of part 1, part 2, part 3 using different percentages and comission amounts? the scenario is the same but with different percentages and comission amounts.
I did them per the requirements
It may become confusing
if you use different amount and commission
I will post the scenarios, give me a second so you can see.
Part 1
Write a Java™ application using NetBeans™ Integrated Development Environment (IDE) that calculates the total annual compensation of a salesperson. Consider the following factors:
· A salesperson will earn a fixed salary of $30,000
· A salesperson will also receive a commission as a sales incentive. Commission is a percentage of the salesperson’s annual sales. The current commission is 8% of total sales.
· The total annual compensation is the fixed salary plus the commission earned.
The Java™ application should meet these technical requirements:
· The application should have at least one class, in addition to the application’s controlling class (a controlling class is where the main function resides).
· There should be proper documentation in the source code.
· The application should ask the user to enter annual sales, and it should display the total annual compensation.
Part 2
Modify the Week Two Java™ application using Java™ NetBeans™ IDE to meet these additional and changed business requirements:
· The company has recently changed its total annual compensation policy to improve sales.
· A salesperson will continue to earn a fixed salary of $30,000. The current sales target for every salesperson is $400,000.
· The sales incentive will only start when 80% of the sales target is met. The current commission is 8% of total sales.
· If a salesperson exceeds the sales target, the commission will increase based on an acceleration factor. The acceleration factor is 1.25
· The application should also display a table of potential total annual compensation that the salesperson could have earned, in $5000 increments above the salesperson’s annual sales, until it reaches 50% above the salesperson’s annual sales.
Sample Table: Assuming a total annual sales of $100,000, the table would look like this:
Total Sales
Total Compensation
100,000
<<Program calculated value>>
105,000
110,000
115,000
120,000
125,000
130,000
135,000
140,000
145,000
150,000
The Java™ application should also meet these technical requirements:
· The application should have at least one class, in addition to the application’s controlling class.
· The source code must demonstrate the use of conditional and looping structures.
Part 3
Modify the Week Three Java™ application using Java™ NetBeans™ IDE to meet these additional and changed business requirements:
· The application will now compare the total annual compensation of at least two salespersons.
· It will calculate the additional amount of sales that each salesperson must achieve to match or exceed the higher of the two earners.
· The application should ask for the name of each salesperson being compared.
· The source code must demonstrate the use of Array or ArrayList.
All the parts are per these requirements
I'm confused what does this mean? Can I change the numbers and how?
I already said, it will confuse you as you will have to understand all three parts
You can read all parts requirements and look at the code
You can change any numbers you want then
Thank's it's that simple, I got it now, just wanted to be sure.
Great
Rate this answer and ask me again for your next question :)
OK, I will be in contact, thanks.
welcome
Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
Hello LOGICPRO" need some help.
yes, let me know.
This is Customer : I need help with previous codes that you wrote can you rewrite the codes in NetBeans
**LOGICPRO*cN YOU REWRITE CODES IN NETBEANS FOR ME ,This is Customer : I need help with previous codes that you wrote can you rewrite the codes in NetBeans
, **LOGICPRO*cN YOU REWRITE CODES IN NETBEANS FOR ME ,This is Customer : I need help with previous codes that you wrote can you rewrite the codes in NetBeans
Which code you want me to write aagin?
CAN YOU PUT THIS IN NETBEANS.
import java.util.Scanner;public class Wk4SalespersonCommissionModified { //fixed salary private final int salary = 30000; //sales private double sales; private String name; //added from other student's code //constructor publicWk4SalespersonCommissionModified(double sales) { this.sales = sales; } //get annual compensation public double annualCompensation() { return salary + commissionOnSales(); } //methods to get salary and sales amount public int getSalary() { return salary; } public double getSales() { return sales; } public double commissionOnSales() { double incentive=0; final double targetSales=120000; if(sales>=targetSales) { incentive=sales*.05; incentive = incentive * 1.1; } else if(sales>=(targetSales*.80) ) { incentive = sales*.05; } else incentive=0; //currentcommission rate is 5% return incentive; } publicWk4SalespersonCommissionModified() { } //added in week 4 to prompt for name of sales person from other student's code public String getName() { return name; } public void setName(String name) { this.name = name; } public void promptForName() { String str = null; Scanner scanner = new Scanner(System.in); System.out.print("Please enter the name of SalesPerson: "); str = scanner.nextLine(); setName(str); }import java.util.ArrayList;import java.util.Scanner;public class Driver { public static void main(String[] args) { /* * Modify the Week Three Java™application using Java NetBeans IDE to meet these additional and changed business requirements: The application will now compare thetotal annual compensation of at least two salespersons. It will calculate the additionalamount of sales that each salesperson must achieve to match or exceed thehigher of the two earners. The application should ask for thename of each salesperson being compared. */ /*****************************Changed per merging with othr student's********************/ Scanner input = new Scanner(System.in); SalespersonCommissionModified sc1= new SalespersonCommissionModified(); sc1.promptForName(); String name1 = sc1.getName(); /*****************************End change ********************/ /* The application should ask the user to enter annual sales, and itshould display the total annual compensation.*/ System.out.print("Enter annual sales of firstsalesperson: $"); double sales1 =input.nextDouble(); /*****************************Changed per merging with othr student's********************/ SalespersonCommissionModified sc2 = new SalespersonCommissionModified(); input = newScanner(System.in); sc2.promptForName(); String name2 = sc2.getName(); /*****************************End change ********************/ /* The application should ask the user to enter annual sales, and it should display the total annual compensation.*/ input = newScanner(System.in); System.out.print("Enter annual sales of secondsalesperson: $"); double sales2 =input.nextDouble(); /*The application should also display a table of potential total annual compensation that the salesperson couldhave earned, in $5000 increments above the salesperson’s annual sales,until it reaches 50% above the salesperson’s annual sales.*/ double compensation=0,compensation1=0,compensation2=0; //The source code must demonstrate the use of Array or ArrayList. ArrayList al1 = new ArrayList(); al1.add("\nSalesperson: "+name1); al1.add("Total Sales Total Compensation"); // do int count=0; for(int i=(int)sales1;i<=(sales1*1.5);i=i+5000) { sc1 = new SalespersonCommissionModified(i); compensation=sc1.annualCompensation(); if(count==0)compensation1 = compensation;count++; al1.add(sc1.getSales()+"\t"+compensation); } ArrayList al2 = new ArrayList(); al2.add("\nSalesperson: "+name2); al2.add("Total Sales Total Compensation"); // do count = 0; for(int i=(int)sales2;i<=(sales2*1.5);i=i+5000) { sc2 = new SalespersonCommissionModified(i); compensation=sc2.annualCompensation(); if(count==0)compensation2 = compensation;count++; al2.add(sc2.getSales()+"\t"+compensation); } for(int i=0;i<al1.size();i++) { System.out.println(al1.get(i)); } for(int i=0;i<al2.size();i++) { System.out.println(al2.get(i)); } if(compensation1>compensation2){ System.out.println("Salesperson "+name2+"'s additional amount of sales that he must " +" achieve to match or exceed the higher of the salesperson "+name1); System.out.println("$"+(sales1-sales2)); }else if(compensation2>compensation1) { System.out.println("Salesperson "+name1+"'s additional amount of sales that he must " +" achieve to match or exceed the higher of the salesperson "+name2); System.out.println("$"+(sales2-sales1)); } else { System.out.println("Both have same compensation"); } }}
Apologies. I was offlineupload the file to http://wikisend.com and post download link here. Formatting is messed up.