A complete program

A complete program - Acompleteprogram /*ID block +-+ +...

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

View Full Document Right Arrow Icon
A complete program /*ID block    + -----------------------------------------------------+ + Programmer : Peter Perfect + + Course : Computer Science 1 + + Assignment : Sample Program + + Due Date : 18 March 2007 + +------------------------------------------------------ Program statement * This program will calculate salary for one hourly employee. * ************************ Analysis ***************************** 1. Data needed Name (Full name first and last) SSN (No – needed read it as a long number) Hours worked Hourly pay rate   2. Constants given Federal tax rate 10% flat rate Social Security Tax rate 5% flat rate State tax rate 4% flat rate   3. Calculations Assumptions:  No over time is paid, Federal tax is calculated first, social security is  next, and finally state taxes, in addition the taxes already paid are subtracted from  salary before taxing next stage Calculate Gross salary  Calculate Federal taxes Calculate Social Security taxes
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.

Page1 / 3

A complete program - Acompleteprogram /*ID block +-+ +...

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