Sunteți pe pagina 1din 7

ISDS 3107

Name:___Amen Ahmed_________ Assignment: #3_ Design Steps of the Program Development Life Cycle
Requirements Document
Date Submitted: Application Title:

February 23, 2013 Adventure Car Rental Calculator The Adventure Car Rental Company wants a Windows application for the rental of an adventure vehicle. The user selects the number of rental days, up to 7 days. The user also can select one of three types of vehicles, one of two gas refill methods, and option for multiple drivers. The user can then calculate their total cost for the rental. From a window on the screen, the user can select the number of days to rent a vehicle, the type of vehicle, the gas refill method, and an optional multiple drivers selection. The user can then calculate the total cost of rental, then either reset the form and start over or exit the form. 1. The user selects the number of days to rent the vehicle. 2. The user selects the types of vehicle to rent. 3. The user selects the gas refill method to apply. 4. The user has the option to apply multiple drivers to the rental. 5. After the user has filled out the form, they can calculate the total cost of rental. 6. After calculating their total, the user can reset the form and select new values or exit the window. 7. If the user fails to select number of days, vehicle type, or refill method, an input error message box will appear for each missing value. 1. The user cannot reset the form until after a calculation has occurred. 2. The user cannot calculate the values in the form until all required objects have a value. 1. You (the developer) should use input methods of your choice.

Purpose:

Program Procedures:

Algorithms, Processing, and Conditions:

Notes and Restrictions: Comments:

ISDS 3107

Use Case Definition


1. 2. 3. 4. 5. 6. The user opens the application. The user selects the number of days he/she wants to rent the vehicle. The user selects the type of vehicle he/she wants to rent. The user selects the gas refill method he/she wants to apply. The user can select the option for multiple drivers if it is applicable. The user calculates his/her total rental cost by clicking the CALCULATE button or by pressing ALT+C. 7. The program displays the users total cost for the vehicle rental. 8. The user can reset the program by clicking the RESET button or by pressing ALT+R and redo steps 2-6. 9. The user can exit the program at any time by clicking the EXIT button or by pressing ALT+X.

ISDS 3107

User Interface

ISDS 3107

List of the Controls


Control Type Control Name Form Label Label Label Label Label ComboBox GroupBox GroupBox RadioButton RadioButton RadioButton RadioButton RadioButton CheckBox Button Button Button lblHeading lblDays lblMultipleDrivers lblTotal lblCost cboDays grpVehicle grpGas radWrangler radCherokee radRover radAfter radPrepay chkMultipleDrivers btnCalculate btnReset btnExit Desscription Displays heading for application. Displays title for number of days ComboBox. Displays title for multiple drivers CheckBox. Displays title for cost Label. Displays total cost of rental. Displays number of days user can select to rent vehicle. Holds values for vehicle type Radiobuttons. Holds values for gas refill method RadioButtons. When selected, $55/day is added to total rental cost. When selected, $85/day is added to total rental cost. When selected, $125/day is added to total rental cost. When selected, no value is added to total rental cost. When selected, $52 is added to total rental cost. When selected, $22/day is added to total rental cost. When clicked, calculates the total cost of rental, and disables editable objects. When clicked, resets values for all objects in form. When clicked, terminates the program. frmAdventureCarRentalCalculator Only form in application.

ISDS 3107

Values of Each Control's Relevant Properties


Control Type Control name Form Property Value Adventure Car Rental Calculator Amen Ahmed btnCalculate btnExit (Icon) None Rental Calculator None Number of Days: None Multiple Drivers? None Total Rental Cost: None $0.00 [variable] None (Collection) None Vehicle Type None Gas Refill None Jeep Wrangler None False Jeep Grand Cherokee None False Land Rover None False Fill Up After Use None False Prepay Full Tank None False Yes None False frmAdventureCarRentalCalculator Text

Label Label Label Label Label ComboBox GroupBox GroupBox RadioButton

lblHeading lblDays lblMultipleDrivers lblTotal lblCost cboDays grpVehicle grpGas radWrangler

RadioButton

radCherokee

Accept Button Cancel Button Icon Anchor Text Anchor Text Anchor Text Anchor Text Anchor Text Anchor Items Anchor Text Anchor Text Anchor Text Anchor Checked Text Anchor Checked Text Anchor Checked Text Anchor Checked Text Anchor Checked Text Anchor Checked

RadioButton

radRover

RadioButton

radAfter

RadioButton

radPrepay

CheckBox

chkMultipleDrivers

ISDS 3107 Button Button btnCalculate btnReset Text Anchor Text Anchor Enable Text Anchor &Calculate None &Reset None False E&xit None

Button

btnExit

ISDS 3107

Event Planning Document


Program Name: Adventure Car Rental Calculator Object frmAdventureCar RentalCalculator btnCalculate Developer: Amen A. Ahmed Event Trigger Load Object: frmAdventureCarRentalCalculator Event Processing Set focus on number of days ComboBox. Date: 2/23/13

Click Alt+C Click Alt+R Click Alt+X

Calculate the total cost of rental accordingly, and disable all editable objects. Restore and enables all objects on form to default values. Close the window and terminate the program.

btnReset

btnExit

S-ar putea să vă placă și