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

  Write down a program which determines the bonus that must

write a program that determines the bonus that should be paid to employees. bonuses are determined based on the years

  Own file to test your program

Create your own file to test your program. Your job is to set up the input and output files to have the program read from a file and write to a file. Here is a basic program that will accomplish what is desired

  Socket programming in java tcpgoal in this project we will

socket programming in java tcpgoal in this project we will develop a web server in two steps. in the end you will have

  Compare the readability and writability of for loop in java

Search the internet about the properties of the for loop in Ada, compare the readability, writability and reliability of the for loop in Ada and Java. Explain your answer

  Cloud computing outline

Cloud computing is one of the biggest catchphrases in the Information Technology world. Virtualization is the core technology behind cloud resource sharing. The deployment strategy involved in a cloud environment includes the components of grid co..

  Create a book class which stores the information

You run a small library. Ask the user to provide information for several books. The information must include the author, title and publisher of each book.

  Make a fourth button called special

Make a fourth button called "special" that does something else notdescribed in the assignment, such as change the background color.

  Java method that contains code to be executed

Write a short Java method that contains code for which it is probably impossible for that code to ever be executed, but your favorite Java compiler does not detect this fact.

  Implement the finite field gf

Write a program called "GF2.java" to implement the finite field GF(p n )where p is a prime number andn is a positive integer.You also need to write four methodsto realize.

  Create a new savings account

You are a bank manager and you are helping a new bank teller understand the kind of accounts the bank offers. If a customer comes in asking to open a new savings account, the teller needs to ask what kind of account-passbook savings or certificate..

  Modify your server to make it multithreaded your server

modify your server to make it multithreaded. your server should allow more than one client to connect and request

  String as its parameter and returns the length

Write a method named longestWord that accepts a String as its parameter and returns the length of the longest word in the string.A word is a sequence of one or more non-space characters (any character other than the space character).

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