cs245-asn6-soln

cs245-asn6-soln - CS 245 Winter 2009 Assignment 6 Due: Thu...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CS 245 Winter 2009 Assignment 6 Due: Thu 19 Mar 2009 10am in the CS245 Drop Boxes 50 marks SOLUTION SET There may be multiple correct answers to this question. 1. (50 marks) The National Basketball Association (NBA) is creating an on-line system to sell memorabilia associated with basketball teams (e.g., sweaters, mugs, flags, etc.). Each product is represented by a unique product identifier. It is not the case that all product identifiers are always in use. Each product is associated with only one basketball team. But each team may have multiple products associated with it. Each product has a single description (e.g., mug). Multiple products can have the same description. For each product, the system stores the quantity of the product in stock. This quantity must be greater than 0 for each product. There is a limit on the maximum number of products that the system can handle. In its first deployment, the system will be used for Canadian teams only so all products stored in the system must be associated with Canadian teams. (Do not use specific team names.) There are no limits on the product identifiers or number of descriptions that can be used. Initially, there are no products in the system. Here are the operations that can be performed in this on-line system: (a) Given a team name, description, and quantity of the product, add an entry to the on-line system using a product number that is not already in use.system using a product number that is not already in use....
View Full Document

This note was uploaded on 10/23/2009 for the course CS 245 taught by Professor A during the Spring '08 term at Waterloo.

Page1 / 6

cs245-asn6-soln - CS 245 Winter 2009 Assignment 6 Due: Thu...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online