A_complete_program

A_complete_program - /A complete program /*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 s next, and finally state taxes, in addition the taxes already paid are subtracted from s salary before taxing next stage Calculate Gross salary Calculate Federal taxes Calculate Social Security taxes Calculate State taxes Calculate total taxes Calculate Net salary
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 02/04/2011 for the course CSCI 101 taught by Professor Ghyam during the Spring '08 term at USC.

Page1 / 2

A_complete_program - /A complete program /*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