Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You own a car dealers and you want to do the following 1. Create a salesman class with the following private variables a. Name b.

You own a car dealers and you want to do the following 1. Create a salesman class with the following private variables a. Name b. MonSales c. TueSales d. GoldStatus (boolean achieved when sales are greater than a cutoff) 2. A static variable salesCutoff

3. Create a method to determine the value of total sales for the week 4. Create a method to determine GoldStatus 5. Create a toString method that returns a message describing a salesmans name, total sales and GoldStatus

Test Class

1.In a main method create 5 objects of the Salesman class and add the objects to an ArrayList. 2.Print the details from the list. 3.Print the results of the methods below.

Make another class called SalesValues

It has a private variable : private List sellers;

It has a constructor that takes an ArrayList of salesmen objects.

It should have a method that calculates and returns the total sales for each day and another that calculates the weekly sales

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

Students also viewed these Databases questions

Question

2. What type of team would you recommend?

Answered: 1 week ago