Write a program to create a class Student which contains attributes name, date_of_birth, marks_percentage and Reg_id. Provide appropriate constructor to initialize all the attributes of the Student but Reg_id must be assigned automatically only when the marks of the student is greater than or equal to 65% .
StudentClass is a nested class with attributes roll_no and Section_name. Make sure that Student card is created only when user is a valid and if it is already created then must not be assigned the new roll number.
Answers
Answered by
1
tex
hold
marks_percentage and Reg_id. Provide appropriate constructor to initialize all the attributes of the Student but Reg_id must be assigned automatically only when the marks of the student is greater than or equal to 65% .
StudentClass is a nested class with attributes roll_no and Section_name. Make sure that Student card is created only when user is a valid and if it is already created then must not be assigned the new roll number.
Similar questions