Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

The instructions are as follows:

Modify the Week Three Java application using 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 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.
Submit your Java application file using the Assignment Files tab.

Here is what my week 3 is and I add your information and it doesn't work.
/*Individual Week 2 Java Assignment

package commission;
importjava.util.Scanner;
/**
*
* @author Kr5975
*/
public class Commission {
/**
* @paramargs the command line arguments
*/

public static void main(String[] args) {

Scanner sc = new Scanner(System.in);
System.out.println("Enter the Total Annual Sales of the Person");// Request for User Input for Annual Sales
intannualsales = sc.nextInt();// Read the input as Integer and assign it to annualsales variable
System.out.println("With an Annual Salary of $100,000 and 5 % commision on total annual sales" );//display the salary and commision rate

Salesperson sp = new Salesperson(annualsales);//To create an Instance of a new sales person


System.out.println("The Annual Compensation is " + sp.getTotalAnnualCompensation());
//Calculates the annual compensation and gives the output

// TODO Auto-generated method
int salary =100000;
System.out.println("Total Sales Total Compensation");
for(int i =100000;i<=150000;i=i+5000){
if(i>=0.8*120000){
salary+=0.05*i;
System.out.println("tiny_mce_markerquot;+i +" ttiny_mce_markerquot;+salary);
}
else if (i>120000){
salary+=0.05*1.25*i;
System.out.println("tiny_mce_markerquot;+i +" ttiny_mce_markerquot;+salary);
}
else{
System.out.println("tiny_mce_markerquot;+i +" ttiny_mce_markerquot;+salary);
}
}

}
}

package commission;
/**
*
* @author KR5975
*/
public class Salesperson {

// fixed salary variable
doublefixedSalary;
// variable of the value of salepersons annual sales
doubleannualSales;
//commission earned
double commission;
public Salesperson(double annualSales){
this.annualSales=annualSales;
commission=0.05*annualSales;//The current commission is 5% of total sales.
fixedSalary=100000;//The set fixed salary is $100000
}
public double getTotalAnnualCompensation(){// Calculate total annual compensation this is the fixed salary and add the commission earned
returnfixedSalary+commission;
}
}

Java, Programming

  • Category:- Java
  • Reference No.:- M91893665

Have any Question?


Related Questions in Java

Simple order processing systemquestion given the classes

Simple Order Processing System Question: Given the classes Ship (with getter and setter), Speedboat, and SpeedboatTest. Answer the following questions: Refine the whole application (all classes) and create Abstract class ...

In ruby the hash class inherits from enumerable suggesting

In Ruby, the Hash class inherits from Enumerable, suggesting to a programmer that Hashes are collections. In Java, however, the Map classes are not part of the JCF (Java Collections Framework). For each language, provide ...

Answer the following question whats the difference public

Answer the following Question : What's the difference public inheritance and private inheritance? What can derived classes inherit from base classes? What cannot be inherited from base classes?

Object-oriented software development1 introduction 11

OBJECT-ORIENTED SOFTWARE DEVELOPMENT 1. Introduction 1.1 Assignment Requirement 1.2 Deliverables and Structure (what to submit) 1.3 Software Restrictions 1.4 How to score high... 1.5 Assumptions 2. System Requirements 2. ...

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

Operating systems assignment -problem 1 sharing the bridgea

Operating Systems Assignment - Problem 1: Sharing the Bridge A new single lane bridge is constructed to connect the North Island of New Zealand to the South Island of New Zealand. Farmers from each island use the bridge ...

Assessment -java program using array of Assessment -JAVA Program using array of objects

Assessment -JAVA Program using array of objects Objectives This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details For this assignment, you are required to develop a Windowed G ...

In relation to javaa what is constructor the purpose of

(In relation to Java) A. What is constructor? the purpose of default constructor? B. How do you get a copy of the object but not the reference of the object? C. What are static variables and instance variables? D. Compar ...

Can someone help me please with those question1what is the

Can someone help me please with those question 1:what is the best data type for student id datatime,currency,number,decimal 2:which relationshipis preferable? one to one,one to many,many to many 3:if you add table A's pr ...

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As