Write the Student class so that the given code provides the expected output. 1. Create Student class 2. Create 3 class variable 3. Create 1 class method for object creation 4. Create 1 class method for printing

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter11: More Object-oriented Programming Concepts
Section: Chapter Questions
Problem 9RQ
icon
Related questions
Question
Task 9
Write the Student class so that the given code provides the expected output.
1. Create Student class
2. Create 3 class variable
3. Create 1 class method for object creation
4. Create 1 class method for printing
[You are not allowed to change the code below]
# Write your code here
Оutput:
Total Student(s): 0
BRAC University Student(s): 0
Other Institution Student(s): 0
Student.printDetails()
print('##
Name: Mikasa Ackerman
mikasa = Student('Mikasa Ackerman', "CSE")
mikasa.individualDetail()
print('-
Student.printDetails()
%3D
Department: CSE
Institution: BRAC University
Total Student(s): 1
BRAC University Student(s): 1
Other Institution Student(s): 0
print('=
=')
=========
harry = Student.createStudent('Harry Potter', "Defence Against Dark Name: Harry Potter
Arts", "Hogwarts School")
harry.individualDetail()
print('-
Student.printDetails()
Department: Defence Against Dark Arts
Institution: Hogwarts School
--')
Total Student(s): 2
BRAC University Student(s): 1
Other Institution Student(s): 1
print('=
========')
!====:
Name: Levi Ackerman
levi = Student.createStudent("Levi Ackerman", "CSE")
levi.individualDetail()
Department: CSE
Institution: BRAC University
print(-
Student.printDetails()
Total Student(s): 3
BRAC University Student(s): 2
Other Institution Student(s): 1
Transcribed Image Text:Task 9 Write the Student class so that the given code provides the expected output. 1. Create Student class 2. Create 3 class variable 3. Create 1 class method for object creation 4. Create 1 class method for printing [You are not allowed to change the code below] # Write your code here Оutput: Total Student(s): 0 BRAC University Student(s): 0 Other Institution Student(s): 0 Student.printDetails() print('## Name: Mikasa Ackerman mikasa = Student('Mikasa Ackerman', "CSE") mikasa.individualDetail() print('- Student.printDetails() %3D Department: CSE Institution: BRAC University Total Student(s): 1 BRAC University Student(s): 1 Other Institution Student(s): 0 print('= =') ========= harry = Student.createStudent('Harry Potter', "Defence Against Dark Name: Harry Potter Arts", "Hogwarts School") harry.individualDetail() print('- Student.printDetails() Department: Defence Against Dark Arts Institution: Hogwarts School --') Total Student(s): 2 BRAC University Student(s): 1 Other Institution Student(s): 1 print('= ========') !====: Name: Levi Ackerman levi = Student.createStudent("Levi Ackerman", "CSE") levi.individualDetail() Department: CSE Institution: BRAC University print(- Student.printDetails() Total Student(s): 3 BRAC University Student(s): 2 Other Institution Student(s): 1
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Unreferenced Objects
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning