Sie sind auf Seite 1von 5

ISDS 3107

Name:Daniel Nan

Assignment: 2

Design Steps of the Program Development Life Cycle


Requirements Document
Date Submitted:

3/19/2015

Application Title:

Bayou Group Ticket Sales

Purpose:
Program
Procedures:
Algorithms,
Processing, and
Conditions:

Notes and
Restrictions:

This Windows application allows a user to select multiple tickets for a


seat type for either single day or 2-day tickets. The total cost with tax
is computed.
From the Windows form, the user can select 1 or 2 day tickets, a seat
type, and number of tickets, and then calculate the total cost of the
tickets.
1. The user chooses from radio buttons for 1 or 2 day tickets. The
default should be 1 day. The user chooses the seat type from a
combo box (default tiger plaza). The user enters a number of
tickets and clicks a button to calculate the total.
2. A method will calculate the total. Pass the ticket price constant and
number of tickets to the method.
3. The total will be displayed as currency in a label.
4. A button event method will reset all form controls to their original
settings.
1. Validate input.
2. Seat prices should be stored in constants. Display the prices on the
form using the load event method.

2-Day

Single Day

Tiger Plaza

$45 per day

$50 per day

Sidelines

$90 per day

$90 per day

Tiger Club

$150 per day

$150 per day

Tiger Field

$95 per day

$95 per day

Tiger Field (Front Sides)

$145 per day

$145 per day

Tiger Field (Front Center)

$175 per day

$175 per day

Golden Horseshoe (Front Standing)

$250 per day

$250 per day

3. Use switch or if statements to determine ticket prices. Then call the method
passing the ticket price and number of tickets.
Comments:

Add an image to the form.

ISDS 3107

User Interface

List of Controls and Values of Relevant Properties


Control
Type
Form

Control Name

Description

Property

Value

frmBayouTickets

Only form in
application

Text

Bayou Group
Ticket Sales
btnTotal
btnReset

ComboBox cboTigerPlaza

cboSidelines

cboTigerClub

cboTigerField

cboFrontSide

User selects if they


want the Tiger Plaza
seats
User selects if they
want the Sidelines
seats
User selects if they
want the Tiger Club
seats
User selects if they
want the Tiger Field
seats
User selects if they
want the Tiger Field
Front Side seats

Total
Button
Reset
Button
btnExit
Exit Button
Text
Tiger Plaza
Sidelines
Tiger Club
Tiger Field

Tiger Field Front


Side

ISDS 3107
cboFrontCenter

Radio
Button

User selects if they


want the Tiger Field
Front Center seats
cboGoldenHorseshoe User selects if they
want the Golden
Horseshoe seats
radTigerPlazaOne
If user selected
Text
Tiger Plaza and only
wants to attend one
day in that seating.
radTigerPlazaTwo
If user selected
Tiger Plaza and only
wants to attend two
days in that seating.
radSidelinesOne
If user selected
Sidelines and only
wants to attend one
day in that seating.
radSidelinesTwo
If user selected
Sidelines and only
wants to attend two
days in that seating.
radTigerClubOne
If user selected
Tiger Club and only
wants to attend one
day in that seating.
radTigerClubTwo
If user selected
Tiger Club and only
wants to attend two
day in that seating.
radTigerFieldOne
If user selected
Tiger Field and only
wants to attend one
day in that seating.
radTigerFieldTwo
If user selected
Tiger Field and only
wants to attend two
day in that seating.
radFrontSideOne
If user selected
Front Side and only
wants to attend one
day in that seating.
radFrontSidetwo
If user selected
Front Side and only
wants to attend two
day in that seating.

Tiger Field Front


Center
Golden Horseshoe
$45/day

$50/day

$90/day

$90/day

$150/day

$150/day

$95/day

$95/day

$145/day

$145/day

ISDS 3107
radFrontCenterOne

radFrontCenterTwo

radGoldenHorseshoe
One

radGoldernHorshoe
Two

Label

lblTwoday

lblSingleDay

lblNumberOfTickets

lblTotal

Button

btnTotal

btnReset
btnExit

If user selected
Front Cent and only
wants to attend one
day in that seating.
If user selected
Front Cent and only
wants to attend two
day in that seating.
If user selected
Golden Horseshoe
and only wants to
attend one day in
that seating.
If user selected
Golden Horseshoe
and only wants to
attend two day in
that seating.
Signifies that the
Text
amount listed is for
a 2 day pass
Signifies that the
amount listed is for
a single day pass
Tells the user to
input the number of
tickets they want
Signifies the Total
the it will cost for
the user
When clicked,
Text
displays total cost
for tickets.
When clicked, resets
the application.
When clicked, exits
the application

$175/day

$175/day

$250/day

$250/day

Two Day Pass


Single Day Pass
Number of
Tickets
Total
Total
Reset
Exit

ISDS 3107

Event Planning Document


Program Name:

Developer:

Object:

Object

Event Trigger
Click

Click

Event Processing
Calculate how much the tickets cost as the user
indicates which seating they want, whether want a
single or double day, and how many tickets they
want. And multiplying all of it.
Display Total
Clear Number of Tickets
Clear Total
Clear combobox choice.
Clear radio button choice.
Set focus on Form Bayou Tickets
Close the window and terminate the application

Load

Set Focus on Number of Tickets Text Box

btnCalculate

Click
btnReset

Date:

btnExit

frmBayouTickets

Das könnte Ihnen auch gefallen