Homework 5 - Multidimensional Arrays

Due: Friday, November 14, 2008 at 5:00pm

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:

The arrays should all be partially filled arrays for the number of "rows", but will have a fixed number of "columns" for the multidimensional 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: You may add additional functions if you desire.