Hotspots: Admin Pages | Turn-in Site |
Current Links: Cases Final Project Summer 2007

## Lab5 - Sp2000

### Directions:

This lab is a design assignment. You must work in teams of 2 people. Note: the teams you form this week will be kept for next week also. So choose someone you can work with two weeks in a row. Teams do not have to be from the same section, but they MUST be from the same lab time. In other words A1 and B1 people can work together, A2 and B2 people can work together, and A3 and B3 people can work together.

### What to turn in when:

Since you can't turn in a design electronically we are going to modify the turn in time for this lab. It will be due Tuesday by 9:30am (at the latest) in room 265 on the second floor of the College of Computing building. Make sure that your design has both group member's names and gt numbers on it. What we basically want is a design document. We want you to have OOA and OOD. We are looking for things like CRC cards, class descriptions, scenarios of use, and a class diagram.

### The Problem:

Osbert Oglesby is an art dealer. He buys art and then sells it in his art gallery. Although recently he has been having a problem, he is losing money. He thinks he has been overpaying for the paintings he has been buying. Osbert has decided that he needs a program to put on his laptop that will help determine the maximum price he should pay for a painting. This maximum price will be determined by the classification of the painting (masterpiece, masterwork, or other) and other data needed to compute the price of a painting in that classification.

So, Osbert hired someone to develop an algorithm for him. This is the algorithm that they came up with:

• A masterpiece: Scan the auction records for the most similar work by the same artist. Use the auction purchase price of the most similar work as the base price. The maximum purchase price is found by adding 8.5% to the base price.

• A masterwork: First, compute the maximum purchase price as if it were a masterpiece by the same artist. Then, if the picture was pained in the 20th century, multiply this figure you 0.25, otherwise multiply it by (20 - c)/(21- c), where c is the century in which the work was painted (12 < c < 20).

• Other: Measure the dimensions of the canvas. The maximum purchasing price is then given by the formula FA, where F is a constant for that artist (fashionability coefficient) and A is the area of the canvas in square centimeters. If there is no fashionability coefficient for that artist, Osbert will not buy the painting.

There will be a file that contains the artist name and the corresponding F values. There will also be a file containing data on auction sales of masterpieces. This file will have the name of the artist, title of the painting, date of painting, date of the auction, the sale price, and the type of work. The type of work has three parts: medium (oil, watercolor, or other), dimensions (height and width), and subject (portrait, still-life, landscape, or other).

Once Osbert has this program in place, he will need to record the following information about a painting that he has bought:

• Description of the painting:
• First name of the artist
• Last name of the artist
• Title of the work
• Date of the work (yyyy)
• Classification (masterpiece, masterwork, other)
• Height (cm)
• Width (cm)
• Medium (oil, watercolor, other)
• Subject (portrait, still-life, landscape, other)
• Date of purchase (mm/dd/yyyy)
• Name of seller
• Maximum purchase price determined by algorithm
• Actual purchase price
• Target selling price (2.15 times the purchase price)
If the painting has been sold then add:
• Date of sale (mm/dd/yyyy)