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
0
Answer:
he is incorrect ( make negative)
Similar questions