<p> Name:Mildred C Davis</p><p>Week 3 iLab—Calculate Overtime Pay</p><p>TCO 3—Given a simple problem, design and desk-check a solution algorithm requiring a modular design that is expressed in terms of pseudocode or program notes, input-process-output (IPO) analysis, and flow chart.</p><p>TCO 4—Given a simple problem that requires one or more decisions, create a working solution that uses decisions with logical and relational expressions.</p><p>TCO 8—Given a more complex problem, develop a complete solution that includes a comprehensive statement of the problem, complete program design, and program documentation.</p><p>Assignment </p><p>You will need to design an application that it will prompt a user for his or her hourly pay rate; his or her hours worked; and whether he or she is single, married, divorced, or widowed. It will then calcu- late the user’s gross and net pay. If the user works more than 40 hours, overtime is calculated at 1 ½ times the regular rate and displayed separately. If he or she is married, use a flat tax rate of 15%. If he or she is single, use 22%; if he or she is divorced, use 23%; and if he or she is widowed, use 13% (I realize that these are not very realistic). Below is a sample of what the program should do when run.</p><p>(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</p><p>(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 </p><p>Complete the steps and submit the completed file to the Dropbox. 1) Variable list & IPO chart 2) Flowchart 3) C# code</p><p>Please submit this file along with the complete project folder (in a zip file).</p><p>Game Seating Charges</p><p>Document Points possible Points received</p><p>Variable list & 10 IPO Chart</p><p>Flowchart 15</p><p>Working 25 program</p><p>Total Points 50 1) Variable List & IPO Chart</p><p>List all variables you will use (use valid variable names). Indicate whether the data type is string, integer, or double, and so on. hourlyRate double hoursWorked double maritalStatus string</p><p>List the inputs, any processes/calculations, and outputs. Use the same valid variable names you used in Step 1.</p><p>Inputs Process (calculations) Outputs hourlyRate If (martialStatus== “M”) then grossPay hoursWorked taxRate= MARRIED RATE netPay maritalStatus Else if (maritalStatus==”S”) then taxRate=SINGLE RATE if overtime Else if (martialStatus==”W”) then grossPay taxRate= WIDOWED RATE netPay Else taxRate= DIVORCED RATE overtimePay</p><p>If (hoursWorked<=40) then grossPay=hoursWorked*hourlyRate else regularPay=40*hourlyRate overtimePay= (hoursWorked-40) *hourlyRate*1.5 grossPay=regularPay+overtimePay</p><p> taxRate= grossPay*taxRate netPay= grossPay-taxAmount 2) Flowchart</p><p>Use MS Visio to create a flowchart. Paste the flowchart here, or attach it as a separate document. Use the same valid variable names you used in Step 1.</p><p>3) C# Code Screen Shot of Running Program Zipped Project File (submitted to DropBox)</p><p>Copy/paste your C# code here.</p><p>Paste a screenshot of the complete working program here. Submit a separate zipped file to the Dropbox containing the complete project folder.</p>
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages7 Page
-
File Size-