CS 230 Spring 2005

Assignment 3 –Simple IFs

100 points

 

Assigned: 02/07/2005

Due: 02/14/2005 at the start of class

 

Pre-Lab (Do Before Lab):  Bring a new disk. Plan out tasks, objects, and events needed for program.

 

Main Assignment:

A parking garage charges a $5.00 minimum fee to park for up to 3 hours. The garage charges an additional $1.00 per hour or each part thereof in excess of 3 hours. The maximum charge is $10.00. On top of this (in addition to this), large vehicles (vans, SUVs) are charged an extra $2.00 (thus a van that parked long enough could be charged as much as $12.00). Write a program that gets from the user the number of minutes spent in the garage, and whether the vehicle is a large vehicle (Checkbox recommended), and reports the parking fee. Your program should include a “Check Out” button that will calculate and display the total charge.  In addition to the calculate capability, provide capabilities to clear all of the controls (text boxes and checkbox) to start again, and to exit.

 

Hand in:

To avoid needless long waits, I recommend doing this on the c: or other drive, then upon completion, copying it to the a: drive, testing it there, and creating an extra backup for yourself.

 

Miscellaneous: