Music Shop

Line: Forms Line, Files Line, Objects Line
Medium Difficulty Object Orientation Forms Files Learning Outcome One Learning Outcome Two Learning Outcome Three Learning Outcome Six Video
Type: Video
You should have completed: Zone 10 This topic leads to:

Assignment Two

Summary

A boutique (small) record shop needs a program to track the sales numbers of different titles. The software needs to cope with an ever expanding library. The shop has three display shelves (sized for vinyl albums, CD's and cassette tapes, and a stock cupboard behind the counter. The users needs to be able to add new products, track sales, price and stock of each. The user also needs to be able to see how much of the stock is on the shelf, and how much is in storage. The user also needs to be able to list all the titles and their sales out. The user wants a windows application that saves this data between sessions.

This is a two part overview of the solution to this problem. The fully commented source code is also available for you to study, and it is thoroughly recommended that you do so.

Task

  1. Watch the videos
    1. Introduction and Data Model
    2. User Interface
  2. Download the archive of the project and extract it to your hard drive
  3. Load the program yourself and run it, using the debugger to follow the flow of execution

Notes

Notice how almost all of the methods in this program are just a few lines long. This is common in object oriented programs, and shows that the problem has been well broken down into individual steps.