i really need some help as soon as possible, if anyone could possibly help me i would greatly appreciate it. here is what i need to do: write a program for an company with approximately 26 employees, the paymaster want a program that will store all employee names in a sequential file along with address info, pay rate, number of dependents, martial status and a dollar amount which is a deduction for the company 401k plan.
part one of the program allows him to add employees to the sequential file. part two of the program reads the sequential file, and for each employee, asks for the hours worked for the pay period and calculated the pay and displays the info on the screen. part three fo the program reads the sequential file and displays the info to the screen in a report format.
the program must use at least 3 functions, the switch statement, the repetition structure and the decision structure. the programshould open giving the operator choices for the three options or close the program. when an option is selected and completed the menu should display again and allow the user to make another choice or the choice to quit the program completely.
Now here is what i have so far
CODE
#include <iostream>
#include <iomanip>
#include <string>
#include <fstream>
using namespace std;
//const int maxNumberOfEmployee = 26;
//void getEmployeeData(ifstream& infile, employeeName, employeeList[], int numberOfEmployee);
//void printppayReports(ofsteam& outfile, employeeName employeeList [], int numberOfEmployee, double payRate);
int main()
{
string fName;
sring lName;
string address;
int noOfDependents;
char mstatus;
double deduction;
double payRAte;
double hoursWorked;
int count;
count = 0;
ifstream inFileData;
inFileData.open("EMPLOYEE INTO.txt")
while(!inFileData.eof())
{
inputData(infileDAta, fName, lName, payRate, hoursWorked, address, mstatus, deductin);
processPay(payRAte, hoursWorked, deduction);
printEMPLOYEE INFO(fName, lName, payRate, hoursWorked, deduction, address, mstatus)
}
infileDAta.close();
do
{
cout << "Enter the First Name: ";
cin >> fName;
cout << endl;
cout << "Enter the Last Name: ";
cin >> lName;
cout << endl;
cout << "Enter the address: ";
cin >> address;
cout << endl;
cout << "Enter M(arried) or S(ingle): ";
cin >> mstatus;
cout << endl;
cout << "How much you want us to deduct for 401k plan?";
cin >> deduction;
cout << endl;
cout << "Enter the amount of hours worked: ";
cin >> hoursWorked;
cout << endl;
count - count + 1;
}
while(count <=26);
NOW CAN SOMEONE PLEASE HELP ME FIGURE OUT THE REST BY THE END OF TONIGHT!!!!!
edit: modified title, added [code] tags ~ jayman9