Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Pease use Matlab 1. Write a menu-driven program that will read in an employee data base for a company from a file, and do specified

Pease use Matlabimage text in transcribed

1. Write a menu-driven program that will read in an employee data base for a company from a file, and do specified operations on the data. The file stores the following information for each employee: Name Department Birth Date Date Hired Annual Salary Office Phone Extension You are to decide exactly how this information is to be stored in the file. Design the layout of the file, and then create a sample data file in this format to use when testing your program. The format of the file is up to you However, space is critical. Do not use any more characters in your file than you have to! Your program is to read the information from the file into a data structure, and then display a menu of options for operations to be done on the data. You may not assume in your program that you know the length of the data file. The menu options are 1. Print all of the information in an easy-to-read format to a new file. 2. Print the information for a particular department. 3 Calculate the total payroll for the company (the sum of the salaries). 4. Find out how many employees have been with the company for N years N might be 10, for example]. 5. Exit the program. 1. Write a menu-driven program that will read in an employee data base for a company from a file, and do specified operations on the data. The file stores the following information for each employee: Name Department Birth Date Date Hired Annual Salary Office Phone Extension You are to decide exactly how this information is to be stored in the file. Design the layout of the file, and then create a sample data file in this format to use when testing your program. The format of the file is up to you However, space is critical. Do not use any more characters in your file than you have to! Your program is to read the information from the file into a data structure, and then display a menu of options for operations to be done on the data. You may not assume in your program that you know the length of the data file. The menu options are 1. Print all of the information in an easy-to-read format to a new file. 2. Print the information for a particular department. 3 Calculate the total payroll for the company (the sum of the salaries). 4. Find out how many employees have been with the company for N years N might be 10, for example]. 5. Exit the program

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions