Monday, 12 September 2016

NIELIT A Level Data Structure through C++ Assignment

Assignment 15

Given a file whose record consists of following attributes:
Roll No.
Name
Sex code                         ‘M’ for males
                                     ‘F’ for females
Marks in English
Marks in Biology
Marks in Maths

The scheme for selection and allotment of departments is as follows:

a) Reject the candidate, if aggregate marks are less than 180.
b) Allot ‘ENGINEERING ‘ department if the candidate has maximum marks in maths
and sex code is ‘M’.
c) Allot ‘MEDICAL’ department if candidate has maximum marks in biology and sex
code is ‘F’.
d) Allot ‘ENGLISH’ department if candidate has maximum marks in English.
e) Allot ‘PSYCHOLOGY ‘department to all other selected candidates.
Use limited entry decision tree to do the final selection.