• You are a software engineer at Google • Sergey Brin and Larry Page have asked you to write a new payroll system for their executive management team
Tudor Grange Academy
Homework task
• There are 10 executives on the payroll at Google • Each executive gets paid $10,000 per hour apart from Larry and Sergey, who get $50,000 per hour • Larry and Sergey want the program to calculate an executive’s annual salary based on their hourly rate • Note: Google executives don’t pay tax so PAYE/NI doesn’t need to be included • What questions might you have about this problem to help you refine it?
Tudor Grange Academy
• Here is the information you have been given:
• Executives at Google work a variable number of hours in a day, but they all work 364 days a year (they get one day off for Christmas) • The daily number of hours worked can be an average, input by the user • The bit about 10 executives is for your information. You don’t need to use this (yet) • Now go ahead and code the problem!
Tudor Grange Academy
• Sergey and Larry have given you the following useful information
• Sergey and Larry are very pleased with your work however they are ambitious individuals and are always wanting to make improvements • They have said that your program would be even better if it:
• Allowed you to calculate an executive’s weekly, monthly and annual salary • Outputs the total pay for all executives for a weekly / monthly / yearly payroll
Tudor Grange Academy
EXTENSION TASK