Preview

PRG/420 Week 3

Good Essays
Open Document
Open Document
1025 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
PRG/420 Week 3
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package commission2; import java.lang.*; import java.text.DecimalFormat; import java.util.Scanner;

/* * @author * Week 3 Individual Assignment * Assignment: Simple Commission Calculation Project Part 2 * Due Date: */ public class AnnualCompensationCalculator { /** * main method begins program execution */ public static void main(String args[]) { String firstName; // Get user 's first name String lastName; // Get user 's last name int salary; // User 's fixed annual salary double commissionRate; // User 's commission rate double sales; // User 's annual sales double totalCommission; // User 's total commission earned double totalCompensation; // User 's total compensation // Display welcome message System.out.println("Hello, welcome to the Simple Commission " + "Calculator."); // Insert a blank line System.out.println(); // Create a Scanner object to read input Scanner keyboard = new Scanner(System.in); // Get user credentials System.out.println("Please enter your first name."); firstName = keyboard.nextLine(); System.out.println("Please enter your last name."); lastName = keyboard.nextLine(); // Insert a blank line System.out.println(); // Display user information System.out.println("Hello, " + firstName + " " + lastName + "."); System.out.println("Your annual salary is $50,000 and your commission " + "rate is 5%."); System.out.println("If this is not correct, please contact your HR " + "Representative.");

You May Also Find These Documents Helpful

  • Good Essays

    Proj586 Week 4

    • 660 Words
    • 3 Pages

    What is your total budget for this project? Was the project within the budget as set forth by the board of directors?…

    • 660 Words
    • 3 Pages
    Good Essays
  • Better Essays

    Week 5 Qnt351

    • 1843 Words
    • 8 Pages

    The instrument used to collect data from all 449 employees at DMC except upper management was an employee survey (UOPX Library, para 11). The survey was administered anonymously and at-will to 449 employees, and distributed with employee bimonthly paychecks within a six-week time frame. Only 78 responses out of 449 were returned to HR, which is a 17.3% response rate by the employees.…

    • 1843 Words
    • 8 Pages
    Better Essays
  • Best Essays

    Cmgt 430 Week 2

    • 1585 Words
    • 7 Pages

    University of Phoenix (2005). Huffman Trucking Service Request SR-ht-001. Materials section. Retrieved February 08, 2011, from https://ecampus.phoenix.edu/secure/aapd/cist/…

    • 1585 Words
    • 7 Pages
    Best Essays
  • Powerful Essays

    Gm 520 Week 3

    • 2283 Words
    • 10 Pages

    2. Douglas Margreiter was severely injured in New Orleans on the night of April 6, 1976. He was the chief of the pharmacy section of the Colorado Department of Social Services and was in New Orleans to attend the annual meeting of the American Pharmaceutical Association. On Tuesday evening, April 6, Mr. Margreiter had dinner at the Royal Sonesta Hotel with two associates from Colorado who were attending the meeting and were staying in rooms adjacent to Mr. Margreiter 's in the New Hotel Monteleone. Mr. Margreiter returned to his room between 10:30 p.m. and 11:00 p.m.; one of his friends returned to his adjoining room at the same time. Another friend was to come by Mr. Margreiter 's room later to discuss what sessions of the meetings each would attend the next day.…

    • 2283 Words
    • 10 Pages
    Powerful Essays
  • Satisfactory Essays

    The objective is to successfully convert the United States Army Medical Department from EMR to AHLTA. There are trainers that are set in place to ensure that the staff receives their full attention and that they also feel comfortable with the software. The outcome of this would be to have the ability to easily communicate electronically regarding patients and is up to date with today’s advanced technology which will allow the compliance with government standards as well as high reimbursement for every office. . While being trained the staff should feel very comfortable when working with the software and to ensure that this happens a questionnaire is given for feedback.…

    • 655 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Week 5 Acct 420

    • 886 Words
    • 4 Pages

    Ex 9-2 1 D 2 A 3 C 4 D 5 D 6 B 7 B 8 D 9 C 10 A Ex 13-1 1 B 2 D 3 C 4 A 5 C 6 D 7 D 8 B 9 A 10 A 9-10.…

    • 886 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Pt1420 week 2

    • 320 Words
    • 3 Pages

    1. Design an algorithm that prompts the user to enter his or her height and stores the user’s input in a variable named height.…

    • 320 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Prg421 Week 2 Ia

    • 565 Words
    • 3 Pages

    RIGHT) ; tfItemName = new JTextField();…

    • 565 Words
    • 3 Pages
    Satisfactory Essays
  • Better Essays

    Prg/420 Week 5

    • 958 Words
    • 4 Pages

    This tutorial is designed to provide you with an understanding of the Java Calendar class, it’s backgrounds, purpose and uses. It is created in such a manner as to allow even beginning Java programmers an understanding and feel for the uses of the Java Calendar class. The Java Calendar class was added to the Java Development Kit in JDK 1.1. It is designed to permit the conversion between a specific instance in time and a set of Calendar fields. (Oracle, 2004, 2010) What exactly does this mean? The Calendar class uses a huge array of tables to keep track of time based on daylight savings time, timezones, and calendar history, the calendar class uses a system time to determine where whatever event is being tracked falls on in the internal calendar tables. Some confusion is caused by this as Java does keep track of specific location time, and the programmer needs to keep this in mind when using the Calendar class even when it isn’t relevant to the problem being addressed (Roedy Green, Canadian Mind Products, 1196-2011).…

    • 958 Words
    • 4 Pages
    Better Essays
  • Powerful Essays

    POS 421 Week 1

    • 1116 Words
    • 5 Pages

    When it comes to installing Microsoft Windows Server 2008 R2, there are many different server roles that this software operating system has to offer. The first one is Active Directory Certificate Services and Active Directory Domain Services. Active Directory is a huge component when it comes to a server. This service has all the information about all of the users, the computers, and any other device that is connected to the network. The Active Directory assists IT professionals with being able to manage all of this information, and allows them to be able to facilitate any sharing that is going on between any end user in the company. Another role is the Active Directory Federation Services. This lets users have a web sign in capability, that lets users authenticate to different web applications by just logging in with one single user account. Another role that this has is the application server. This is a major role because the server can be used to hose and manage all of the critical business applications that the company needs to use. One major component also is the DHCP server, which the Windows Server does play a huge role in. The DHCP server is what assigns an IP address to any machine that is connecting to the network. This is critical because if the machine can’t get an IP address, then they won’t be able to communicate with the network. Along with the DHCP server, another role is the capability of being the fax server. This is self-explanatory, the fax server allows the company to send and receive faxes, and also allows IT personnel to be able to manage these jobs, or any settings or reports that are needed to be shown. Another major role is file services. The server basically holds all of the companies information, or software shares, so that when there is the need for a new install, or an employee needs a new piece…

    • 1116 Words
    • 5 Pages
    Powerful Essays
  • Better Essays

    Psy 428 Week 4 Individual

    • 1204 Words
    • 5 Pages

    The improving organizational performance simulation is about Airdevils Incorporated, which is a professional stunt company in Salt Lake City, Utah. This paper will cover a description of the four phases of the simulation to include a description of each situation, the recommended solution, and the results. A discussion will take place of the organizational psychology concepts in the simulation. Some items to address consist of theories of employee motivation to increase productivity, how to use knowledge of human behavior, cognition, and affect to enhance relationships in the workplace, and how organizations can reduce workplace stressors for employees. The purpose of the simulation is to determine methods that will increase the level of job satisfaction in the stunt workers.…

    • 1204 Words
    • 5 Pages
    Better Essays
  • Satisfactory Essays

    Psy 460 Week 2

    • 536 Words
    • 3 Pages

    The research study measured whether music therapy along side with visual imagery would decrease chemotherapy-induced anxiety and nausea-vomiting in patients going through chemotherapy. Researchers Karagozoglu, Tekayasar and Yilmaz (2013) sampled forty participants in the study, participants were provided with a document where they dispelled personal information, the Spielberger State-Trait Anxiety Inventory, a visual scale and a form to evaluation for nausea and vomiting (Karagozoglu, Tekyasar, and Yilmaz, 2013). The researchers used the same participants throughout the entire study. The results were significant which supported the hypothesis that music therapy along with visual imagery can cause a decrease chemotherapy-induced anxiety and nausea vomiting in chemotherapy patients. The study can support the notion that visual imagery can result in a form of relieving pain or stress.…

    • 536 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    HTML Codes

    • 1539 Words
    • 7 Pages

    import java.io. *; public class mark { public static void main(String[]args)throws IOException { BufferedReader dataIn=new BufferedReader(new InputStreamReader(System.in)); System.out.println(" Jollibee "); System.out.println("********************************************************************"); System.out.println("* MENU *"); System.out.println("* Burger And Sandwiches | Chickenjoy *"); System.out.println("* CODE Meal | CODE Meal *"); System.out.println("* 1 B1 | 6 C1 *"); System.out.println("* 2 B2 | 7 C2 *"); System.out.println("* 3 B3 | 8 C3 *"); System.out.println("* 4 B4 | 9 C4 *"); System.out.println("* 5 B5 | 10 C5 *"); System.out.println("* | *"); System.out.println("* Noodles | Rice Meal *"); System.out.println("* CODE Meal | CODE Meal *"); System.out.println("* 11 N1 | 17 RM1 *"); System.out.println("* 12 N2 | 18 RM2 *"); System.out.println("* 13 N3 | 19 RM3 *"); System.out.println("* | 20 RM4 *"); System.out.println("* Jollibee Kids Meal | 21 RM5 *"); System.out.println("* CODE Meal | 22 RM6 *"); System.out.println("* 14…

    • 1539 Words
    • 7 Pages
    Satisfactory Essays
  • Good Essays

    Java Progamming

    • 7830 Words
    • 32 Pages

    Exercise CheckPassFail (if-else): Write a program called CheckPassFail which prints "PASS" if the int variable "mark" is more than or equal to 50; or prints "FAIL" otherwise.…

    • 7830 Words
    • 32 Pages
    Good Essays
  • Satisfactory Essays

    Aadhar Card Case Study

    • 855 Words
    • 4 Pages

    Once completing that part. The next field is to input the full name. Moreover, make sure that it is the exact same name without spelling mistake.…

    • 855 Words
    • 4 Pages
    Satisfactory Essays

Related Topics