ASSIGNMENT OBJECTIVES

Slides:



Advertisements
Similar presentations
MIS 3200 – Unit 4 Complex Conditional Statements – else if – switch.
Advertisements

1.
1 ASSIGNMENT OBJECTIVES LEARN TO USE: 1. Textboxes, labels, butttons, picture boxes, properties, radio buttons, checkbox, and methods, group boxes 2.Arithmetic.
IS 1181 IS 118 Introduction to Development Tools VB Chapter 06.
Using the Visual Basic Editor Visual Basic for Applications 1.
Program 04 (Fall 2014) VB Auto Center Problem Purpose: You are to add Arguments and Parameters to Program 03. See slides 3, 4, and 5 for additional details.
ACCESS 2007 ASSIGNMENT SPRING 2014 Purpose: To give students a basic understanding of ACCESS 2007 by constructing a database using the Ready2Read bookstore.
Microsoft Visual Basic 2005 CHAPTER 8 Using Procedures and Exception Handling.
Apply Sub Procedures/Methods and User Defined Functions
Visual Basic Chapter 1 Mr. Wangler.
Microsoft Visual Basic 2012 Using Procedures and Exception Handling CHAPTER SEVEN.
Microsoft Visual Basic 2008 CHAPTER 8 Using Procedures and Exception Handling.
Chapter 1 P. 1 Writing Windows applications with Visual Basic Figure 1.1 The first program works as follows: (These operations can be performed in any.
Why to Create a Procedure
Moodle (Course Management Systems). Assignments 1 Assignments are a refreshingly simple method for collecting student work. They are a simple and flexible.
5-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
© 2006 Lawrenceville Press Slide 1 Chapter 3 Visual Basic Interface.
Chapter 3 Introducing Visual Basic.NET. 3.1 Visual Basic.NET Windows Programming -Used to create Windows, Web, and Console applications -Uses predefined.
Using the ACCESS 2007 Ready2Read example as a model for your database assignment you are to do the following: 1.Set up a database for a gold, silver, and.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Fund Raiser Application Introducing Scope, Pass-by-Reference and Option Strict.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 5 Decision Making.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 7 Using Menus, Common Dialogs, Procedures, Functions, and Arrays.
 Application – another name for a program.  Interface – is what appears on the screen when the application is running.  Program Code – is instructions.
Extending HTML CPSC 120 Principles of Computer Science April 9, 2012.
Microsoft Visual Basic 2005 CHAPTER 4 Variables and Arithmetic Operations.
Chapter 4 Variables and constants. 4.1 Variables -Use of variables is good programming style -easier to modify -easier for a programmer to understand.
COPYRIGHT Spring 2006: Dr. David Scanlan, CSUS ASSIGNMENT OBJECTIVES 1. To learn how to use these controls: - buttons, labels, picture boxes, and a form.
Programming Assignment 05 Blue Jet Flight Information with Class and Inheritance General and specific program requirements: 1. Problem: Blue Jet has just.
Chapter Two Creating a First Project in Visual Basic.
Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 3 Variables, Constants, Methods, and Calculations.
ASSIGNMENT OBJECTIVES TO PRACTICE OR USE THE FOLLOWING: 1.CONTROLS: - buttons, labels, picture boxes, groupboxes, and a form 2. EVENTS: - Click, MouseDown,
Applications Development
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,
Practical Programming COMP153-08S Week 5 Lecture 1: Screen Design Subroutines and Functions.
ASSIGNMENT OBJECTIVES TO PRACTICE OR USE THE FOLLOWING: 1.CONTROLS: - buttons, labels, picture boxes, groupboxes, and a form 2. EVENTS: - Click, MouseDown,
Chapter 4 Variables and constants. 4.1 Variables -Use of variables is good programming style -easier to modify -easier for a programmer to understand.
Program 03 Fall 2014 VB Auto Center Problem Purpose: VB Auto Center has ask you to write a program that will calculate the typical values involved in the.
Lesson 1. Security At the menu bar at the top you will see the word Tools. Click your mouse on Tools scroll down to Macro. Move the Mouse over and down.
1 ASSIGNMENT OBJECTIVES LEARN TO USE: 1. Textboxes, labels, buttons, picture boxes, properties, and methods 2.Arithmetic computations 3.Variables and constants.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Student Grades Application Introducing Two-Dimensional Arrays and RadioButton.
Controlling Program Flow with Decision Structures.
Microsoft Visual Basic 2012 CHAPTER FOUR Variables and Arithmetic Operations.
More Visual Basic!. Creating a Standalone Program A standalone program will allow you to make a program file that can be run like other Windows programs,
ASSIGNMENT OBJECTIVES TO PRACTICE OR USE THE FOLLOWING: 1.CONTROLS: - buttons, labels, textbox for password, picture boxes, groupboxes, and a panel. 2.
Microsoft Visual Basic 2012: Reloaded Fifth Edition Chapter One An Introduction to Visual Basic 2012.
Chapter 4.  Variables – named memory location that stores a value.  Variables allows the use of meaningful names which makes the code easier to read.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 6 Looping and Multiple Forms.
COMPREHENSIVE Excel Tutorial 12 Expanding Excel with Visual Basic for Applications.
Perform a complete mail merge Lesson 14 By the end of this lesson you will be able to complete the following: Use the Mail Merge Wizard to perform a basic.
Chapter 8 Multiple Forms, Modules, and Menus. Introduction This chapter demonstrates how to: – Add multiple forms to a project – Create a module to hold.
Microsoft Visual Basic 2010 CHAPTER FOUR Variables and Arithmetic Operations.
POWERTEACHER & GRADEBOOK Day to Day User Tutorial
A variable is a name for a value stored in memory.
IS 350 Application Structure
ASSIGNMENT OBJECTIVES
Variables and Arithmetic Operations
Using Procedures and Exception Handling
CS 2340: Programming in VB Instructor: Dr. Qi Yang Office: 213 Ullrich
MIS 3200 – Unit 4 Complex Conditional Statements else if switch.
Variables and Arithmetic Operations
More Selections BIS1523 – Lecture 9.
STARTING OUT WITH Visual Basic 2008
Conditions and Ifs BIS1523 – Lecture 8.
CIS16 Application Development Programming with Visual Basic
Part B – Structured Exception Handling
Menus and Dialogs.
Running a Java Program using Blue Jay.
Introduction to Programming
Presentation transcript:

ASSIGNMENT OBJECTIVES TO PRACTICE OR USE THE FOLLOWING: 1. CONTROLS: - buttons, labels, picture boxes, groupboxes, form, check boxes and radio buttons. 2. EVENTS: - Click 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 check boxes and radio buttons. 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 variables. 11.To learn how to submit a program. 12. Use division and subtraction. 13. IF-THEN-ELSE 14. SELECT Statement 15. Functional level modules 16. Arguments and Parameters (both ByVal and ByRef) 17. Hierarchy (structure) charts 18. Classes: properties and methods 19. Regions: #Region “MODULE’S FUNCTION” ‘Your code goes here. #End Region Note: Items in red may be new for this assignment.

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.

Programming Assignment 05 Due: May 1, 2014 30 POINTS: Purpose: You are to take program 4 and modify it so that it matches these requirements: 1. This program is EXACTLY like program 04 EXCEPT you will eliminate these modules: (1) ”Calculate Letter Grade Without + -”, and (2) “Calculate Letter Grade With + -”. Instead of these two modules, you will write and use two classes that perform these same functions. 2. See the class diagrams on the next slides for (1) the names of the two classes, (2) the properties in the classes and (3) the single method in each of these two classes. 3. You are to send the percentage score as a property value to the class and receive back the letter grade. You must use a FUNCTION procedure for the single method in each of the two classes. 4. You must use the names supplied in the class diagram on the next slide. 5. The grade cutoffs are CONSTANTS within the class. Thus, the user cannot SET these cutoffs, but the user will be able to GET them. These cutoffs are percentage cutoffs such as 90%, 80%, 70%, 60%, etc. and 97%, 93%, 90%, 87%, 83%, 80%, etc. 6. You must create the class in the new-project dialog box in the IDE. This class will be a file within your Solution file. The names of the files must be the class names: “clsLetterGradeWOPlusMinus” and “clsLetterGradeWPlusMinus”. 7. Don’t forget to use internal documentation within these classes. 8. The following slides will give you more information on what to do. 9. You are to use #Region…#End Region on all modules of code. (See next slide.) 10. You must use Option Strict ON 11. ASK QUESTIONS IN CLASS IF YOU DO NOT UNDERSTAND SOMETHING. Necessary prerequisites 1. Chapters 1, 2, 3, 4, 5,6, 12 2. Notes: Notes Chapters 1,2,3,4,6,12 5. GroupBoxes 6. Subtraction and division 7. ByVal and ByRef 8. Try/Catch 9. Classes: properties and methods 10. Message box 11. Hierarchy chart. 12. Class Lectures

IMPORTANT: Notice how nicely the regions organize your code. Programming Assignment 05 Use the names given below for your Regions How to define a region: #Region “MODULE’S FUNCTION” ‘Place your code here. #End Region IMPORTANT: Notice how nicely the regions organize your code.

Programming Assignment 05 This diagram of the class is called a CLASS DIAGRAM. Class name clsLetterGradeWOPlusMinus PercentageScore A_Cutoff B_Cutoff C_Cutoff D_Cutoff ComputeLetterGrade Properties Note: THE NAME OF THIS METHOD HAS BEEN CHANGED FROM ComputeGrade TO ComputeLetterGrade. Change your code! (Reason: The new name is a better name.) Method

Programming Assignment 05 Eliminate this module and add the module below. Call the module below from the “GradesWithout+ -” module. Sub CalculateLetterGradeWithoutPlusAndMinus(ByVal decPercentageScore As Decimal, _ ByRef strLetterGrade As String) Dim objLetterGradeWOPlusMinus As New clsLetterGradeWOPlusMinus ‘ PLACE YOUR CODE HERE. ‘ THIS CODE WILL USE YOUR CLASS TO CALCULATE THE LETTER GRADE. ‘ THIS MODULE HAS NO CASE LOGIC IN IT. THE CASE LOGIC IS NOW IN YOUR CLASS. ‘ Use decPercentageScore to SET the PercentageScore property. ‘ Use the ComputeLetterGrade method to return the letter grade from the class. End Sub

Programming Assignment 05 This diagram of the class is called a CLASS DIAGRAM. Class name clsLetterGradeWithPlusMinus PercentageScore A_Plus_Cutoff A_Cutoff A_Minus_Cutoff B_Plus_Cutoff Continue with other Cutoffs… ComputeLetterGrade Properties Note: THE NAME OF THIS METHOD HAS BEEN CHANGED FROM ComputeGrade TO ComputeLetterGrade. Change your code! (Reason: The new name is a better name.) Method

Programming Assignment 05 Eliminate this module. Add this module and call it from the “GradesWith+ -” module. Sub CalculateLetterGradeWithPlusAndMinus(ByVal decPercentageScore As Decimal, _ ByRef strLetterGrade As String) Dim objLetterGradeWithPlusMinus As New clsLetterGradeWithPlusMinus ‘ PLACE YOUR CODE HERE. ‘ THIS CODE WILL USE YOUR CLASS TO CALCULATE THE LETTER GRADE. ‘ THIS MODULE HAS NO CASE LOGIC IN IT. THE CASE LOGIC IS NOW IN YOUR CLASS. ‘ Use decPercentageScore to SET the PercentageScore property. ‘ Use the ComputeLetterGrade method to return the letter grade from the class. End Sub

SUB PROCEDURE DOCUMENTATION 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.

SUB PROCEDURE DOCUMENTATION AN EXAMPLE OF HOW INTERNAL DOCUMENTATION MUST BE DONE. Fig 2-350 INTERNAL DOCUMENTATION EXAMPLE 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.

Programming Assignment 05 READ NOTES ON CHAPTER 12 AND READ CHAPTER 12 IN THE BOOK. You must use Form-A and Form-B for this assignment, not previous assignments >>>>>>>>>>>>

Programming Assignment 05 Form-A Form-A STUDENT FILLS IN THESE BLANKS: LAST NAME (PRINT):_______________________________ FIRST NAME (PRINT):________________________ PROGRAM (Circle) 1 2 3 4 5 6 7 8 9 DATE DUE: May 1, 2014 DATE SUBMITTED:___________________ GRADER FILLS IN THESE BLANKS: DESCRIPTION POINTS POINTS EARNED Correct internal documentation within classes, too: 0 OR 2 _____________ Reasonably correct GUI: 0 OR 1 _____________ A-thru-F part runs correctly using nested If-Then-Else: 0 OR 12 _____________ With plus/minus runs correctly using Select statement: 0 OR 12 _____________ Proper style for object names: 0 OR 1 _____________ Proper style for variable and constant names 0 OR 2 _____________ Failure to submit program correctly (See Form-B) 0 OR -2 _____________ Using textbox outside of Validate Data module: 0 OR -30 _____________ (Exception: You must clear the textbox, also.) Improper use of ByVal or ByRef. For each occurrence: 0 OR -15 _____________ Using more than one module-level variable in the form code: 0 OR -30 _____________ Incorrect input error checking. For each occurrence: 0 OR -15 _____________ Failure to modularize according to the hierarchy chart: 0 OR -30 _____________ Failure to substitute classes for each of the two modules: 0 OR -30 _____________ Failure to use two files for your two classes: 0 OR -15 _____________ Failure to use the names given in this assignment: class names, method names, and property names. 0 OR -10 _____________ Failure to use regions as indicated on slide 4. 0 OR -10 _____________ Failure to use OPTION STRICT ON 0 OR -10 Late penalty (5 points off for each class day late.): _____________ TOTAL POINTS OUT OF A POSSIBLE 30: _____________ Form-A is continued on the next page >>>>>

Programming Assignment 05 Form-A Form-A FORM A CONTINUED: Comments:_______________________________________________________________________________________ _________________________________________________________________________________________________

CUT OUT THIS FORM ALONG THE DOTTED EDGES AND TAPE IT TO THE ENVELOPE. Form-B Form-B 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-R or DVD-R. Do not lick to seal. Use metal clip. NOTE: You may also use the self sealing type of envelope found in the bookstore. STUDENT FILLS IN THESE BLANKS: LAST NAME (PRINT) :_______________________________ FIRST NAME (PRINT):________________________ PROGRAM (Circle) 1 2 3 4 5 6 7 8 DATE DUE:_________________ DATE SUBMITTED:__________________ PLACE A CHECK NEXT TO THE FOLLOWING: ____ Save the Program on a CD-R or DVD-R using the following folder and sub-folder: Your Name\Program 04 ____ Print your full name and program number on the CD-R or DVD- R using a permanent black marker. ____ Sign your full name with permanent black marker on the CD or DVD. ____ Submit the CD-R or DVD-R in required envelope style not much larger than the CD-R or DVD-R. ____ Place the CD-R or DVD-R in the envelope. ____ Cut out this form along dotted edges and TAPE it to the envelope. ____ Be sure a working program is on the disk and it can be read. Zero points if PROGRAM is not on the disk or can’t be read. If not submitted correctly 5 points will be deducted from your score.!!

Program #5 Spring 2014 Form-B Form-B 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-R or DVD-R. Do not lick to seal. Use metal clip. NOTE: You may also use the self sealing type of envelope found in the bookstore. STUDENT FILLS IN THESE BLANKS: LAST NAME (PRINT) :_______________________________ FIRST NAME (PRINT):________________________ PROGRAM (Circle) 1 2 3 4 5 6 7 8 DATE DUE:_________________ DATE SUBMITTED:__________________ PLACE A CHECK NEXT TO THE FOLLOWING: ____ Save the Program on a CD-R or DVD-R using the following folder and sub-folder: Your Name\Program 05 ____ Print your full name and program number on the CD-R or DVD- R using a permanent black marker. ____ Sign your full name with permanent black marker on the CD or DVD. ____ Submit the CD-R or DVD-R in required envelope style not much larger than the CD-R or DVD-R. ____ Place the CD-R or DVD-R in the envelope. ____ Cut out this form along dotted edges and TAPE it to the envelope. ____ Be sure a working program is on the disk and it can be read. Zero points if PROGRAM is not on the disk or can’t be read. If not submitted correctly 5 points will be deducted from your score.!!