[Solved] IT 210 Fundamentals of Programming Lab 8

$25

File Name: IT_210_Fundamentals_of_Programming__Lab_8.zip
File Size: 386.22 KB

SKU: [Solved] IT 210 Fundamentals of Programming – Lab 8 Category: Tag:
5/5 - (1 vote)

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.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] IT 210 Fundamentals of Programming  Lab 8[Solved] IT 210 Fundamentals of Programming Lab 8
$25