there are blanks in the question as the pro gramme need some codes and definitions to get completed.
Please help me in completing this problem.
than x in advance.
#include <iostream.h>
#include <conio.h>
#include <fstream.h>
//---------------function prototypes-----------------------------------------
int menu();
void screenHold();
void enter();
void report();
void save();
void load();
//Global variable to hold number of employees
int numOfEmployees = 0;
char name [10][80]; //array holds employee names
char phone[10][20]; //array holds phone numbers
float hours[10]; //hours worked per employee
float wage[10]; //hourly rate per employee
int main()
{
Complete the code here -- do-loop or while-loop
return 0;
}
//------------------------------------------------------------------
//---------------------function definitions-------------------------
//Display menu
int menu()
{
Complete the code here -- Page 5 top
return choice;
}
//Enter Information
void enter()
{
//clear the screen
system(“cls”);
cout <<"How many employees do you want to enter\n";
cin >> numOfEmployees;
//Ignore the carriage return line feed
cin.ignore();
Complete the code here -- For-loop
}
//Display report
void report()
{
for(int j = 0; j < numOfEmployees; j++)
{
Complete the code here -- 3(or 4) lines Page 6 top
screenHold();
}
}
void screenHold()
{
cout <<"\nPress any key to continue\n";
getch();
}
void save()
{
//Create a file stream and attach it to a file
ofstream out;
out.open("employee.bin",ios::out|ios::binary);
out.write((unsigned char*)(&name), sizeof(name));
Complete the code here
system(“cls”);
cout <<"Data written to file\n";
screenHold();
out.close();
}
void load()
{
//create an input stream and attach to file
ifstream in;
in.open("employee.bin",ios::in|ios::binary);
in.read((unsigned char*)(&name), sizeof(name));
Complete the code here
in.read((unsigned char*) (&numOfEmployees), sizeof(numOfEmployees));
system(“cls”);
cout <<"Data read from file\n";
screenHold();
in.close()