Delhi Public School, R.K.Puram, New Delhi
Delhi Public School, R.K.Puram, New Delhi
[REF:DPSR/COMP12/2019-2020/06]
Delhi Public School, R.K.Puram, New Delhi
Write a menu driven program with separate functions for each of the following for an array
of FLIGHT type:
To enter values in the array
To display the details of a FLIGHT passed through parameter
To return the details of the FLIGHT with the lowest Fare
12. Declare a structure DATE with the following members:
Day of type int
Month of type int
Year of type int
Declare another structure STUDENT with the following members:
Admno of type int
Sname of type char array of size 20
DOB of type date //represents date of birth
Write a menu driven program with separate functions for each of the following for an array
of STUDENT type:
● To enter values in the array of STUDENT
● To display details of a STUDENT from array of STUDENT passed through parameter
● To display the details of all students from array of STUDENT who are born between
[1 1 1990] and [31 12 1990] , (both dates inclusive)
General Instructions:
i. Type the programs mentioned above during the Lab Periods and save in the R Drive
ii. Type in the following on top of each of your program as comment lines
/*
Program No : 8
Developed By: Ravi Parekh, Tarini Khan, Priya Shekhar
Date : 07-May-2018
*/
iii. On successful compilation and execution, copy and paste the sample output at the bottom of
the program as comment lines.
iv. Take out a hardcopy of the program from the printer and get it signed from the respective
computer teacher. Add the printout in the practical file and get the Index entry also signed.
v. The ** marked questions to be written on Computer Science Notebooks also.
[REF:DPSR/COMP12/2019-2020/06]