You are on page 1of 1

Project to be done individually Even rollnos will do project question no 1 and odd rollno will do project question no2.

Put printout of program code & output in file. Q1.Consider the following structure for storing data related to a student: struct stud { int roll; char Name [20]; char Address [20] char fname[20]; // fathers name float m[5], total,average; //Marks in 5 Subjects char grade; }; Display the following menu for at least 5 students (Array of stud type) (use functions): Create array // To accept data of 5 student Show // To display data of 5 student Report card / to display report card of given roll no. Name list //to display data sorted on names Merit List. // should have the roll no., name, total and average Grade card Generation: /* should have roll no., name, total & grade for all the students (according to roll no.)*/ Criteria of grade are: Average Grade >=90 A <90 and >=75 B <75 and >=60 C <60 and >=40 D <40 F Q2. Consider the following structure for storing data related to a employee: struct employee { int empno char Name [20]; char Address [20] char fname[20]; // fathers name float Basic,Hra,DA,PF,Tax,Gross,Net; //Salary of employee char grade; }; Note:- Gross=Basic+Hra+DA, Net=Gross-(PF + Tax) &Calculate Tax Annual Gross(Gross *12) < 1,00,000 0 >1,00,000 & <=2,50,000 15% of Gross >2,50,000 & <=5,00,000 20% of Gross >5,00,000 25% of Gross Display the following menu for at least 5 students (Array of stud type) (use functions): Create array // To accept data of 5 employee Show // To display data of 5 employee Report card // to display report card of given employee o Name list //to display data sorted on names Merit List. // should have the employee no, name, gross salary & net salary Grade Generation: /* should have employee no., name, net salary & grade for all the students (according to employee no.)*/ Criteria of grade are: Net Salary Grade >=10,00,000 A <10,00,000 >=5,00,000 B <5,00,000 C

Project for class 11

You might also like