Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Use Spyder 2. Define a class called Student a. Attributes (private) i. First name ii. Last name iii. Student ID 3. Add get() and

1. Use Spyder

2. Define a class called Student

a. Attributes (private)

i. First name

ii. Last name

iii. Student ID

3. Add get() and set() functions for each attribute of Student

a. The set() functions will allow the user to change information about a student

b. The get() functions will allow the user to access a students information

4. Add a __str__() function to Student class

a. This function will create a string of a students information (the attributes)

EXAMPLE:

5. Create 2 students then output their information

6. Output each students information

7. Change the second students first name to your first name

8. Output each students information

9. Output just the first name of student 2

10. Use correct naming conventions and docstrings

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Repairing And Querying Databases Under Aggregate Constraints

Authors: Sergio Flesca ,Filippo Furfaro ,Francesco Parisi

2011th Edition

146141640X, 978-1461416401

More Books

Students also viewed these Databases questions

Question

2. What process will you put in place to address conflicts?

Answered: 1 week ago