Name your solution hw5.cpp. Unlike the prior assignments, there is only one program for this assignment. Email the file to my Helios account to submit it.
This program features a simple employee paycheck calculator. Multidimensional arrays will be used to store the employee names, their pay rate and how many hours they worked each day of the week. You will have the following arrays:
Use the following menu for the program:
Welcome to the Employee Paycheck Calculator =========================================== 1. Add employee record(s) to the database 2. Print all employee records 3. Print the paycheck for one employee 4. Print paychecks for all employees 0. Exit =========================================== Enter selection:Like Homework 3, your switch() statement in main() should call functions to do each task instead of doing the tasks in main(). The arrays should all be declared in main's scope and be passed to the functions. You will have the following functions:
Index Name Rate M Tu W Th F Sa Su 0 John Smith 10.50 8 8 8 8 8 0 0 1 Jane Doe 10.50 0 8 8 8 8 8 0 2 John Doe 8.90 0 8 8 8 8 8 0
Employee: John Doe Rate: 8.90 Weekly Pay: 356