Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I have a menu with options to manipulate an ordered link list of payroll objects

ID: 657186 • Letter: I

Question



I have a menu with options to manipulate an ordered link list of payroll objects. I am unsure if I have done the functions (2nd picture) correctly and how to implement them in the main program according to my teachers requirements(1st picture). Any help would be appreciated.

Search for employee Payroll data User will input the employee number of the employee If found the employee name, employee number and associated payroll information will be printed If not found, an appropriate message should be displayed Update Payroll data Provide the user the ability to update the pay rate or hours worked for an employee's Payroll object Provide the ability to search by employee number Store the updates the user enters for the Payroll object Run Payroll Confirm if the user wants to run payroll for a specific department Process the pay amount for each Payroll object in the department Print the entrie Payroll List Print out the number of Payroll objects that are in the current list Print out all the employee and payroll information for each payroll object in the list Print a department Payroll List Print out the number of Payroll objects that are in the department specified by the user Print out all the employee and payroll information for each payroll object in the department Exit Ensure the program appropriately handles logic for each menu item when the linked list is empty void PrintByDepartment(const orderedLinkedList& L, int department) { cout

Explanation / Answer

it seems correct for the most part. just ask for the users requirement from the main function and according to the need call your valid function. the best thing you have done is that you have already seperated your methods. so that you can call them individually.