Question No.7: A formatted file master.txt contains the employee code, name and basic pay of employees of an organization. Write a program to calculate the D.A (dearness allowance), H.R.A (House rent...



Write a C program and also attach its output screenshots.


Question No.7:<br>A formatted file master.txt contains the employee code, name and basic pay of employees of an<br>organization. Write a program to calculate the D.A (dearness allowance), H.R.A (House rent allowance)<br>and gross income of each employee and store employee code, name, basic pay, D.A,H.R.A and gross<br>income to the file emp.txt, where D.A is the 32% of basic pay, H.R.A is 15% of basic pay and gross pay<br>is the sum of basic pay, D.A and H.R.A.<br>Question No.8:<br>Create a structure called Students that holds information like Registration code, name of student and<br>date of admission. Write a program to create an array of structures and enter some data into it (15 records<br>at least). Then ask the user to enter current date. Display the names of those Students who are in the<br>school greater than or equal to 5 years.<br>

Extracted text: Question No.7: A formatted file master.txt contains the employee code, name and basic pay of employees of an organization. Write a program to calculate the D.A (dearness allowance), H.R.A (House rent allowance) and gross income of each employee and store employee code, name, basic pay, D.A,H.R.A and gross income to the file emp.txt, where D.A is the 32% of basic pay, H.R.A is 15% of basic pay and gross pay is the sum of basic pay, D.A and H.R.A. Question No.8: Create a structure called Students that holds information like Registration code, name of student and date of admission. Write a program to create an array of structures and enter some data into it (15 records at least). Then ask the user to enter current date. Display the names of those Students who are in the school greater than or equal to 5 years.

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here