Download presentation
Presentation is loading. Please wait.
Published byShanon Greer Modified over 9 years ago
1
ASSIGNMENT OBJECTIVES 1. To learn how to use these controls: - buttons, labels, picture boxes, and a form. 2. To learn how to use these events: - Click, MouseDown, and MouseUp 3. To learn how to use internal documentation 4. To learn how to place an icon into a button 5. To learn how to set properties in the Property Window. 6.To learn how to set properties in the code. 7.To learn how to exit a program using Me.Close(). “Close” is a method (a behavior). 8. To learn how to submit a program.
2
GETTING HELP: You may ask another student for help, but you must not copy their code. Failure of the course will result for the person giving code and the person receiving code. I can get limited help from other students. For additional help, I need to see Dr. Scanlan, his assistant, or the tutoring center.
3
Due Date: Sept 25, 2014 START ASAP! 10 POINTS Purpose: You are the owner of a Blockbuster Video Store and you need to set up a a kiosk to help customers locate videos. The store is color-coded so that each movie category is in a physical section of the store with different colored shelves and different colored aisle carpet. Requirements: NOTE: THE COMPILED PROGRAM IN ZIP FORM IS ON THE COURSE WEB SITE. DOWNLOAD AND RUN THE PROGAM TO SEE HOW IT WORKS. YOUR PROGRAM MUST WORK EXACTLY THE SAME WAY, AND IT MUST LOOK SIMILAR. 1.Create a form with seven buttons and six labels. You will need two picture objects for the Blockbuster icon. You can find this icon using Google's image search. Find something very similar if you have trouble finding the exact one. 2.The form must have an exit button using the icon below, or something very similar. 3.Six buttons have video categories displayed as text. 4. The GUI must reasonably match the one on this slide. (Continued on the next slide.) Programming Assignment 01 ButtonLocationAisle Color ComedyAisle 1Brown DramaAisle 2Blue ActionAisle 3Orange Sci-FiAisle 4Green HorrorAisle 5Red New Releases Aisle 6Yellow Comedy Aisle LocationMake a Selection Aisle Color Drama Action Sci-fi Horror New Releases Necessary prerequisites 1.Chapters 1, 2 and notes 2.Notes Ch 2, 3, (Videos Ch 4) 3.Mouse down and up events. 4.Picture Box Properties 5. In-class lectures. In-Store Video Locator Store’s layout
4
Requirements continued: 6.Do not use the default names for the objects mentioned below. Use the names supplied. Use the default names for all other objects. Button objects’ names: btnAction btnComedy btnDrama btnHorror btnSci_Fi btnNewReleases btnExit Label objects’ names: lblDisplayAisleLocation lblDisplayAisleColor 7.Button MouseDown EVENT: 1.On a MouseDown event, the pressed button turns black. 2.On a MouseDown event, the text in the pressed button turns white. 3.On a MouseDown event, the aisle location is displayed in lblDisplayAisleLocation. Note: lblDisplayAisleLocation’s backcolor always stays white. 4.On a MouseDown event, the aisle color is displayed in lblDisplayAisleColor. It must be displayed in the backcolor. 8.Button MouseUp EVENT: 1.On a MouseUp event, the button turns white. 2.On a MouseUp event, the text in the pressed button turns black. 3.On a MouseUp event, lblDisplayAisleLocation is cleared of its text; that is, the aisle location. 4.On a MouseUp event, lblDisplayAisleColor is reset to its original backcolor, white. Programming Assignment 01 ButtonLocationAisle Color ComedyAisle 1Brown DramaAisle 2Blue ActionAisle 3Orange Sci-FiAisle 4Green HorrorAisle 5Red New Releases Aisle 6Yellow Store’s layout Aisle LocationMake a Selection Aisle Color Comedy Drama Action Sci-fi Horror New Releases In-Store Video Locator Use a white backcolor PICTURE BOX OBJECTS MouseDown event is triggered by pressing the left mouse button down. MouseUp event is triggered by releasing the left mouse button after it has been pressed down.
5
Requirements continued: 9.Your program must have internal documentation. See the example on the next two slides. 10.This program will be accepted late, but with a 50% loss of points for each class day late. Must be handed in the first 10 minutes of class. If not, one class day late. 11.You must fill out Form-B. See the slides at the end. Programming Assignment 01
6
AN EXAMPLE OF HOW INTERNAL DOCUMENTATION MUST BE DONE. Fig 2-330 INTERNAL DOCUMENTATION EXAMPLE PROGRAM DOCUMATION The program must have documentation at its beginning. You MUST use this form for your programs. SUB PROCEDURE DOCUMENTATION Each procedure must have documentation at its beginning. You MUST use this form for your programs. The heading must be all caps and contain no more than four words. This is not your code; it is an example of how your code MUST be documented.
7
Fig 2-350 SUB PROCEDURE DOCUMENTATION Each procedure must have documentation at its beginning. You MUST Use this form for your programs. The heading must be all caps and contain no more than four words. AN EXAMPLE OF HOW INTERNAL DOCUMENTATION MUST BE DONE. INTERNAL DOCUMENTATION EXAMPLE This is not your code; it is an example of how your code MUST be documented.
8
Form-A Programming Assignment 01 STUDENT FILLS IN THESE BLANKS: LAST NAME:_______________________________ FIRST NAME:________________________ PROGRAM (Circle) 1 2 3 4 5 6 7 8 9 DATE DUE:_____________________ DATE SUBMITTED:___________________ GRADER FILLS IN THESE BLANKS: DESCRIPTIONPOINTS POSSIBLEPOINTS EARNED Correct internal documentation:0 OR 2_____________ Reasonably correct GUI:0 OR 1_____________ Program runs correctly:0 OR 6_____________ Proper style for object names:0 OR 1_____________ Failure to submit program correctly (See Form-B) 0 OR -2_____________ Late penalty:-5 OR -10_____________ TOTAL POINTS OUT OF A POSSIBLE 10:_____________ No points if the program is not readable on the CD or DVD-R…NO exceptions
9
Form-BForm-b Programming Assignment 01 STUDENT FILLS IN THESE BLANKS: PRINT, PRINT LAST NAME:____________________________________ PRINT, PRINT FIRST NAME:______________________________ PROGRAM (Circle) 1 2 3 4 5 6 7 8 DATE DUE:_________________ DATE SUBMITTED:__________________ PLACE A CHECK NEXT TO THE FOLLOWING: 1.____Saved the Program on a CD using the following directory and sub-directory: Drive Letter:\Your Name\Program01 2.____Printed your full name and program number on the CD using a permanent black marker, then sign it with the marker. 3.____Submitted the CD in required envelope style not much larger than the CD. 4.____Placed the CD in the envelope. 5.____Cut out this form along dotted edges and TAPE it to the envelope. 6.You may use a DVD-R instead of a CD. 7.No points if the program is not on the CD or DVD or it can’t be read. CUT OUT THIS FORM ALONG THE DOTTED EDGES AND TAPE IT TO THE ENVELOPE. YOU MUST USE THIS STYLE THAT IS ABOUT THE SIZE OF YOUR CD or DVD-R. Do not lick to seal. Use metal clip. You may also use the self-seal style.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.