Description : This is a converting statements part of a hypothetical program to pseudocode.
Create a flowchart OR pseudocode for the following scenario:
You are working on creating a program to collect hours worked for the last two weeks. This program will also need to collect the hourly rate of the employee and then calculate both the base pay and any overtime pay for the employee. After finishing the calculation for one employee, it should ask for the next or offer a way to quit the program.
Simplified instructions:
Design a program, using pseudocode OR a flowchart that will do the following:
Accept input for an employee name
Accept input for 2 weeks worth hours
Accept input for the hourly rate
Calculate the base pay of each week and the total of both weeks
Calculate any overtime pay of each week and the total of both weeks
Output the gross pay for each week
Output the overall pay for all weeks entered
Continue to the next employee
NOTE: Anything greater than 40 hours in a week is overtime. Overtime is calculated at 1.5 time the base pay.
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference
and should not be submitted as is. We are not held liable for any misuse of the solutions.
Please see the frequently asked questions page
for further questions and inquiries.
Kindly complete the form.
Please provide a valid email address and we will get back to you within 24 hours.
Payment is through PayPal, Buy me a Coffee
or Cryptocurrency.
We are a nonprofit organization however we need funds to keep this organization operating
and to be able to complete our research and development projects.