Home / Expert Answers / Computer Science / ho-and-complete-the-question-s-that-follow-eduvos-recently-hired-interns-who-had-completed-their-pa955

(Solved): ho and complete the question(s) that follow: Eduvos recently hired interns who had completed their ...




ho and complete the question(s) that follow:
Eduvos recently hired interns who had completed their Higher Certificate degree.
ho and complete the question(s) that follow: Eduvos recently hired interns who had completed their Higher Certificate degree. You are one of those interns. You have been tasked to develop a C++ program that will calculate the net pay for each of the interns. You have been provided with a textfile called interns.txt with the following intern details: employee number, name, sex, gross pay, and deductions. Below are the contents of the file: 0 X interns.txt-Notepad File Edit Format View Help 100,Sheunesu Makura, male, 5000,400 101,Sibongile Mandela, female, 6500, 500 102, Refilwe Ramodike, female, 7500, 345 103,Werner Van der Walt,male, 4000, 415 104,Ayanda Dimbaza, female,6850,436 Ln 5, Coll 100% Windows (CRLF) UTF-8 Figure 4-Interns.txt file Source: Makura S.M (2022) Question 5 Develop a C++ program using the information provided in the above scenario. The program must consist of two functions namely interns () and ladies (). The interns (1 function must initially read, from the interns.txt, records containing the following fields. employee number, name. sex, gross pay, and deductions. The program must then calculate the net pay for each intern using the formula nett pay = gross pay-deductions. The employee number, name, sex (m/f), gross pay, and deductions of the women interns whose net pay is greater than R6000, must be written to a ladies.txt file. The ladies function must simply read all the records in the ladies.txt file and print them out Make use of these and sigma methods to perform the input/output operations.


We have an Answer from Expert

View Expert Answer

Expert Answer


#define _CRT_SECURE_NO_WARNINGS #include #include #include using namespace std; //Function to read from file interns.txt file int interns(); //function to read from file ladies.txt file and print the info from file void

We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe