Question
CODE IN C++ PLEASE: Use a file to solve this program and include comments Design and Implement a program that will read from a file
CODE IN C++ PLEASE: Use a file to solve this program and include comments
Design and Implement a program that will read from a file all the elements needed to fill/ INPUT DATA for the entire structure for up to- 25 Employees
OUTPUT: All the contents of the struct.
NOTE: Use #include
Below i will post the structs that will be used in the code:
struct employeeType
{
nameType name;
string empID;
addressType address;
dataType hireDate;
dataType quitDate;
contactType contact;
string deptID;
double salary;
};
struct nameType
{
string first;
string middle;
string last;
};
struct addressType
{
string address1;
string address2;
string city;
string state;
string zip;
};
struct dataType
{
int month;
int day;
int year;
};
struct contactType
{
string phone;
string cellphone;
string fax;
string pager;
string email;
};
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started