Define a Class in C++. (APPLICANT)


Define a class APPLICANT in C++ with the following descriptions:

Private members
  • ·         A data member ANo (Admission Number) of type long
  • ·         A data member Agg (Aggregate Marks) of type float
  • ·         A data member Grade of type char
  • ·         A member function GradeMe() to find the grade as per the aggregate marks obtained by a student.
  • Equivalent aggregate marks range and the respective grades are shown as follow:

Aggregate Marks
Grade
>=80
A
less than 80 and >=65
B
less than 65 and >=50
C
less than 50
D
Public members
  • ·         A function ENTER() to allow user to enter values for ANo, Name, Agg and call function GradeMe() to find the Grade.
  • ·         A function RESULT() to allow user to view the content of all data members.



No comments

Post your comments

Powered by Blogger.