19.08.2015 Views

CIS 115 Week 3 Exercise (Devry)

For more course tutorials visit www.cis115.com Week 3 Activity – Calculate Overtime Pay TCO #4 – Given a simple business problem that requires one or more decisions, create a solution algorithm that uses decisions with logical and relational expressions. TCO #9 – Given a program with logic errors that is intended as a solution to a simple business problem, employ debugging diagnostics to remove and correct the errors. Assignment: You will need to design an application that it will prompt a user for their hourly pay rate, their hours worked, and whether they are single, married, divorced, or widowed. It will then calculate their gross and net pay. If they work more than 40 hours, overtime is calculated at 1 ½ times the regular rate and displayed separately. If they are married, use a flat tax rate of 15%. If they are single, use 22%, if they are divorced, use 23%, and if they are widowed, use 13% (I realize that these are not very realistic). Here is a sample of what the program should do when run: (No overtime example) Enter hourly pay rate: 10.00 Enter hours worked: 35 Enter letter for (M)arried, (S)ingle, (D)ivorced, (W)idowed: M Gross pay is $350.00 Net pay is $297.50 (Overtime example) Enter hourly pay rate: 10.00 Enter hours worked: 45 Enter letter for (M)arried, (S)ingle, (D)ivorced, (W)idowed: S Regular pay is $400.00 Overtime pay is $75.00 Gross pay is $475.00 Net pay is $370.50 Rubric: When completed staple the following documents together neatly in 1,2,3,4 order: 1) This instruction sheet first 2) The IPO Chart, second 3) The Pseudocode, third 4) The Flowchart and output example last. Point distribution for this application: Calculate Overtime Pay Document: Points possible: Points received IPO Chart 5 Pseudocode 5 Flowchart and output 10 Total Points 20 IPO Chart: Input Processing Output Pseudocode: Begin calculateOvertimePay End Flowchart: Example Output after execution:

For more course tutorials visit
www.cis115.com

Week 3 Activity – Calculate Overtime Pay TCO #4 – Given a simple business problem that requires one or more decisions, create a solution algorithm that uses decisions with logical and relational expressions. TCO #9 – Given a program with logic errors that is intended as a solution to a simple business problem, employ debugging diagnostics to remove and correct the errors. Assignment: You will need to design an application that it will prompt a user for their hourly pay rate, their hours worked, and whether they are single, married, divorced, or widowed. It will then calculate their gross and net pay. If they work more than 40 hours, overtime is calculated at 1 ½ times the regular rate and displayed separately. If they are married, use a flat tax rate of 15%. If they are single, use 22%, if they are divorced, use 23%, and if they are widowed, use 13% (I realize that these are not very realistic). Here is a sample of what the program should do when run: (No overtime example) Enter hourly pay rate: 10.00 Enter hours worked: 35 Enter letter for (M)arried, (S)ingle, (D)ivorced, (W)idowed: M Gross pay is $350.00 Net pay is $297.50 (Overtime example) Enter hourly pay rate: 10.00 Enter hours worked: 45 Enter letter for (M)arried, (S)ingle, (D)ivorced, (W)idowed: S Regular pay is $400.00 Overtime pay is $75.00 Gross pay is $475.00 Net pay is $370.50 Rubric: When completed staple the following documents together neatly in 1,2,3,4 order: 1) This instruction sheet first 2) The IPO Chart, second 3) The Pseudocode, third 4) The Flowchart and output example last. Point distribution for this application: Calculate Overtime Pay Document: Points possible: Points received IPO Chart 5 Pseudocode 5 Flowchart and output 10 Total Points 20 IPO Chart: Input Processing Output Pseudocode: Begin calculateOvertimePay End Flowchart: Example Output after execution:

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>CIS</strong> <strong>115</strong> <strong>Week</strong> 3 <strong>Exercise</strong> (<strong>Devry</strong>)Click Here to Buy the Tutorialhttp://www.cis<strong>115</strong>.com/product-38-<strong>CIS</strong>-<strong>115</strong>-<strong>Week</strong>-3-<strong>Exercise</strong>For more course tutorials visitwww.cis<strong>115</strong>cis<strong>115</strong>.com<strong>Week</strong> 3 Activity – Calculate Overtime Pay TCO #4 – Given a simplebusiness problem that requires one or more decisions, create asolution algorithm that uses decisions with logical and relationalexpressions. TCO #9 – Given a program with logic errors that isintended as a solution to a simple business problem, employdebugging diagnostics to remove and correct the errors. Assignment:You will need to design an application that it will prompt a user fortheir hourly pay rate, their hours worked, and whether they are single,married, divorced, or widowed. It will then calculate their gross andnet pay. If they work more than 40 hours, overtime is calculated at 1½ times the regular rate and displayed separately. If they are married,use a flat tax rate of 15%. If they are single, use 22%, if they aredivorced, use 23%, and if they are widowed, use 13% (I realize thatthese are not very realistic). Here is a sample of what the programshould do when run: (No overtime example) Enter hourly pay rate:10.00 Enter hours worked: 35 Enter letter for (M)arried, (S)ingle,(D)ivorced, (W)idowed: M Gross pay is $350.00 Net pay is $297.50(Overtime example) Enter hourly pay rate: 10.00 Enter hours worked:45 Enter letter for (M)arried, (S)ingle, (D)ivorced, (W)idowed: SRegular pay is $400.00 Overtime pay is $75.00 Gross pay is $475.00Net pay is $370.50 Rubric: When completed staple the followingdocuments together neatly in 1,2,3,4 order: 1) This instruction sheetfirst 2) The IPO Chart, second 3) The Pseudocode, third 4) TheFlowchart and output example last. Point distribution for this


application: Calculate Overtime Pay Document: Points possible:Points received IPO Chart 5 Pseudocode 5 Flowchart and output 10Total Points 20 IPO Chart: Input Processing Output Pseudocode:Begin calculateOvertimePay End Flowchart: Example Output afterexecution:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!