You are on page 1of 1

a9 BATCH

Time : 30 Minutes
Marks : 5 Marks
odd numbered machine
--------------------Q1) Write a C function calculate_average which first calculates and then displays
the average marks
in 5 subjects for a student. Use structure to store the following variables per
student:
a. Enrollment of student: 10 digit number
b. Name: 25 digit character
c. Subjects: 4 in number marks
Use the constraint of marks not below 0 and not above 100.
MAKE ENTRIES FOR ATLEAST 5 RECORDS
even numbered machine
----------------------Q2) Q1) Write a C function calculate_average_annual_salary
any and print the results.

of employees of a comp

Use structure to store the following variables per employee:


a. Employee ID of employee : 8 digit alphanumeric number like JIIT6690
b. Name: 25 digit character
c. Salary for 12 months: floating value
Use the constraint of salary not below 0 and not above 100000.
MAKE ENTRIES FOR ATLEAST 5 RECORDS

You might also like