Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

Programming Assignment

I. The Assignment

American Veeblefetzer, Inc. is a multinational distribution company. Each month it pays its sales force according to a formula that uses the employee's monthly sales, number of years with the company, and rank.

The formula is as follows:

1. For sales amounts between $100,000 and $200,000 inclusive, the sales commission is 1% of sales. For amounts over $200,000 and up to $300,000, 1.5%. For amounts over $300,000 and up to $400,000, 1.75%. For amounts over $400,000, 2%.

These percentages are based on the total sales and not just on the incremental amounts.

(Note that although there is no sales commission if the amount sold is below $100K, the salesperson is still eligible for the other commissions.)

2. Each salesperson also receives a commission of 1/10 of 1% of sales for each year with the company, up to a maximum of 1% at 10 years or more.

3. Salespersons also have a rank of Apprentice, Junior, or Senior. Apprentices receive no rank incentive, while Juniors receive 0.1% of sales and Seniors 0.2%.

Write a CommissionCalculator class to compute the monthly commission earned by a salesperson, given the salesperson's name, total sales, years of service with the company, and rank. Also write a class to test your CommissionCalculator class.

II. The CommissionCalculator Class - Specifications

1. Instance variables of the class include the salesperson's name, total monthly sales, years of service with the company, and rank. The rank is to be stored as a single- character String, where "1" = Apprentice, "2" = Junior and "3" = Senior.

2. The class constructor will initialize the instance variables to data passed by the user of the class, and the class will also have separate methods to

i. return a String containing all of the data values
ii. compute and return the commission

3. The String returned by method i., above, must be neat and easy to read, with one data item per line, and each data item properly labeled. The total sales must be formatted as U.S. currency (with $ and 2 decimal places)

4. Assume valid data! I.e. do not write code to "error check" the user inputs.

III. The Test Class - Specifications

Your test class will perform the following operations in the order listed:

1. Prompt the program user for the salesperson's name, monthly sales, years of service, and rank code, and create an object using the data entered.

2. Call the method that returns the data entered and print the string returned.

3. Call the method that computes and returns the commission and print it, formatted as U.S. currency.

IV. What to Upload

Upload a zip file (format .zip only) containing your project folder. When your zip file is "unzipped" there must be a ready-to-run NetBeans project or you will lose substantial credit. It's unfair to expect our graders to locate your .java files and create a project for you in order to grade your assignment.
 See "Submitting Your Assignments" in Unit 0.
 No need to include any output. Your program will be tested extensively, which of course you should do before submitting it. How many different possibilities are there that must be tested? (This is not a rhetorical question).

Java, Programming

  • Category:- Java
  • Reference No.:- M92399250
  • Price:- $15

Priced at Now at $15, Verified Solution

Have any Question?


Related Questions in Java

Retail price calculatorwrite a java program that asks the

Retail Price Calculator Write a JAVA program that asks the user to enter an item's wholesale cost and its markup percentage. It should then display the item's retail price. For example: (If an item's wholesale cost is 5. ...

Assignment taskwrite a java console application that allows

Assignment task Write a java console application that allows the user to read, validate, store, display, sort and search data such as flight departure city (String), flight number (integer), flight distance (integer), fl ...

Assessment database and multithread programmingtasktask 1

Assessment: Database and Multithread Programming Task Task 1: Grade Processing University grading system maintains a database called "GradeProcessing" that contains number of tables to store, retrieve and manipulate stud ...

Assessment socket programmingtaskwrite a java gui program

Assessment: Socket Programming Task Write a JAVA GUI program that would facilitate text chatting/exchanging between two or multiple computers over the network/internet, using the concept of JAVA socket programming. If yo ...

Project descriptionwrite a java program to traverse a

Project Description: Write a java program to traverse a directory structure (DirWalker.java) of csv files that contain csv files with customer info. A simple sample in provided in with the sample code but you MUST will r ...

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 ...

Assignment - java program using array of objectsobjectives

Assignment - 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 Menu ...

Part a specification - robot simulationpart a

PART A Specification - Robot Simulation PART A Requirements To complete this assignment you will use the supplied eclipse project Robot P1/. It is already set up to execute a simple arm movement loop which you will build ...

Project requirementsfor the problem described in the next

Project requirements For the problem described in the next section, you must do the following: 1. include your student ID at the end of all filenames for all java code files. Three classes have been identified in section ...

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. ...

  • 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