[SOLVED] IT 210 Fundamentals of Programming - Lab 8

35.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Lab08-jfu8wu.zip (175.2 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (2 votes)

Instructions

You will work with a partner or two to implement the Toy class. Attributes to be included:

You should have an instance variable for at least each of the following attributes:

  • toy name o price o most likely to be interesting for boy, girl, either minimum recommended age

Additional attributes can be added if you wish. Methods to be included:

init         (self, name) # only the name is part of the initial toy creation. Other attributes are added later but you should give them defaults in the constructor.

  • setPrice and getPrice
  • setGender, getGender (you get to design how to handle this) setMinAge and getMinAge repr__ Compactly represent all the attributes above as a single string

Add additional methods as necessary for any additional attributes that you added.

Test Code

Include test code in an if namemain . section at the end of your file. The quality and completeness of your test code will be considered when your lab is graded. Every method should be exercised by the test code.

Submitting

Your name must be included as a comment on the first line of the program file with others in your group on succeeding lines. Submit a copy of the lab (appropriately commented) to the D2L dropbox not later than 11:59 pm Friday evening. Name your file Lab8.py.

  • Lab08-jfu8wu.zip