Calculate total annual compensation of a salesperson

Assignment Help JAVA Programming
Reference no: EM131069278

This program was designed using NetBeans IDE. The program is intended to calculate total annual compensation of a salesperson. Below is the code that was used to develop the program with the reasons each was used. This program was then tested in NetBeans and ran in NetBeans to determine if the program runs correctly after being built. The program was successfully ran in NetBeans and also in Windows command prompt as shown in the screen shots.

CODE

/*

 * To change this license header, choose License Headers in Project Properties.

 * To change this template file, choose Tools | Templates

 * and open the template in the editor.

 */

packagecommissioncalculation;

// This program will calculate the total annual compensation of a salesperson.

importjava.util.Scanner;

/**

 *

 * @author Michael Formet

 */

public class CommissionCalculation

{

    /**

     * @paramargs the command line arguments

     */

    // This is the beginning of the main method

public static void main(String[] args)

    {

          // always print your last name as the first output of your program

System.out.println("Formet");

        Scanner input = new Scanner(System.in);

        // This method displays the salesperson's fixed annual salary

doublemonthlySalary= 30000; // Salesperson's fixed monthly salary

doubleannualSalary= monthlySalary * 12; // Salesperson's fixed annual salary , 12 represents months in a year

System.out.println("The Salesperson earns a fixed monthly salary of $"+ monthlySalary + ".");

System.out.println("The Salesperson earns a fixed annual salary of $"+ annualSalary + ".");

        // This method displays the salesperson's commission rate

int commission= 5;

System.out.println("The Salesperson will receive a commission of "+ commission + "%.");

        // Creates Scanner to collect annual sales input from salesperson

doubleannualSales; // Salesperson's annual sales

System.out.print("Enter annual sales: ");

annualSales = input.nextDouble();

doublecommissionCalc; // Calculates commission of annual sales

doublepercentCalc = commission/100.0; // Makes commission calculable

commissionCalc = annualSales * percentCalc;

System.out.println("The annual sales of the salesperson is $"

                          + commissionCalc + " using a " + commission

                          + "% commission.");

doubletotalAnnualSum; // Salesperson's total annual compensation

totalAnnualSum = annualSalary + commissionCalc;

System.out.println("The total annual compensation of the salesperson "

                         + "is: $" + totalAnnualSum + ".");

    } // end main method

}

Attachment:- CommissionCalculation.rar

Reference no: EM131069278

Questions Cloud

Computing the book closing line : In an inevitable climactic twist, it will turn out that the Catholic Church had nothing to do with anything. The real villain does not dress in scarlet or purple but is better known for being green. He has lured the flies to Italy for lunch. Who i..
Describe database backup : This paper will be 5 pages total: (a) Describe Database Backup. (b) Describe Disaster Planning. (c) Highlight the importance of the integration of both backups and disaster planning and the impact if both are not effectively executed.
Stability of the islamic financial system : Evaluation of the reasons behind the stability of the Islamic financial system during the recent financial crisis
Tiny lettering on a lily pad : The first clue, found inscribed in tiny lettering on a lily pad, will read, "Fruit flies like a banana". It is signed by "Ferret Goth Kim" but, remind me, who is it that first came out with this quote?
Calculate total annual compensation of a salesperson : Develop the program with the reasons each was used. This program was then tested in NetBeans and ran in NetBeans to determine if the program runs correctly after being built.
Responsibility and corruption on elm avenue : How does the authormostdevelop Howard's character over the course of the passage in the story "Responsibility and Corruption on Elm Avenue" by Corbitt Nesta?
Piece of fiction or nonfiction literature : Be sure that you have indeed compared or contrasted your novel choice to another piece of fiction or nonfiction literature from the same time period.
Problem regarding the ethical controversy : Identify a current ethical controversy that you want to learn more about in business, media, technology, medicine, or bioethics. Write a three-page analysis on the major sides in the controversy. In your analysis paper, you need to:
What are the primary sources of revenue for health care : What are the primary sources of revenue for health care? Can you explain revenue cycle management and how it affects the amount of revenue generated and cash flow for a health care entity?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd