Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

this is the text meant to be in the txt file. ( exclude the labels, please put them in the code ) EmpID Name HrWk

image text in transcribed

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. Exit

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2014 Nancy France September 15 19 2014 Proceedings Part 2 Lnai 8725

Authors: Toon Calders ,Floriana Esposito ,Eyke Hullermeier ,Rosa Meo

2014th Edition

3662448505, 978-3662448502

More Books

Students also viewed these Databases questions

Question

What is 0 1 0 1 1 1 0 1 if it is ones compliment

Answered: 1 week ago