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, 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 creates another file to store the names of the employees whose ages are over 30 years. T employee.txt - Notepad ~ — o File Edit Format View Help Ahmed 33 Ali 37 hasan 4 mohammed kamal 55 bassam 25 hussam 22 1.5e+06 1.6e+06 1.7e+06 43 1.8e+06 1.9e+06 900000 800000 100% Windows (CRLF) UTF-8
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 creates<br>another file to store the names of the employees whose ages are over 30 years.<br>employee.txt - Notepad<br>File Edit Format View Help<br>Ahmed<br>33<br>1.5e+06<br>Ali<br>37<br>1.6e+06<br>hasan<br>40<br>1.7e+06<br>mohammed<br>43<br>1.8e+06<br>kamal<br>55<br>1.9e+06<br>bassam<br>25<br>900000<br>hussam<br>22<br>800000<br>100%<br>Windows (CRLF)<br>UTF-8<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 creates another file to store the names of the employees whose ages are over 30 years. employee.txt - Notepad File Edit Format View Help Ahmed 33 1.5e+06 Ali 37 1.6e+06 hasan 40 1.7e+06 mohammed 43 1.8e+06 kamal 55 1.9e+06 bassam 25 900000 hussam 22 800000 100% Windows (CRLF) UTF-8

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here