Computer Science, asked by dadadeepesh, 7 months ago

A binary file named “EMP.dat” has some records of the structure
[EmpNo, EName, Post, Salary]
(a) Write a user-defined function named NewEmp() to input the details of a
new employee from the user and store it in EMP.dat.
(b) Write a user-defined function named SumSalary(Post) that will accept an
argument the post of employees & read the contents of EMP.dat and
calculate the SUM of salary of all employees of that Post.​

Answers

Answered by gnvarun93
3

SUM of salary of all employees of that Post.

Explanation:

binary file named “EMP.dat” has some records of the structure

[EmpNo, EName, Post, Salary]

(a) Write a user-defined function named NewEmp() to input the details of a

new employee from the user and store it in EMP.dat.

(b) Write a user-defined function named SumSalary(Post) that will accept an

argument the post of employees & read the contents of EMP.dat and

  1. calculate the SUM of salary of all employees of that Post
Answered by ashreya1906
4

Explanation:

Hope it helps! ✌️✌️

Mark me brainliest

Attachments:
Similar questions