JUNIOR
ACADEMY
11/05/2016
tfr
Tristan is the ruler of an evil kingdom. He forces the peasants, Carson, Brooks, and Lian to count the amount of bunny ears there are in the entire kingdom. Carson, Brooks, and Lian have rounded up all the bunnies. Write a function which takes in the amount of bunnies and recursively compute the total numbers of bunny ears.
object oriented programming
class exercise
- Create a class called Game
- It should have at least 4 attributes (name, genre, developer, number_of_sales)
- Write a method that prints detailed information about the game (its name, genre, and developer)
- Include a method to increment the amount of sales
- Handle negative cases
- Create 2 instances of your class
- Create a dictionary gameCollection containing your games
- Add 100 sales to one of your games and print the amount of sales it has
inheritance exercise
- Create a class called VideoGame that inherits Game
- It should have another attribute as an __init__ parameter, systems
- Write a method that prints detailed information displaying the video game's compatible systems
- Create 3 different instances of your class in your dictionary
class tfr
Tristan and Carson are the owners of a super-popular video game company: Tristan and Carson's Awesome Game Company. However, thanks to some evil scheming from their mutual "friends", Brooks and Lian, they got into a huge fight and had to split up the company into two: Tristan's Awesome Game Company and Carson's Awesome Game Company.
Create a class OGGameCompany and two subclasses, TriAweGaCo and CarAweGaCo. Include at least 2 attributes and methods within each class
survey
https://www.surveymonkey.com/r/RV2C2CB
Jr. DevLeague Academy PM 11/5/16 OOP
By jtheadland
Jr. DevLeague Academy PM 11/5/16 OOP
- 653