Employee Data

Employee Data - terminationDate = in.next(); //Print report:

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package employeedata; import java.util.Scanner; /** * * @author Manny */ public class EmployeeData { /** * @param args the command line arguments */ public static void main(String[] args) { // Input System.out.println("Please enter employees full name(first, last)"); Scanner in = new Scanner(System.in); String fullName = in.nextLine(); System.out.println("Executive or Hourly?"); String exOrHourly = in.nextLine(); double workingHours = 0; String status = ""; String terminationDate = ""; if(exOrHourly.equalsIgnoreCase("hourly")) { System.out.println("How many hours does the employee work?"); workingHours = in.nextDouble(); System.out.println("Temporary or Permantent?"); status = in.next(); if(status.equalsIgnoreCase("temporary")) { System.out.println("What is the final day of employee?");
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: terminationDate = in.next(); //Print report: System.out.println("New Employee: " + fullName); System.out.println("Type: Hourly"); System.out.println("Hours: " + workingHours); System.out.println("Final Day: " + terminationDate); } else if(status.equalsIgnoreCase("permanent")) { System.out.println("New Employee: " + fullName); System.out.println("Type: Hourly"); System.out.println("Hours: " + workingHours); } else { System.out.println("Wrong input, please start again"); System.exit(0); } } else if(exOrHourly.equalsIgnoreCase("Executive")) { System.out.println("New Employee: " + fullName); System.out.println("Type: Executive"); } else { System.out.println("Wrong input, please start again"); System.exit(0); } } }...
View Full Document

This note was uploaded on 12/07/2011 for the course BUS 350 taught by Professor Leighjin during the Fall '11 term at S.F. State.

Page1 / 2

Employee Data - terminationDate = in.next(); //Print report:

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online