WebAs for the pseudo-code, you could break it into two lines/calculations pay = / overtime = and then add them together, you could break out hours and overtime hours, and/or add … WebSep 5, 2024 · Pseudo code: 1. declare a variable "hour_worked". 1.1 read the hours worked in a day by user and assign it to "hour_worked". 2.Calculate total work in a five-day week as "Week_work=5*hour_worked". 3.Calculate total work in a 252-day year as "year_work=252*hour_worked". 4. print the value of "Week_work" and "year_work". 5.End …
Pseudo code to calculate gross and net pay for employees
WebFeb 23, 2024 · Pseudocode is used to show how a computing algorithm should work. Coders often use pseudocode as an intermediate step in programming in between the … WebStep 1 of 4 The following is the required Pseudo code that gives the outputs of working hour in five-day week and the hours worked in 252 days work year. start Declarations num hours num fiveDay num year output “enter the value of hours worked in a day” input hours fiveDays = 5 * hours year = 252 * hours output fiveDays, year stop mountainview social club
Answered: Write a psuedocode algorithm to… bartleby
WebImplement function wage () that takes two arguments: an hourly wage and the number of hours an employee worked in the last week. Your function should compute and return the employee’s pay. Any hours worked beyond 40 is overtime and should be paid at 1.5 times the regular hourly wage. WebThen they would earn $30/hr for the 20 hours they worked overtime. Therefore, they earned: ($20/hr * 40hrs) + ($30/hr * 20 hrs) = $800 + $600 = $1400 total. For this assignment, you must create pseudocode and a flowchart to design a program that will calculate an employee’s weekly paycheck. WebFeb 18, 2010 · Sample 4 Computing Weekly Wages Gross pay depends on the pay rate and the number of hours worked per week. However, if you work more than 40 hours, you get paid time-and-a-half for all hours worked over 40. Pseudo-code the task of computing gross pay given pay rate and hours worked. 8. Code 1. mountainview social club belfast