Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello, i need help with this code Programming Exercise 9-4 | Instructions Salespersonava Salespersonsor...+ 1 public class Salesperson In Chapter 8, you created a Salesperson

Hello, i need help with this codeimage text in transcribedimage text in transcribed

Programming Exercise 9-4 | Instructions Salespersonava Salespersonsor...+ 1 public class Salesperson In Chapter 8, you created a Salesperson class with fields for an ID number and sales values. Now, 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 (I)D number or (S)ales value. private int d private double sales 5 Salesperson (int idNum, double ant) Grading salesant; Write your Java code in the area on the right. Use the Run button to compile and run the code. Clicking the Run Checks button will run pre-configured tests against your code to calculate a grade. public int getId() return d 12 13 4public double getsales() 15 16 17 18 public void setId(int idNum) 19 20 21 22 public void setSales(double ant) 23 24 25 26 27 28 29 30 Once you are happy with your results, click the Submit button to record your score return sales sales ant

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

Database Fundamentals Study Guide

Authors: Dr. Sergio Pisano

1st Edition

B09K1WW84J, 979-8985115307

More Books

Students also viewed these Databases questions

Question

What does Processing of an OLAP Cube accomplish?

Answered: 1 week ago