Name:_Katherine Barrios Assignment: _1_ Design Steps of the Program Development Life Cycle Requirements Document Date Submitted: 2/6/12 Application Title: Purpose: Program Procedures: Algorithms, Processing, and Conditions: Notes and Restrictions: Comments: Raffle Prize Selection Your school has started selling raffle tickets for a scholarship fund that provides the winner a choice of raffle gifts. The winner can choose one of three prizes. So they can choose, the program must display each of the prizes upon request of the raffle winner. The winner then can make the choice of the prize he or she would like to receive. From a window on the screen, the user selects one of three raffle prizes. A picture of the prize is displayed in the window. The user then can choose the prize he or she wants to receive. 1. The user selects a prize. Then a picture of the prize is displayed in the window. 2. The user can select any of the three prizes. Only the picture for the selected prize should be displayed. 3. The user can select prizes back and forth to see the pictures for the prizes. 4. After the user finds a prize he or she wants, the user chooses that prize for delivery. 5. After the user chooses a prize, a message stating that a raffle prize has been chosen should be displayed. 6. After the User chooses a prize, the only allowable action is to exit the window. 1. The user should not be able to choose a prize until they have viewed the picture of at least one raffle prize. 1. The raffle prizes available are gas grill, a flat-screen television, and a laptop. Use Case Definition 1. The user opens the application. 2. The user selects a prize, and a picture of the prize is displayed in the window. 3. The user can select prizes back and forth to see the pictures for the prizes. 1
4. After the user finds a prize he or she wants, the user selects the Select Prize button for delivery. 5. The program displays a message stating that a raffle prize has been chosen. 6. The user terminates the program by clicking the Exit button or pressing ALT-X. User Interface List of the controls needed. Control Type Control Name Description Form frmraffleprizeselection Only form in application. Label lblinstructions Displays instructions on how to use the program. Label lblheading Displays the Title of the Application. 2
Label lblmessage Displays message to user that the prize has been selected. Button btngrill When clicked, it displays the Grill picture and hides the TV and Laptop pictures. Button btnlaptop When clicked, it displays the Laptop picture and hides the TV and Grill pictures. Button btntv When clicked, it displays the TV picture and hides the Grill and Laptop pictures. Button btnselect When clicked, displays a message to the user that the prize has been selected. Button btnexit When clicked, the program will terminate. Picture picgrill Displays a picture of the Grill prize when Grill button is clicked. Picture piclaptop Displays a picture of the Laptop prize when Laptop button is clicked. Picture pictv Displays a picture of the TV prize when TV button is clicked. 3
Values of Each Control's Relevant Properties. Control Type Control Name Property Value Form frmraffleprizeselection Text Barrios_Raffle Prize Selection Accept Button Cancel Button btnselect btnexit Label lblinstructions Text Choose a prize and then click the Select Prize button Label lblheading Text Raffle Prize Selection Label lblmessage Text You have completed your prize selection Button btngrill Text Grill Button btnlaptop Text Laptop Button btntv Text TV Button btnselect Text Select Button btnexit Text E&xit Picture picgrill Picture Grill Image Picture piclaptop Picture Laptop Image Picture pictv Picture TV Image Event Planning Document Program Name: Raffle Prize Selection Developer: Katherine Object: frmraffleprizeselection Date: 2/6/12 Object Event Trigger Event Processing btngrill Click Display Grill picture Hide Laptop Picture Hide TV picture btnlaptop Click Display Laptop picture Hide Grill picture 4
Hide TV picture btntv Click Display TV picture Hide Grill picture Hide Laptop picture btnselect Click Disable Grill button Disable Laptop button Disable TV button Disable Select Prize button Display conformation message btnexit Click Close the window and terminate the program ALT-X frmraffleprizeselection Load Set focus on the Prize buttons Display instructions Display Title of Application 5