Question: Write a program to do the following: 1 . Declare a struct of persons. The struct members will be First Name, Last Name, City, Age

Write a program to do the following:
1. Declare a struct of persons. The struct members will be
First Name, Last Name, City, Age
2. Declare a struct of employees. The struct members will be:
Persons (the previous struct), Salary, years in Service.
3. Your program will create an array of employees. The size of the array si 20.
4. Read the info into the array from an input file.
5. Add 2 to the age of each employee, Then print the complete info into an outfile. The outfile must be one line per employee. The newline must be after each employee record is printed.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!