Lab 4 Pseudo Code - Set Net Pay Label to = Net Pay Set Net...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CS10502_10 Lab 4 Due: 5/7/07 Pseudo Code 1. User Interface (attached) 2. Button Click Event a. Declared Variables i. Employee Name (String) ii. Hourly Wage (Decimal) iii. Hours of Missed Work (Decimal) iv. Base Pay (Decimal) v. Missed Hours Percentage (Decimal) vi. Penalty or Bonus (Decimal) vii. Net Pay (Decimal) viii. Total Hours Worked (Decimal) b. Error Check User Input c. Assign User Input i. Employee Name ii. Hourly Wage iii. Weekly Hours of Missed Work d. Calculations i. Total Hours Worked = 40 – Hours of Missed Work ii. Missed Hours Percentage = Hours of Missed Work / 40 iii. Base Pay = Total Hours Worked * Hourly Wage iv. If Missed Hours Percentage <= .035 Then Set Penalty or Bonus Label to = Visible Set Penalty or Bonus Label to Visible = True Set Penalty or Bonus Label to = “Bonus” Set Penalty or Bonus Textbox to Visible = True Bonus = .50 * Total Hours Worked txtPenaltyOrBonus.Text = Bonus Set Net Pay Label to Visible = True
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Set Net Pay Label to = Net Pay Set Net Pay Textbox to Visible = True Net Pay = Base Pay + Bonus txtNetPay.Text = Net Pay v. Else If Missed Hours Percentage >= .25 Then Set Penalty Label to = Visible Set Penalty or Bonus Label to Visible = True Set Penalty or Bonus Label to = Penalty Set Penalty or Bonus Textbox to Visible = True Penalty = 5 * Weekly Hours of Missed Work txtPenaltyOrBonus.Text = Penalty Set Net Pay Label to Visible = True Set Net Pay Label to = Net Pay Set Net Pay Textbox to Visible = True Net Pay = Base Pay Penalty txtNetPay.Text = Net Pay vi. Else Missed Hours Percentage > .035 And < .25 No Bonus or Penalty vii. End If e. Display Output i. Employee Name ii. Hourly Wage iii. Total Hours Worked iv. Hours of Missed Work v. Missed Hours Percentage vi. Base Pay vii. Bonus or Penalty viii. Net Pay...
View Full Document

This homework help was uploaded on 04/11/2008 for the course CS 105 taught by Professor Dianaspringer-lund during the Spring '07 term at Central Washington University.

Page1 / 2

Lab 4 Pseudo Code - Set Net Pay Label to = Net Pay Set Net...

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