Q2: Suppose that the file (employee.txt) shown in the figure was stored in the default path, the data stored in this file is employee's name (string), his age (integer), and his salary (double); this...


Q2: Suppose that the file (employee.txt) shown in the figure was stored in the default path,<br>the data stored in this file is employee's name (string), his age (integer), and his salary<br>(double); this data is stored for unknown number of employee. Write a program that uses a<br>function which receives a file stream object of the file (employee.txt) and then it ereates<br>another file to store the names of the employees whose ages are over 30 years.<br>Вy C++<br>employee be-Notepad<br>Fin Edr Fomat View Help<br>Ahmed<br>Al1<br>hasan<br>33<br>37<br>40<br>1.5e+06<br>1.6e+e6<br>1.7e+86<br>noharmed<br>43<br>1.Be-86<br>kamal<br>55<br>1.9e+06<br>bassam<br>25<br>9000ee<br>hussam<br>22<br>100% Windows (CRLF)<br>UTF-B<br>

Extracted text: Q2: Suppose that the file (employee.txt) shown in the figure was stored in the default path, the data stored in this file is employee's name (string), his age (integer), and his salary (double); this data is stored for unknown number of employee. Write a program that uses a function which receives a file stream object of the file (employee.txt) and then it ereates another file to store the names of the employees whose ages are over 30 years. Вy C++ employee be-Notepad Fin Edr Fomat View Help Ahmed Al1 hasan 33 37 40 1.5e+06 1.6e+e6 1.7e+86 noharmed 43 1.Be-86 kamal 55 1.9e+06 bassam 25 9000ee hussam 22 100% Windows (CRLF) UTF-B

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here