Computers and Technology, 22.09.2020 01:01 jared2461
Create an application that allows a user to enter values for an array of seven Salesperson objects. Offer the user the choice of displaying the objects in order by either ID number or sales value. Save the application as SalespersonSort. java
This is the code for Salesperson class:
public class Salesperson
{
private int ID;
private double annualSales;
public Salesperson(int ID, double annualSales)
{
this. ID = ID;
this. annualSales = annualSales;
}
public int getID()
{
return ID;
}
public void setID(int ID)
{
this. ID = ID;
}
public double getAnnualSales()
{
return annualSales;
}
public void setAnnualSales(double annualSales)
{
this. annualSales = annualSales;
}
public String toString()
{
return "Salesperson ID: " + ID + ", annual sales: " + annualSales;
}
}
Answers: 1
Computers and Technology, 22.06.2019 20:00
What is the term for water wave that is created by an underwater earthquake
Answers: 1
Computers and Technology, 24.06.2019 15:30
How do i change the size of my bookmarks in my bookmarks bar in google chrome? ? plz hlp me
Answers: 2
Computers and Technology, 25.06.2019 08:00
When date is processed into a meaningful form, i becomes
Answers: 1
Create an application that allows a user to enter values for an array of seven Salesperson objects....
History, 22.06.2021 18:10
Mathematics, 22.06.2021 18:10
World Languages, 22.06.2021 18:10
Mathematics, 22.06.2021 18:10
Mathematics, 22.06.2021 18:10
Business, 22.06.2021 18:10
History, 22.06.2021 18:10
Mathematics, 22.06.2021 18:10
Mathematics, 22.06.2021 18:10
Computers and Technology, 22.06.2021 18:10
Mathematics, 22.06.2021 18:10
Social Studies, 22.06.2021 18:20