|
||||||||||
copyright © 2006 Don Southwell - All rights reserved |
|
||||||||||
copyright © 2006 Don Southwell - All rights reserved |
Structured Data and Abstract Data Types Lab Your Mission: Write a program that uses a structure to store the following data for each month:
The program should create an array of 5 structures to hold employee data. When the program runs, it should ask the user to enter data for each employee. Once the data are entered for all employees, the program should display the employee records, the highest and lowest paid employees, and the total annual payroll. Algorithmic suggestion: You can use this if you wish or go it alone. // Written by: Date: #include <iostream> //define structure void displayData(Employee); // Function prototype const int SIZE = 5; int main() { // Function call with structure variable as an argument //function to display the employee records. Receives a single employee structure and outputs the fields. |
! You are using a version 4 browser or older. If you are experiencing any problems with scrolling, please reload the page.