Question: Implement these using python 9-8. Privileges: Write a separate Privileges class. The class should have one attribute, privileges, that stores a list of strings as
9-8. Privileges: Write a separate Privileges class. The class should have one attribute, privileges, that stores a list of strings as described in Exercise 9-7 Move the show privileges() method to this class. Make a Privileges instance as on attribute in the Admin class. Create a new instance of Admin and use your method to show its privileges 9-9. Battery Upgrade: Use the final version of electric,corpy from this section. Add a method to the Battery class called upgrade_batte ly(). This method should check the battery size and set the capacity to 85 if it isn't already Make an electric car with a default battery size, call get range() once, and then call get_range() a second time after upgrading the battery. You should see an increase in the car's range. 9-8. Privileges: Write a separate Privileges class. The class should have one attribute, privileges, that stores a list of strings as described in Exercise 9-7 Move the show privileges() method to this class. Make a Privileges instance as on attribute in the Admin class. Create a new instance of Admin and use your method to show its privileges 9-9. Battery Upgrade: Use the final version of electric,corpy from this section. Add a method to the Battery class called upgrade_batte ly(). This method should check the battery size and set the capacity to 85 if it isn't already Make an electric car with a default battery size, call get range() once, and then call get_range() a second time after upgrading the battery. You should see an increase in the car's range
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
