Professional Documents
Culture Documents
IF UBAYA
(Infor+SI+MM+ITDD)
Learning Method
14 Weeks of lessons
6 Hours per week (2 x 3 Hours per meeting)
iTALC
There is a software that we use to see all the
students monitor, named: iTALC
Because we can see all of your activities in
your computer, please use all of your time in
the Labs to do something that is related to
ALPRO only.
Software
Software: Visual Studio(VS) 2013 or 2015
All labs use VS 2013
You can download the software for FREE and
LEGAL from: dreamspark.ubaya.ac.id
Marking
Final Mark (NMA) = 40% Mid Term Mark (NTS) +
60% Final Term Mark (NAS)
Mid Term Mark = 5% selfie + 10% class engagement +
10% Practice work1 + 15% Practice work2 +
20% Quiz + 40% Mid Term Exam
Final Term Mark = 10% class engagement +
15% Practice work1 + 15% Practice work2 +
20% Quiz + 40% Mid Term Exam
Note: NMA=Nilai Mentah Akhir, NTS=Nilai Tengah Semester,
NAS=Nilai Akhir Semester
6
GRADE
Grade Point
AB
3.5
BC
2.5
NMA < 40
0
7
Learning Programming
Programming is not just a knowledge,
but a SKILL that can only be mastered
by practicing it regularly
What is a program?
A program is
a collection of statements / commands,
that is arranged in a certain order,
and be written in a certain programming
language and rule,
to perform a certain process.
11
Executing a program
How can computer understand the
commands from human?
We need a software that can translate the
command from human language to
machine language
In this case:
The software that we will use is: Visual Studio
The human language that we will use is: C#
12
The language: C#
Although it looks like English, some rules
in C# language IS DIFFERENT FROM the
rules in English
For example, the full stop in English is .
but the full stop in C# is ;
In English, you can write conditions
without bracket but in C# all conditions
must be put inside bracket
and so on
13
The language: C#
Therefore:
You should follow STRICTLY to the rules
and the grammar of C# language.
Unlike human, computer WILL NOT
understand your statements/commands if
you make a typing mistake in your code.
14
16
object of Textbox
object of Buttons
19
Property
You can change the characteristics of the
object through its Property.
For example, there are several properties
for a button that you can use to change
the button background color, its text, size,
font, etc.
You can change the value of a property
using two ways:
Change directly in the VS Design View
Change by writing the code
20
Selected button
Method
Method is used to do some actions that
usually cannot be performed directly
through Properties.
Method can only be typed in a program
22
23
Example
Create the following application:
The user can enter his/her name in a Text Box
When the user click the button OK, the name in the
Text Box is displayed to a Label below it.
Button Clear to clear all text
Button Exit to close the form
24
STEP 1
CREATE THE USER INTERFACE
25
26
27
TextBox
Naming of an Object
VS will automatically create an object of that control
and give a default name.
You can see this default name through the property
(Name)
Initial name
of the object
Change the
name to
buttonOK
28
buttonExit
buttonStart
textBoxUserName
labelMessageFromServer
29
30
STEP 2
ADD THE FUNCTIONALITY
(WRITE THE PROGRAM TO MAKE
THE FORM ALIVE)
31
33
Event Handler
s35
s36
labelInfo
38
Combining Text
Use + sign.
Text must be put inside the quote (eg.your text)
The meaning of the program can be read from right to the left:
Get the value from the Text property of object textBoxName
And combine it using + sign with a text Your name is:
Then store the result of the combination in the property Text
Of object labelName.
39
40
Exercise
Project Name: yourShortName Favorite Animal
41
Exercise
If the user enter the following data:
42
43