Presentation is loading. Please wait.

Presentation is loading. Please wait.

ASSIGNMENT OBJECTIVES TO PRACTICE OR USE THE FOLLOWING: 1.CONTROLS: - buttons, labels, picture boxes, groupboxes, and a form 2. EVENTS: - Click, MouseDown,

Similar presentations


Presentation on theme: "ASSIGNMENT OBJECTIVES TO PRACTICE OR USE THE FOLLOWING: 1.CONTROLS: - buttons, labels, picture boxes, groupboxes, and a form 2. EVENTS: - Click, MouseDown,"— Presentation transcript:

1 ASSIGNMENT OBJECTIVES TO PRACTICE OR USE THE FOLLOWING: 1.CONTROLS: - buttons, labels, picture boxes, groupboxes, and a form 2. 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 use the Visible property. 8.To learn how to exit a program using Me.Close(). “Close” is a method (a behavior). 9.To learn how to accumulate using a counter variable. 10. To learn how to DIMension a variable. 11. To learn how to submit a program. Note: Items in red are new for this assignment.

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, or possibly the tutoring center.

3 Due Dates: Part-01 is due Feb 27 and Part-02 is due Mar 6 START ASAP! 20 POINTS: 5 POINTS FOR PART-01 AND 15 POINTS FOR PART-02. Purpose: The manager of a Blockbuster Video store has asked you to modify Program-01 so that he can track which categories are selected most often. Requirements for Part-01: 1.Modify Program-01 so that the GUI looks like the one below. It must reasonably match. 2.The START button behaves like the Selection buttons on MouseDown and MouseUp events: That is, all buttons must turn BLACK when pressed and WHITE when released. 3.Note the four GroupBoxes. Be sure to paste or create the controls inside these GroupBoxes. If the controls (such as Labels and Buttons) are correctly placed inside these GroupBoxes, you can move the GroupBoxes around the Form and the controls within will remain in place. In other words the GroupBox Control and the Controls within it, become part of a “Group”. (Continued on the next slide.) Programming Assignment 02 Part #1 Necessary prerequisites 1.Chapters 1, 2, 3, 4 2.Notes: 010, 020, 030, 040 3.How to accumulate 4.Visible Property 5. GroupBoxes 7. Class Lectures. Leave room here for Part-02’s stuff. ButtonLocationAisle Color ComedyAisle 1Brown DramaAisle 2Blue ActionAisle 3Orange Sci-FiAisle 4Green HorrorAisle 5Red New Releases Aisle 6Yellow Don’t forget: All buttons must turn BLACK when pressed and WHITE when released Store’s layout

4 Requirements for Part-01 continued: HOW TO PLACE THE CONTROLS INSIDE THE GROUPBOXES: 1.From the ToolBox, drag a GroupBox onto the Form. Size the GroupBox to the size desired, approximately. Drag the Controls such as Labels and Buttons onto the GroupBox and position them. Note that when you move the GroupBox, the Controls within the GroupBox stay in place. 2.You may also Paste the Controls into the GroupBox. WHEN THE PROGRAM IS STARTED: 1.When the program is initially run, it will look like the GUI below. 2.Next, the User presses on the START button and the form will look like the one on the next slide: Programming Assignment 02

5 Requirements for Part-01 continued: AFTER THE START BUTTON IS PRESSED: 3.The GUI now looks like the one below: 4.The GUI is now ready for someone to make the first selection. Programming Assignment 02 The six white boxes are labels. These labels will display the number of times its corresponding selection button is pressed.

6 Requirements for Part-01 continued: WHEN THE PROGRAM IS STARTED: 5.After many Customers have used the GUI, it now looks like the one below. Note how a “count” has been kept for each time the category was selected. Note that “New Releases” was selected 16 times. 6.Basically, the program works the same as Prog-01. The main differences are below: a. The Selection buttons are not Visible until the START button is pressed. b.Each time a Selection button is pressed, a total count is maintain in a Label. Next Thursday, Feb 27, you must demonstrate your program to Dr. Scanlan. If it works as indicated, you will receive 5 points. If it does not work as indicated, you will receive zero point: All or nothing. 7.Bring a Quiz Form with you: FORM: Apperson 28190 KNOW YOUR ID NUMBER. Programming Assignment 02 Note that a count has been kept for each time the corresponding category button was pressed and the numbers are centered in the labels.

7 Requirements continued: 8.Your program must have internal documentation. See the example on the next two slides. This Part-02 will be accepted late, but with a 50% loss of points for each class day late. 11.You must fill out and submit Form-B for Part-02. Programming Assignment 02

8 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.

9 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

10 Programming Assignment 02 THIS IS THE LAST SLIDE NEEDED FOR PART-01. REMEMBER, PART-01 WILL BE GRADED IN THE LAB NEXT THURSDAY. THIS PROGRAM WAS BROKEN INTO TWO PARTS SO THAT NEW PROGRAMMERS IN THE CLASS WILL NOT GET “OVERWHELMED”.


Download ppt "ASSIGNMENT OBJECTIVES TO PRACTICE OR USE THE FOLLOWING: 1.CONTROLS: - buttons, labels, picture boxes, groupboxes, and a form 2. EVENTS: - Click, MouseDown,"

Similar presentations


Ads by Google