Sei sulla pagina 1di 3

CIS266 Developing Database Applications

Video Rental: Homework 4 – 7


Homework assignments 4, 5, 6 and 7 are based on these requirements. You are developing
an application to track video rentals. Employees will use the application to rent dvd’s using
either the physical disk or through download. The manager will use the application to track
overall performance, looking at daily sales/rental figures, employee activity, and customers
with overdue items. Each of the four homework assignments requires use of different skills
and knowledge. As with the first three homework assignments, each of these assignments is
comprised of a planning portion worth 5 points, and an application portion worth 15 points.
The course syllabus lists the due dates for each assignment.

The Rental Process


The store rents dvd’s, by loaning out the actual disk or making the video available for
download. Customers can rent one or more item on each visit, and can mix formats (disk v.
download). Standard rental prices and rental days are set for movies, although these can
change over time. For example, new disk releases may all be rented at $4.99 overnight,
while movies that have been out more than 4 months all rent for $2.99 for five days. The
rates may be different by media (downloads can have a different rate than disk for the
same movie). Changes to standard rates and rental days should not affect rentals that have
already happened. Sales tax applies to all rentals. A movie may have one or more copies
available for rental.
Overdue charges are assessed when disks are returned late; downloads do not have late
charges. Late charges are set at the standard rental price for that movie at that time. A
customer may keep a rented item for the standard rental period (for example, if a movie is
rented overnight, each day late generates a new charge; a movie rented for week returned
any time during the second week will have only a single new charge). Customers who have
outstanding late charges of more than $10.00 are not allowed to rent new items until late
charges are paid. Taxes apply to late charges.

Homework Requirements
Each homework has a specific set of requirements, listed below. In addition, the following
should be incorporated in all assignments as appropriate:
Planning documents: Use flow charts, data dictionaries, pseudocode or other techniques
to describe how you will accomplish the homework. Planning documents should identify
classes (including parent and child forms) and the purpose of each; the principle
procedures for each class; and data associated with each form. Planning is worth 20
points for homework #4; and 5 points for each the subsequent assignments.
Project files: Copy your project folder (project, solution, form, class and/or component
files) to the R: drive. The project portion of each assignment is worth 15 points.
Database: Use a SQL Server or Access database to store data, and include the file in
your project folder. Include at least five sample records in each table.
Code: Code should be fully commented, with student name and summary of each
class/component, statements identifying each procedure purpose, description of
procedure logic. Include a print out of your code for the current assignment.
Application interface: Include a MDI (multiple-document interface) main form to manage
the application. Access to the data forms for the assignments should be provided by
menu or toolbar. The MDI form should include a status bar which is updated with
application information each time an action occurs.
CIS266 Homework 4-7
Page 2
Choice of form layout, interface design and controls is up to you. Keep in mind that how I
work may be different from you; make sure that choices and steps are easily understood.
Don’t worry about security.

Homework #4
This assignment is to design a relational database for the application. Create a data
dictionary that identifies the tables, fields, and data types needed for this application.
Include indexes, validation rules and default values as appropriate. Identify any
relationships appropriate for this database, including where cascade update and/or cascade
delete is appropriate. Turn in planning materials in a folder – don’t build the database.

Homework #5
Create a project for this application. Include the following:
1. Build the database required for this application, incorporating comments on your
homework and class review.
Create a MDI form that provides access to the data forms for homework #5, 6 and 7.
Create a data form that displays movies in a grid, and allows for editing (insert, update
and delete) entries.
Create a data form that display customers one at a time, and allows for editing (insert,
update and delete) entries.
You may use different datasources for each form OR a single datasource as part of the main
form that the data forms reference.

Homework #6 – REVISED 5/12/2011


Make any corrections to Homework #5 identified in comments in class or in your code.
Modify your project to include the following:
1. Create a data form that displays each movie individually. Use a parameter query to
search for a particular movie by ID and title (a user should be able to enter either an
ID or a title, and find such a movie if it exists).
Modify the customers form from Homework #5 to display the rentals for the customer in
a datagrid.
Both forms should access data from the main form.
Use command, connection, data adapter and data table objects and create the following
forms:
1. A form to display and edit employees. You may display an employee one at a time or
in a datagrid. Any changes to employee data (addition, edit, deletion) should be
saved to the database.
2. A form to edit transactions. Display a single transaction and provide navigation.
Include comboboxes for selection of both customer and employee. Any changes to
transaction data (addition, edit, deletion) should be save to the database.
You may include the datatables in a dataset, but it isn’t required. Both forms should be
accessible from the main form from Homework #5. You may tie the data to particular forms
or access from the main form; the focus of this assignment is to use the basic tools of
ADO.Net.
CIS266 Homework 4-7
Page 3
Homework #7
Make any corrections to Homework #6 identified in comments in class or in your code.
Modify your project to include the following:
1. Create a dataset in code that models your database. Make the dataset available to
your data forms from your MDI form.
2. Create a form that allows an employee to rent one or more movies to a customer.
Use the new dataset for accessing the contents of the database. Use controls that
help the employee complete a rental.

Potrebbero piacerti anche