Vous êtes sur la page 1sur 1

Name: _________________________

Planning Points: ______________


Project Points: ______________

Homework #3
CIS 266 – Developing Applications in Visual Basic
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 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 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
Building, and Max S&A Fees)
Fees)
1 to 10 Credits $80.60 per credit $93.60 per credit $252.6 per credit
$806 plus $33 per credit $936 plus $33 per credit $2526 plus $37 per credit
11 to 18 Credits
from 11 - 18 from 11 – 18 from 11 – 18
$1070 plus $73 per
Excess - 19 or $1200 plus $73 per $2822 plus $245 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)

4/1/2010

Vous aimerez peut-être aussi