You are on page 1of 1

Name: _________________________

Planning Points: ______________


Project Points: ______________

Homework #3
CIS 266 – Developing Database Applications
Enhanced Student Tuition Calculator

This project is to expand the application of Object-Oriented Programming concepts and


practices.

Planning documents are worth 10 points; the project is worth 15 points. Planning
documents are due before your project! Turn in printouts of your planning
materials in a folder in class or to the computer resource center. Copy your project
files to the R:drive, and turn in a printed copy of your code and this sheet. Do not
include any files except those needed for your project on your diskette.

This version of the Tuition Calculator will use two classes: one to perform the
calculations, and one to store the completed calculations.
• Create a tuition calculator class, including properties to store the values of
credits, residency status, and student id. Include a method to return the tuition
price for the credit and residency values. You may use the class from homework #2
if it satisfies these requirements, or create a new class.
• Create a collection class to store the calculations. The class should include two
add methods: one to accept the individual property values of your tuition class, and
one to accept a tuition object. Provide a mechanism to read data from one member
of the collection, and to delete a member from the collection.
Modify your form to include a listbox. When a new calculation is instantiated, add it to
the collection class and the listbox. When the user clicks on an item in the list box,
display data from the corresponding member of the collection in the appropriate
controls. Provide a button to remove the selected item from both the listbox and
collection.

Extra credit (5 points): Include a method in the collection that calculates the average
credits for: all calculation objects, residents-only, U. S. citizens only, or non-residents
only. Include controls to display the results of this calculation on your form.
CREDIT Resident: Non-Resident Oper Fee Non-Resident:
AMOUNT Total Tuition (Operating, Waiver: Non U.S. Citizen
Building, and Max S&A U.S. Citizen Total Tuition (Operating,
Fees) Total Tuition (Operating, Building, and Max S&A Fees)
Building, and Max S&A
Fees)
1 to 10 Credits $86 per credit $99 per credit $258 per credit
$860 plus $34.80 per $990 plus $35.49 per credit $2580 plus $39.80 per credit
11 to 18 Credits
credit from 11 - 18 from 11 – 18 from 11 – 18
$1138.40 plus $78.40 per
Excess - 19 or $1273.92 plus $78.40 per $2898.40 plus $250.40 per
additional credit beyond
more 18 Credits* additional credit beyond 18 additional credit beyond 18
18

(Source: SPSCC — http://www.spscc.ctc.edu/admissions/costs)

3/22/2011

You might also like