Question: Lab9 Lab exercise Computing III - 9 1. There is text file (testl.txt) which contains multi-line data including the name John at multiple lines as

Lab9Lab9 Lab exercise Computing III - 9 1. There is text file

Lab exercise Computing III - 9 1. There is text file (testl.txt) which contains multi-line data including the name "John" at multiple lines as follows. John is a good student. He studies regularly for 8 hours daily and attends to every lecture in school. John wants to be a computer programmer. John is also a great sportsman. Open a new file (test2.txt) replacing the name "John" with "Smith", 2. Assume that a text file (text3.txt) stores employee data as follows 1001,John,Jones,Sales, 10000 1002,Jane, Smith,Production,8000 1003,Keith, Marshall,CustomerService,7000 1004,Pat, Wallace,Sales, 9000 The fields are separated by comma. The fields are employee number, first name, last name, department name and salary. Write a program which fetches the first name and salary of the employee based on input of employee number

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!