Lab 2 - following format Hours Worked 10.0 Pay Rate $6.75...

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

View Full Document Right Arrow Icon
lab2 October 16, 2007 1 Objectives Java input and output Use existing Class in Java SDK Numerical computation Documentation and formating 2 Lab description In this lab assignment, you are required to write a simple Java program that reads the following information and prints a payroll statement: Employee’s name (e.g., Smith) Number of hours worked in a week (e.g., 10) Hourly pay rate (e.g., 6.75) Federal tax withholding rate (e.g., 20%) State tax withholding rate (e.g., 9%) After getting the inputs, the program shall print out a payroll state in the
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: following format: Hours Worked: 10.0 Pay Rate: $6.75 Gross Pay: $67.5 Deductions: Federal Withholding (20.0%): $13.5 State Withholding (9.0%): $6.07 Total Deduction: $19.57 Net Pay: $47.92 You shall write this program in TWO versions: (a) Use dialog boxes to obtain input and display output; (b) Use console input and output. 1 3 submission • your source code • write a report following the instruction in syllabus. 2...
View Full Document

This note was uploaded on 04/29/2008 for the course CS 101L taught by Professor Vineyard during the Fall '07 term at Kettering.

Page1 / 2

Lab 2 - following format Hours Worked 10.0 Pay Rate $6.75...

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