Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Ragay Branch
July 2019
Polytechnic University of the Philippines
Ragay Branch
PERSONAL INFORMATION
Birthdate : January 31.1999
Birthplace : Banga Caves, Ragay, Camarines Sur
Address : Cabinitan, Ragay, Camarines Sur
Gender : MALE
Height : 5’6 ft
Weight : 55 kl
Civil Status : Single
Religion : Roman Catholic
SKILLS
Troubleshoot a computer hardware
Operate computer software
Draw or Design in photoshot or doing some artworks
EDUCATIONAL ATTAINMENT
Primary Education Banga Elementary School
Banga Caves, Ragay, Camarines Sur
2006-2012
Secondary Education Don M. Gonzalvo Memorial High School
Cabinitan, Ragay, Camarines Sur
2012-2018
Tertiary Education Polytechnic University of the Philippines
Lower Sta. Cruz, Ragay, Camarines Sur
2018 upto Present
Polytechnic University of the Philippines
Ragay Branch
Ragay Branch
Introduction
Visual Studio, also known as Microsoft Visual Studio and VS, is an integrated
programs, websites, web apps, and web services. It includes a code editor, debugger, GUI
design tool, and database schema designer, and supports most major revision control
version.
Visual Studio supports 36 different programming languages and allows the code
editor and debugger to support (to varying degrees) nearly any programming language,
Visual Basic .NET, C#, F#, JavaScript, TypeScript, XML, XSLT, HTML, and CSS.
Support for other languages such as Python, Ruby, Node.js, and M among others is
available via plug-ins. Java (and J#) were supported in the past.
The most basic edition of Visual Studio, the Community edition, is available free
of charge. The slogan for Visual Studio Community edition is "Free, fully-featured IDE
Ragay Branch
Ragay Branch
Ragay Branch
Ragay Branch
In Figure 1, The design contains four object. As you see, there are three labels
but what’s more important is the label which contains the name “Mark Gil M.
Balisnomo”. Why? It is because it has a value behind it if you click the Assignment Test
button. The code inside the button are shown in Figure 2.
In Figure 2, It says that “lblIcons.Text” which has the Text “Mark Gil M.
Balisnomo” can be change by some value. This Label is equal to totalweight, totalweight
is equal to containerWeight A and B, while the containerWeight A is equal to
METRICTION which has the CONSTANT VALUE of 1000 and the containerWeightB
that has an equal value to A. Therefore, totalweight is equal to 1000+1000. It concludes
that Text =Mark Gil M. Balisnomo will be replaced by 2000.
Polytechnic University of the Philippines
Ragay Branch
In Figure 3, Aside from having several labels in it, each label in a parallel list has
different values that could be integers, string and double the are only be implement if you
click the button “Compute Invoice”. In figure 4, you will see that there are invisible label
that will be the form to fill with.
Figure 4. Using Variation to Store Information Results and Redundant data Code
In Figure 4, you will see that the lblCustomer.Text is equal to Mark Gil M.
Balisnomo with double qoutes(“”) on it. Therefore it is considered to be string. In some
labels, there are plenty of number. You could notice that there is no double qoutes on it
considering that it is not a string type but integers because it is valued a whole number.
Polytechnic University of the Philippines
Ragay Branch
Let us recall figure 3 and 4, we have these same labels’ text and labels’ namehere
but there are some errors that we encountered in it by having a Variables that are not
Identify by Dim. For Example, we declare CPUPRICE = 1450. It doesn’t run the code
because it is not Identify Dim CPUPRICE As Integer. Therefore, in figure 5 there has no
applicaton that will run and so we try to fix these and the code would be and should be
having Identifier as the figure 6 have shown below.
In figure 6, you will see that we revise the code. We added Dim CPUPRICE As
Integer, MONITORPRICE As Integer, KEYBOARD As Integer, SALESTAXRATE As
Integer so the program will run just like the Example 3.2 in figure 3. In here, the are
few formula that are different from Example 3.2 but we expect that you will understand
what you’ve seen.
Polytechnic University of the Philippines
Ragay Branch
In figure 7, as you can see there are two buttons having its text “Get My Name”
and “Show My Name” and for the third time, we uses invisible label to Show My Name
after clicking the two buttons yet, Figure 8 will show field for the Variables that is being
repeated.
In figure 8, here you can see that there is a green line under the variable because it
is being identified repeatedly. It means that the variable in Private Sub btnGet_Click have
loss the value that have been declared in the firstplace because of reidentifying it. It could
be still runnable but it will never Show “Mark Gil M. Balisnomo” when you click “Show
My Name” Button. To run the program, you can move on to the figure 9 to show how it
should.
Polytechnic University of the Philippines
Ragay Branch
In figure 9, you can see the same format as figure 7. It is asking for name which
should be declared in Get My Name button. Same format but different code because it
uses only one Identified Variables in Dim statement.
In figure 10, it shows that under the Class in a Form, you should Identify the
variable only once. There is no such thing as replacing the value of a variable in it.
Polytechnic University of the Philippines
Ragay Branch
In this figure, you can only notice that there is only a few change in format
compare to figure 9. It is only added by one label having its text “What’s your name”, but
there is no difference between the two programs that are mentioned.
There we have these codes that are not different from the earlier program that
have been tackled, but there is only one thing that it wants us to know. Having a large
number of objects to be access with, also gives a large number of codes to input.
Polytechnic University of the Philippines
Ragay Branch
In this figure, we are getting more objects to manipulate. There you see two forms
in one program to separate what have been tackled earlier in figures 7, 9, and 11. The
question is, How can we declare a variable we Identify from class in a form A to form B?
Let’s see how it works in Figure 14.
This one is quite different from the recent program in terms of having the property
of one variable to be called out in other form. In this case, the variable ShowMmory
have been Identify as a Public property in Public Class frmComp2 and have been called
out for the variable Ddr to get its value. And that is how it does.
Polytechnic University of the Philippines
Ragay Branch
In figure 15, we are again looking for some value that should be continouosly
increasing in numbers. To understand this figure more, let’s move to figure 16. Lifetime
of Local Variables Code.
Here is the code we get, but there might be a problem when it was run the
program. There always having the result of 0 value of the label. It saids that label.Text is
equal to the variable we gave but the problem is, we haven’t yet declared any value for
that variable so it turns to 0. It also saids that the variable is equal to 15 but it is declared
after the declaration of the label .Text so it becomes useless.
Polytechnic University of the Philippines
Ragay Branch
Again, the form Design has the same format compare to figure 15, but this time
we’d be able to run the program by doing a few change in positioning of the codes. To
make it short, the codes were shown below in figure 18.
We uses dim statement before the code for the button, this is how we troubleshoot
the recent program. This time, there has a change in output, but there still have problem
because it valued from zero then end with 15 in just one click. to make it clearer how to
do the incrementing of value. Let’s move on to figure 19. Static Variables
Polytechnic University of the Philippines
Ragay Branch
In this figure, there is a invisible label again to display the value of an integer by
incrementing its value. In order to understand. See how it is different from the recent
program in firgure 20.
This figure has figure out that we could use Static statement instead of Dim
statement in incrementing a value of a number. And also, the formula is important to
make it increasing. In here, the variable IP declares that IP is equal to IP + 1. Which
explain the condition that IP + 1 will be the nwe value of IP.
Polytechnic University of the Philippines
Ragay Branch
Ragay Branch
In this figure, you can see that I am using the variable msgBxResultMonitor As
string, but before converting the Value of txtHDD, txtCD and txtDDR.Text to string, the
subtracting operation are being applied.
In this figure, you can see that I am using the variable msgBxResultMonitor As
string, but before converting the Value of txtHDD, txtCD and txtDDR.Text to string, the
Multiplying operation are being applied.
In this figure, you can see that I am using the variable msgBxResultMonitor As
string, but before converting the Value of txtHDD, txtCD and txtDDR.Text to string, the
Dividing operation are being applied.
Polytechnic University of the Philippines
Ragay Branch
In this figure, there are only seven object that I put in there. There is a label that
displays the phrase in Example 4.1. There are three labels for the inputted integers and an
answer. There is also a picture to illustrate the right triangle and a label(which functioned
as a button) to show the value of hypotenuse.
Ragay Branch
In this figure, it has less object that are applied. It has only two label. You can
also see that it has a different icon. To modify, just click the form and find the Icon
property using the property window.
As you can see as the code from figure 24, it has the same formula, but the thing
is how it will appear in a runtime. In figure 25, it saids that it is the use of the MsgBox
Statement. In order to displace some string or value, just type” MsgBox” and inside the
“()” function is the variable or simply the string that is assisted by the double qoute (“”).
Polytechnic University of the Philippines
Ragay Branch
In this figure, there are objects, one for the display of the title, one for the
execution of the sequence which should be the invisible one, and the label that
functioned as a button.
Ragay Branch
In this figure, there are objects, one for the display of the title, one for the
execution of the sequence which should be the invisible one, and the label that
functioned as a button.
In this code, there is a new function which is the Rnd(). The message box will
show random number that is multiplied by 10 as the figure above had shown.
Ragay Branch
Ragay Branch
In this figure, there are objects, one for the display of the title, one for the
execution of the sequence which should be the invisible one, and the label that
functioned as a button.
In this code, it shows that there are some numbers that have been in an adding
operation which is commonly use, but the answer should be in the right format. The code
shows should the format should be.
Polytechnic University of the Philippines
Ragay Branch
In this Figure, you will notice that the title is “Converting String to numbers” that
means even you have inputted an uninteger, it will be accepted and calculated. Just incase
you put a string, don’t expect to have a result other than Zero.
As the caption in Figure 37 have said, this code will shows the value, an integer if
it is a number, or a string if it is a string. What ever you will be inputted should be base
on their value as integer or as a string.
Polytechnic University of the Philippines
Ragay Branch
In this Figure, we are only focusing on the concatenation of two or more strings.
How can be the string connected with each other? There must be a proper way in doing
that. To understand what way can we display those strings at once, let us proceed to
Figure 40.
In this code, you will understand how string concatenation works. As you can see
in the Figure 40, there are two inputbox that should be a string type and another two
strings which is already declared. The third variable has a different type of declaration,
there has a simple algorithm which combine the first two variable at once, in what way?
Yes there is a separator between them. It is the “&” or And.
Polytechnic University of the Philippines
Ragay Branch
In this figure entitled Using the Format$() Function makes the numbers visible in
different format. There we have the decimal, whole number, currency, and a percent.
to make it short, the above code will be guiding you on how to show what ever
format you need on your program.
Polytechnic University of the Philippines
Ragay Branch
Rather than making an invisible label to show some output, we uses a messagebox
to show output. But what really matter is the trimming or cutting of the strings, the code
for the Trim Test label/button is shown below in Figure 44.
Here you can see that there are some Variables containing some strings. There has
a lot of spacing in the first variable so it has to be trim. The function for that is LTrim for
Left Trim, RTrim is for Right Trim while the Trim is supposed to be both side.
Polytechnic University of the Philippines
Ragay Branch
In the first look, you can easily notice that there is a manipulation which you can
see in the label/button. If you run this program, it will ask for the your name which
should be the lastname first then comma and then the firstname. And it will appear to be
the reverse as the Firstname first before the Lastname.
So what makes the Firstname and the Lastname swap its poition. If you run the
program, you will notice that comma is a must. Without comma, there will be no
inversion at all. It is in the code that the first variable is declared to be; if the comma is
after the string, then it should be the second string. Vice Versa.
Polytechnic University of the Philippines
Ragay Branch
There are some difference between this and the recent program. There is an array
in a variable which will appear two phrase at once.
In this code, using Chr() Function, it appears that the it having a first array that
can contain strings which is in a position of line 1, and the second array also can contain
strings which is in a position of line 2.
Polytechnic University of the Philippines
Ragay Branch
In this Figure, there are two functional button which are the Label and the Picture
box. These two objects have the same funtion. So in order to execute the program, you
have to click either the Picture box or the Label.
In this Code, it is inspired from what you see in the internet when downloading
any file. There are two buttons which has the same type of execution during the run time.
For example, the Download Button and the click here to download which is the Label.
You can also notice that the code Hide itself when the input box appears, its Idea is to
have less distraction while running the program.
Polytechnic University of the Philippines
Ragay Branch
Ragay Branch
Ragay Branch
Ragay Branch