Question: Create file name emp.txt in this format: = = = = = = = = = = = = = = = = = =

Create file name emp.txt in this format:
==================================
123 John D. Doe
4500 IT
432 Sarah S. Smith
5500 ACC
513 James J. Joe
6500 HR
654 Vanessa Bird
7500 ACC
876 Mira Carpenter
8500 IT
987 Dora D. Alexander
7500 HR
===================================
Create static arrays reading from the file. Create only 4 arrays.
Sample of showing data in this format by id, name, dept, salary and (annual_salary = salary *12) using method:
ID NAME DEPT SALARY ANNUAL SALARY
----------------------------------------------------------------
123 John D. Doe IT450054000
432 Sarah S. Smith ACC550066000
After showing all data in that format from the file above get:
highest and lowest annual salary,
total annual salary
average annual salary and
search by id and showing the rest of info related to id.
P.S. DO not send me a code that we didn't go through in class.
The code to write this program is in your folder Exercise in Moodle. Create file name emp.txt in this format:
123 John D. Doe
4500 IT
432 Sarah S. Smith
5500 ACC
513 James J. Joe
6500 HR
654 Vanessa Bird
7500 ACC
876 Mira Carpenter
8500 IT
987 Dora D. Alexander
7500 HR
Create static arrays reading from the file. Create only 4 arrays.
Sample of showing data in this format by id, name, dept, salary and (annual_salary = salary *12) using method:
After showing all data in that format from the file above get:
highest and lowest annual salary,
total annual salary
average annual salary and
search by id and showing the rest of info related to id.
P.S. DO not send me a code that we didn't go through in class.
The code to write this program is in your folder Exercise in Moodle.
Create file name emp.txt in this format: = = = =

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 Programming Questions!