PayrollProgramPart1

PayrollProgramPart1 - /* * To change this template, choose...

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 payroll.program.part.pkg1; /** * * @author JANAYA */ /** * @param args the command line arguments */ import java.util.Scanner; //Imports the java utility that allows the program to scan the classes public class PayrollProgramPart1 //Public class defiend by programmer { public static void main(String args[]) { Scanner input = new Scanner(System.in); //This creates the scan to look for input from the user System.out.println(); //A blank println command prints a simple blank line System.out.println(); //The following three lines display text and instructions for the user System.out.printf("Payroll Program Part 1\n"); System.out.printf("This program will determine the employees weekly pay.\n"); System.out.println(); float Hours; //Declare the variable "Hours" as a float allowing a decimal to be entered float Rate; //Declares Rate to alllowing decimal to be entered float WeekPay; //Declares the final wee's pay variable as a float allowing
Background image of page 1

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

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

This note was uploaded on 08/14/2011 for the course IT 215 taught by Professor Danielreddy during the Spring '11 term at University of Phoenix.

Page1 / 2

PayrollProgramPart1 - /* * To change this template, choose...

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