A company needs a computer program to store data about its employees. Part of the program is being written using object-oriented programming. The class Employee stores data about the employees. Each employee has an employee number, a job title and hourly pay rate. The class will also store the amount they are paid each week over a 52-week year in a 1D array. Employee HourlyPay : REAL stores the amount each employee gets paid each hour EmployeeNumber : STRING stores the employee's unique number JobTitle : STRING stores the employee's job title PayYear2022 : ARRAY[0:51] OF REAL stores the amount the employee has been paid each week Constructor() initialises HourlyPay, EmployeeNumber and JobTitle from the values passed as parameters initialises all 52 elements in PayYear2022 to 0.0 GetEmployeeNumber() returns the employee number SetPay() takes the week number and number of hours worked that week as parameters calculates and stores the pay for that week in PayYear2022 GetTotalPay() returns the total of all the values in PayYear2022
✓ Correct Answer
The correct answer is —. This question tests the candidate's understanding of object-oriented programming within the Computer Sciencesyllabus. The examiner's mark scheme requires...
📋 Examiner Report & Trap Analysis
Common mistake: 62% of candidates selected the distractor because they confused... The examiner specifically designed this question to test whether students can differentiate between... To secure full marks, candidates must demonstrate...
Unlock the Examiner's Answer
Sign up for free to reveal the correct answer, the official mark scheme breakdown, and the examiner trap analysis for this question.
Sign Up Free to Unlock →Join thousands of Cambridge students already using Oracle Prep