{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

CS_program3 - double 4 Your employee report should have the...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 110A Program 3 Completion Date: __________ Rule \handouts\pgm3 Workers at a particular company have won a 7.6% pay increase, retroactive for six months. Write a program that inputs the previous annual salary of an employee and outputs the amount of retroactive pay due, the new annual salary, and the new monthly salary. Use a declared constant for the pay increase rate. Your program should process one employee for each Run; that is, do not use a loop. Requirements: 1. Include header comments that give the following information: source file name your last name, your first name 110A - your section number Task of program 2. Include step comments for the major logic sections of your program. 3. Declare all variables and the declared constant to be type
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: double . 4. Your employee report should have the following format: line 1: previous annual salary line 2: retroactive pay due the employee line 3: new annual salary line 4: new monthly salary Note that each output item is to be printed on a separate line and preceded by an appropriate label. Print one blank line between the data entry and the employee report. 5. Use good programming style; that is, vertically align the matching braces, indent the block of statements, and use whitespace (blank lines in your program) judiciously. 6. Run the program twice using 100,000 and 50,000 as your data....
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online