Question
this is the text meant to be in the txt file. ( exclude the labels, please put them in the code ) EmpID Name HrWk
this is the text meant to be in the txt file. ( exclude the labels, please put them in the code ) EmpID Name HrWk RateofPay 1001 Joe 26 37.50 1003 Tom 26 45.75 1004 John 41 62.50 This is my current code, please assist me. ( Leave notes so I'm able to follow :) )
#include
#include
#include
#include
using namespace std;
ifstream input; // UNIVERSAL VARIABLE (CAN BE CALLED UPON IN ANY FUNCTION)
void menu(char user_selection){ // MENU TEXT READ
cout
cout
cout
cout
cout
cout
switch (user_selection) // MENU
{
case '1':
case '2':
case '3':
case '4':
cout
}
}
void read(){ // READS THE TXT FILE
string temp;
for(int i= -1; i
getline(input, temp);
cout
}
int main() { // Opens file
ifstream input;
string temp;
input.open("data_ex.txt");
}
}
Practice Challenge Write a C++ menu driven program to do the following: Print a Menu to do the following 1. Read from the text file below 2. Process - Calculate the gross Pay, net Pay (All payroll Tax is 11.5%) 3. Print your output to a file. 4. Print Check 5. ExitStep 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