computer science

Step 3: Part C
iLab Part C: Payroll Program
Step 1: Create a New Project
Create a new project and name it LAB1C. Make sure you close your previous program by clicking File >> Close Solution.
This time, do not delete the code that gets automatically created. Instead, insert your code right between the curly braces, as illustrated below.

static void Main(string [] Args)
{
// your code goes here!
}

Include a comment box like what you coded in Part B. This can go at the very top of your program.

You will write a program that calculates and displays the take-home pay for a commissioned sales employee along with all of the deductions based on the Processing Logic provided in Step 2.

Step 2: Processing Logic

Input: Prompt the user for the weekly sales
Process: Perform the calculations. The employee receives 7% of her total sales as her gross pay. Her federal tax rate is 18%. She contributes 10% to her retirement program and 6% to Social Security.
Output: Display the results
Sample Output from Lab 1:
Enter Weekly Sales: 28000
Total Sales: $28,000.00
Gross pay (7%): $1,960.00
Federal tax paid: $352.80
Social security paid: $117.60
Retirement contribution: $196.00
Total deductions: $666.40

Take home pay: $1,293.60
Press any key to continue . . .
Flowchart:




Pseudo Code:

1. Declare variables
2. Accept Input – weeklySales
3. Calculate Gross Pay = Weekly Sales * .07
4. Calculate Federal Tax = Gross Pay * .18
5. Calculate Social Security = Gross Pay * .06
6. Calculate Retirement = Gross Pay * .1
7. Calculate Total Deductions = Federal Tax + Social Security + Retirement
8. Calculate Total Take Home Pay = Gross Pay – Total Deductions
9. Display the following on separate lines and format variables with $ and decimal
a. Total Sales Amount: value of weekly sales
b. Gross Pay (.07): value of gross pay
c. Federal Tax paid (.18): value of federal tax
d. Social Security paid (.06): value of social security
e. Retirement contribution (.1): value of retirement
f. Total Deductions: value of total deductions
g. Take Home Pay: value of take home pay

Step 3: Save program
Save your program by clicking File on the menu bar and then clicking Save Program.cs, or by clicking the Save button on the toolbar, or Ctrl + S.

Step 4: Build Solution
To compile the program, click Build on the menu bar and then click the Build Solution or Build LabC option. You should receive no error messages. If you see some error messages, check the code above to make sure you didn’t key in something wrong. Once you make your corrections to the code, go ahead and click Build >> Build Solution again.

Step 5: Execute the program
Once you have no syntax errors, to execute or run your program, click Debug on the menu bar, and then click Start Without Debugging.

Step 6: Capture the output

1. Capture a screen print of your output [Do a PRINT SCREEN and paste into an MS Word document].
2. Copy your code and Paste it into the same MS Word document that contains the screen print of your output.
3. Save the Word Document as CIS170A_Lab01_C_LastName_FirstInitial
End of PART C
END OF LAB

  1. 👍 0
  2. 👎 0
  3. 👁 72

Respond to this Question

First Name

Your Response

Similar Questions

  1. VB

    I am new here; say to everyone first. Here is the a question for coding list box; it has two part: first part: Create a project that stores personal information for a little electronic "black book"; the fields in the file should

    asked by austin on November 16, 2011
  2. science

    which statements describe a part of the create step within the engineering design process? A. B. C. D. E.

    asked by ava on September 13, 2019
  3. English

    I had submitted a project and failed it and had gotten the chance to resubmit it for a better grade. I am so confused about how I messed up and is wondering if anyone could walk through it with me? The project is: create a

    asked by Alexia Smith on April 18, 2016
  4. Math

    3(-5)squared -2/-5(2)/2 squared I don't get the second part but... any number squared is positive so 3(-5) squared is 3x25 if only (-5) is squared. If the whole thing is squared then multiply first, (3x-5) then squared the answer.

    asked by Sam on September 25, 2006
  5. Math

    I am currently doing a question in which the equation is dN1/dt= -N1 + 0.1N1*N2 However, I am able to follow until the step of -N1(1 - 0.1N2) after that I'm not able to follow to the step of (-1)N1 (1-N2/10) Can someone please

    asked by Sally on April 24, 2018
  6. UOP

    The final project for HSM 240 is a 1,750- to 2,100-word proposal paper on a social program that you create. Pretend that you have the power and capacity to create an agency or organization and decide to create a new social

    asked by Tina on November 21, 2010
  7. Chemistry

    I am working on a five-part question and I just need help with the last part. I'm not sure where to begin with that one. I pasted the question and answers (for a-d) to the other parts below. Thank you! Consider the proposed

    asked by Lisa on April 14, 2015
  8. Programming

    Write a program to do the following: In main, declare a Player Name Array and a Score Array. Declare the size of the arrays to be 100. In the InputData( ) method, input the player name and score into the arrays for an unknown

    asked by Anna on April 1, 2011
  9. science

    I don't fully understand this could you help? In this section, you will create a step-by-step procedure for testing and monitoring the number of trout and catfish in Cypress Pond. You must monitor them once per month for 12 months

    asked by Turtle on March 10, 2019
  10. Math !!!!!!!!

    Ok i have a Summer Math Assignment & i really need help on this qs. it's part B of the qs. so i'll show you the whole thing Part 2. Extended Reponse Qs. (2 points each) Answer each qs.. Show all Work Qs. 5 Adrian correctly solved

    asked by Gen on September 5, 2011

More Similar Questions