You are on page 1of 4

St.

Bridget College
Batangas City
INTEGRATED BASIC EDUCATION DEPARTMENT
PAASCU Accredited
Contact Nos. (043) 980-5669 or (043) 722-2950

Subject: Computer
Grade Level: 10
Unit 4: Object-Oriented Programming
Lesson 15: Validating User’s Input
LM #: 4.1
Date Covered: March 14-25, 2022

Content Standard
The learner demonstrates an understanding of the four basic techniques used to validate user’s
input, pre-defined validation method, how the restricting user’s input works, inputs to validate a field
data, and how to validate a form data and user’s event.

Performance Standard
The learner should be able to create a VB .Net program validating the user’s input in the field
data, form data, and event.

Formation Standard
The learner shows attention to detail in creating a VB .Net program to ensure the data entered
by the user is acceptable and with the correct format or type.

Core Values
Zeal (Enthusiasm)

Essential Question:
1. What is input validation?
2. How to restrict and validate user’s input?

Enduring Understanding:
 Input validation is the process of checking the data entered by the user before that data is
saved.
In simple terms, validation refers to ensuring the entered data is acceptable.
 Restricting user input can be done through intrinsic validation. They are commonly used
standard
control wherein built-in control properties and methods are available to the user for restricting and
validating user input.

Learning Targets
Acquisition
 Define input validation and pre-defined validation method.
 Know the inputs to validate field data.

Meaning Making
Explain how to validate a form data and user’s event.

Transfer
 Create a VB .Net program validating the user’s input in the field data, form data, and event
using the techniques and follow the guidelines to validate the user input.
1. Introduction
In this lesson, you will learn how to validate a user’s input and how it can improve the quality of
data stored. At the end of this module, you are expected to:
1. define predefined methods
2. restrict user’s action using different techniques
3. determine the appropriate validation method used in a program
4. control the order of user data entry in form fields.

2. Anticipatory Set
REVIEW
The class will have a review of the previous lesson.

WORD SEARCH CHALLENGE


Instructions: Find and circle the vocabulary words in the grid. Look for the words in all directions: top-
down, left-right, and diagonally.
D A T E T I M E P I C K E R T DateTimePicker
TextBox
M P M Q S A E D T G V C S E E PasswordChar
A V A L I D A T I O N M K R X IsNumeric
IsDate
S Y X S T M C S F N A Z M R T MaskedTextBox
Validation
K U L F S X O B K C E H C O B CheckBox
E K E R P W C T A N A L I R O MaxLength
ReadOnly
D I N Y L N O D A E R N Y P X ErrorProvider
T E G I I C N R C H A M S R T

E M T E S T C F D A N C I O R

X I H N D H R T A C S D W V U

T C K D A W P L O Y H V S I R

B A R S T L G U W E R A L D E

O I I H E R I C H M A T R E F

X C I R E M U N S I Q A M R Z

3. Learning Activities
A. iTRY
Answer the “iTRY" activity on page 142 of your textbook.

B. READ AND LEARN


Read Lesson 15 Validating User’s Input in your textbook pp. 143-152.

C. PRESENTATION OF LESSON
To discuss the lesson, there will be synchronous learning using Zoom via MS Teams.

Guide Questions:
 What is validation?
 What are the techniques used to validate user input?
 How to prevent users from entering invalid data?
 Why consider validation when designing a program?
 What is intrinsic validation?
 How important is an error provider?
 What is validating event?

D. GRAND PERFORMANCE TASK


With the success you've done in the Student Information, your IT Manager in R&R Software
company, assigned you to add restrictions and validate users’ input in the field data, form data, and
event. The form must contain the following validation:
 Student ID - ErrorProvider
 First Name - Validating Event & Character Casing
 Last Name ErrorProvider- & CharacterCasing
 School - ReadOnly – (Saint Bridget College)
 Address - MaxLength
 Contact Number - MaskedTextBox1 (Mask Properties)
 My Goals in Life - SaveFileDialog

Rubrics
Your Student Information program and output will be evaluated based on the criteria below.
NEEDS HELP GOOD EXCELLENT
CRITERIA TOTAL

Does what it was


Works most of the time, designed to do. There
Program and The program does
but there are many gaps may be a few
Codes not work.
and incorrect codes mistakes but it does
(15 pts)
throughout. not distract from the
overall program.
The user interface is
The user interface easy to understand,
The user interface
doesn’t work and how to use the
Visual Design requires some
controls are program and what it is
(15 pts) explanation and controls
disorganized or for. Controls are
are partially organized.
incomplete. visually organized and
complete.
The students show
The student exceeds
Fast Coding no effort in finishing The students finish the
the time limit.
(10 pts) the program. program on time.

4. Formative Assessment
Target Goal: 90% of the students will get at least 85% on the Formative Assessment.
To check your understanding of the topic, using the CLE Quiz answer the iWORKSHEET 15.

iWORKSHEET 15
IDENTIFICATION: Read the statements carefully and type your answer on the blank.
___________1. This control restricts entry to on or off.
___________2. This control provides a list of valid entries.
___________3. Another way to use intrinsic validation for user input is by using this control.
___________4. It is the process of checking the data entered by the user before that data is saved.
___________5. This control restricts entry to checked or unchecked.
___________6. It is used to display user specific message in a dialog box and waits until the user
clicks the button.
___________7. It is ideal for input value validation.
___________8. It is used to notify the user that there is invalid action or data being provided.
___________9. It is the essential or native facility of VB that validates user input.
___________10. It is the process of validating the fields on a form all at once.

5. Reflect
COMPLETE THE SENTENCE
I clearly understand that _______________________________________________________
___________________________________________________________________________.
I am not sure about ____________________________________________________________
___________________________________________________________________________.

6. Summative Assessment
There will be a Summative Assessment after Lesson 16

7. Closure
POST-IT
For this activity, post your one technique in validating user’s input, pre-defined validation
method,

Checked: 3/16/22

Remarks: Minor grammatical correction

You might also like