SlideShare ist ein Scribd-Unternehmen logo
1 von 19
Downloaden Sie, um offline zu lesen
VISUAL BASIC
SubmittedBy:
HappyNezzaB.Aranjuez
10–Einstein
SubmittedTo:
Mrs.RowenaA.Reyes
Output #1 = SAMPLE PROJECT (CLICK AND CLEAR)
INPUT
Private Sub cmdclear_Click()
txtname.Text = " "
End Sub
Private Sub Cmdclick_Click()
txtname.Text = "Happy Nezza Aranjuez"
End Sub
Reflection:
This is our first activity using the new introduced program in ICT- Visual Basic. It was
complicated at first but we soon understood how it works and how to use it. Since it uses GUI
(Graphical User Interface) the designs and layout was exciting for me.
OUTPUT #2 – SHAPES
INPUT
Private Sub cmdform_Click()
frmmdas.Show
End Sub
Private Sub cmdrectangle_Click()
Shape1.Shape = 0
End Sub
Private Sub cmdrs_Click()
Shape1.Shape = 5
End Sub
Private Sub cmdcircle_Click()
Shape1.Shape = 3
End Sub
Private Sub cmdoval_Click()
Shape1.Shape = 2
End Sub
Private Sub cmdrr_Click()
Shape1.Shape = 4
End Sub
Private Sub cmdsquare_Click()
Shape1.Shape = 1
End Sub
Reflection:
During this activity, we were able to explore other properties of a project like the options for
varying shapes. We assigned the value of the corresponding shape, so that when you click the
command button the shape would change depending on the chosen figure.
OUTPUT #3-MDAS
INPUT
Private Sub cmdadd_Click()
Add = Val(text1.Text) + Val(text2.Text)
txtresult.Text = Add
End Sub
Private Sub cmdivide_Click()
Quotient = Val(text1.Text) / Val(text2.Text)
txtresult.Text = Quotient
End Sub
Private Sub cmdmultiply_Click()
mul = Val(text1.Text) * Val(text2.Text)
txtresult.Text = mul
End Sub
Private Sub cmdsubtract_Click()
Subtract = Val(text1.Text) - Val(text2.Text)
txtresult.Text = Subtract
End Sub
Reflection:
At first, for me this project is a bit complicated but as I remember our ICT grade 9 lesson in
Python and Netbeans, I was able to finish the program. We already did a program like this in
Netbeans before that’s why we already have the basic knowledge in encoding the needed syntax.
OUTPUT #4 – LUCKY SEVEN
INPUT
Private Sub CmdClick_Click()
coins.Visible = False
Lbl1.Caption = Int(Rnd * 10)
Lbl2.Caption = Int(Rnd * 10)
Lbl3.Caption = Int(Rnd * 10)
If (Lbl1.Caption = 7) Or (Lbl2.Caption = 7) Or (Lbl3.Caption = 7)
Then
coins.Visible = True
Beep
End If
End Sub
Private Sub CmdExit_Click()
End
End Sub
Reflection:
Ma’am gave us handouts to serve as a reviewer and also for us to understand the parts of the
VB’s window. One of the given examples there is the “Lucky Seven”. It’s like a gambling
program, you win coins by chance, it was fun and exciting to make because you could play with it
after you’re finish with the codes.
OUTPUT #5 – ALIGNMENT
INPUT
Private Sub Command1_Click()
Label1.Alignment = 0
End Sub
Private Sub Command2_Click()
Label1.Alignment = 2
End Sub
Private Sub Command3_Click()
Label1.Alignment = 1
End Sub
Reflection:
We didn’t have enough time to discuss about this but still we understood what to do. In this
project, one property is emphasized, the alignment of the text. And again, you just need to assign
the matching value to the type of alignment.
OUTPUT #6 – ALIGNMENT + BACKCOLOR + FORECOLOR
INPUT
Private Sub Command1_Click()
Label1.Alignment = 2
End Sub
Private Sub Command2_Click()
Label1.Alignment = 0
End Sub
Private Sub Command3_Click()
Label1.Alignment = 1
End Sub
Private Sub Command4_Click()
Label1.ForeColor = vbRed
End Sub
Private Sub Command5_Click()
Label1.ForeColor = vbBlue
End Sub
Private Sub Command6_Click()
Label1.ForeColor = vbGreen
End Sub
Private Sub Command7_Click()
Label1.BackColor = vbRed
End Sub
Private Sub Command8_Click()
Label1.BackColor = vbBlue
End Sub
Private Sub Command9_Click()
Label1.BackColor = vbGreen
End Sub
Reflection:
I was amazed with this activity, it’s really fun to play with colors! Among the other activities this
is the activity that I would want to teach other people. It’s easy, colourful and an efficient project
for those who want to teach colors to small children. See how Visual Basic could help in
developing our way of teaching and imparting knowledge to future generations?
OUTPUT #7 – (1-7) SEATWORK
INPUT:
Private Sub CmdCompute_Click()
fixedCosts = 5000
pricePerUnit = 8
costPerUnit = 6
breakEvenPoint = fixedCosts / (pricePerUnit - costPerUnit)
LblBEP.Caption = breakEvenPoint
End Sub
Private Sub CmdCompute1_Click(Index As Integer)
balance = 100
balance = balance + (balance * 0.05)
balance = balance + (balance * 0.05)
balance = balance + (balance * 0.05)
LblBal.Caption = balance
End Sub
Private Sub CmdCompute2_Click(Index As Integer)
balance = 100
balance = balance + (balance * 0.05) + 100
balance = balance + (balance * 0.05) + 100
balance = balance + (balance * 0.05)
LblBalance.Caption = balance
End Sub
Private Sub CmdCompute3_Click()
balance = 100
balance = balance * (1.05 ^ 10)
LblBalan.Caption = balance
End Sub
Private Sub CmdCompute4_Click()
purchasePrice = 10
sellingPrice = 10
percentProfit = 100 * (sellingPrice - purchasePrice) / purchasePrice
LblPerPro.Caption = percentProfit
End Sub
Private Sub CmdCompute5_Click()
revenue = 98456
costs = 45000
profit = revenue - costs
LblProfit.Caption = profit
End Sub
Private Sub CmdCompute6_Click()
costPerShare = 25.625
numberOfShares = 400
amount = costPerShare * numberOfShares
LblAmount.Caption = amount
End Sub
Private Sub LblAmount_Click()
LblAmount.Caption = amount
End Sub
Private Sub LblBal_Click()
LblBal.Caption = balance
End Sub
Private Sub LblBalance_Click()
LblBalance.Caption = balance
End Sub
Private Sub LblBEP_Click()
LblBEP.Caption = breakEvenPoint
End Sub
Private Sub LblPerPro_Click()
LblPerPro.Caption = percentProfit
End Sub
Reflection:
It may be a long activity but through
this activity I was able to further
understand the operations and the
caption element of Visual Basic. The
difference of a label from a textbox and
from a caption, I was able to realize all
of it. Not only that but we tackled more
process of computation here, like
percentage and raising a number to a
certain power. Moreover, we also
assigned variables here.
OUTPUT #8 – COMPUTATION OF AREA (RECTANGLE),
HYPOTENUSE, VOLUME (CYLINDER)
INPUT:
Private Sub cmdhypo_Click()
hypo = ((text1.Text) ^ 2 + (Text2.Text) ^ 2) ^ (1 / 2)
result.Caption = hypo
End Sub
Private Sub Command1_Click()
vol = Text3.Text * 3.14 * (Text4.Text ^ 2)
volume.Caption = vol
End Sub
Private Sub Command2_Click()
area = Text5.Text * Text6.Text
area.Text = area
End Sub
Reflection:
This year I’m expecting myself to do better in ICT. I really want to learn how to program and
encode the correct statements and syntax for a project. Because of the different activities we had
so far, I am able to understand and get to know Programming better, especially Visual Basic.
Visual Basic could really be a useful tool not only to programming students like us but also to
those who needs a glimpse of technology. Based on the activities that we have done in Mrs.
Reyes’ class, I have been always fascinated with what program we’re going to do next, even if I
don’t finish it on time I still get enthusiastic with every activity she gives us. I hope other
unfortunate students could also experience the benefits we got so far because technology is on
our side. We just need to use it for improvement and development purposes not for distraction
and situation-worsening purposes.

Weitere ähnliche Inhalte

Was ist angesagt?

1.2 statements, properties, and operations
1.2   statements, properties, and operations1.2   statements, properties, and operations
1.2 statements, properties, and operations
allenbailey
 
Sous Vide
Sous Vide Sous Vide
Sous Vide
EmmaJD
 

Was ist angesagt? (20)

Threats to a computer
Threats to a computer Threats to a computer
Threats to a computer
 
Internship ppt
Internship pptInternship ppt
Internship ppt
 
Operating system security
Operating system securityOperating system security
Operating system security
 
1.2 statements, properties, and operations
1.2   statements, properties, and operations1.2   statements, properties, and operations
1.2 statements, properties, and operations
 
Intro. to PowerPoint
Intro. to PowerPointIntro. to PowerPoint
Intro. to PowerPoint
 
Pasta
PastaPasta
Pasta
 
• Output Devices • Types of Output Devices • Dual Input– Output Devices
• Output Devices • Types of Output Devices • Dual Input– Output Devices• Output Devices • Types of Output Devices • Dual Input– Output Devices
• Output Devices • Types of Output Devices • Dual Input– Output Devices
 
Application software(final)
Application software(final)Application software(final)
Application software(final)
 
Photoshop
PhotoshopPhotoshop
Photoshop
 
Lesson 6 - Image File Formats
Lesson 6 - Image File FormatsLesson 6 - Image File Formats
Lesson 6 - Image File Formats
 
Chapter Two Adobe Photoshop.pptx
Chapter Two Adobe Photoshop.pptxChapter Two Adobe Photoshop.pptx
Chapter Two Adobe Photoshop.pptx
 
Sous Vide
Sous Vide Sous Vide
Sous Vide
 
Ms word
Ms wordMs word
Ms word
 
Computer security threats & prevention
Computer security threats & preventionComputer security threats & prevention
Computer security threats & prevention
 
authoring tools
authoring toolsauthoring tools
authoring tools
 
Components of .NET Framework
Components of .NET FrameworkComponents of .NET Framework
Components of .NET Framework
 
Audacity tutorial powerpoint
Audacity tutorial powerpointAudacity tutorial powerpoint
Audacity tutorial powerpoint
 
Anti virus
Anti virusAnti virus
Anti virus
 
Introduction to ms power point Grade 9
Introduction to ms power point Grade 9Introduction to ms power point Grade 9
Introduction to ms power point Grade 9
 
Updated How to connect OBS and Zoom
Updated How to connect OBS and ZoomUpdated How to connect OBS and Zoom
Updated How to connect OBS and Zoom
 

Ähnlich wie Ict project pdf

Vbtutorial
VbtutorialVbtutorial
Vbtutorial
dhi her
 
Practicalfileofvb workshop
Practicalfileofvb workshopPracticalfileofvb workshop
Practicalfileofvb workshop
dhi her
 
Gui builder
Gui builderGui builder
Gui builder
learnt
 
Vb tutorial
Vb tutorialVb tutorial
Vb tutorial
jayguyab
 
Cis 170 c ilab 5 of 7 arrays and strings
Cis 170 c ilab 5 of 7 arrays and stringsCis 170 c ilab 5 of 7 arrays and strings
Cis 170 c ilab 5 of 7 arrays and strings
CIS321
 
Yolygambas
YolygambasYolygambas
Yolygambas
rosyp
 
Functional pogramming hl overview
Functional pogramming hl overviewFunctional pogramming hl overview
Functional pogramming hl overview
Elad Avneri
 

Ähnlich wie Ict project pdf (20)

Python programming workshop session 4
Python programming workshop session 4Python programming workshop session 4
Python programming workshop session 4
 
Vbtutorial
VbtutorialVbtutorial
Vbtutorial
 
Practicalfileofvb workshop
Practicalfileofvb workshopPracticalfileofvb workshop
Practicalfileofvb workshop
 
Devry cis-170-c-i lab-1-of-7-getting-started
Devry cis-170-c-i lab-1-of-7-getting-startedDevry cis-170-c-i lab-1-of-7-getting-started
Devry cis-170-c-i lab-1-of-7-getting-started
 
Devry cis-170-c-i lab-1-of-7-getting-started
Devry cis-170-c-i lab-1-of-7-getting-startedDevry cis-170-c-i lab-1-of-7-getting-started
Devry cis-170-c-i lab-1-of-7-getting-started
 
Gui builder
Gui builderGui builder
Gui builder
 
Vb tutorial
Vb tutorialVb tutorial
Vb tutorial
 
Vb tutorial
Vb tutorialVb tutorial
Vb tutorial
 
Content
Content Content
Content
 
19.Advanced Visual Basic Lab.pdf
19.Advanced Visual Basic Lab.pdf19.Advanced Visual Basic Lab.pdf
19.Advanced Visual Basic Lab.pdf
 
Cis 170 c ilab 5 of 7 arrays and strings
Cis 170 c ilab 5 of 7 arrays and stringsCis 170 c ilab 5 of 7 arrays and strings
Cis 170 c ilab 5 of 7 arrays and strings
 
Yolygambas
YolygambasYolygambas
Yolygambas
 
Yolygambas
YolygambasYolygambas
Yolygambas
 
Yolygambas
YolygambasYolygambas
Yolygambas
 
structured programming Introduction to c fundamentals
structured programming Introduction to c fundamentalsstructured programming Introduction to c fundamentals
structured programming Introduction to c fundamentals
 
Introduction to programming using Visual Basic 6
Introduction to programming using Visual Basic 6Introduction to programming using Visual Basic 6
Introduction to programming using Visual Basic 6
 
Consequences of using the Copy-Paste method in C++ programming and how to dea...
Consequences of using the Copy-Paste method in C++ programming and how to dea...Consequences of using the Copy-Paste method in C++ programming and how to dea...
Consequences of using the Copy-Paste method in C++ programming and how to dea...
 
Vb.net Experiment with Example
Vb.net Experiment with ExampleVb.net Experiment with Example
Vb.net Experiment with Example
 
Introduction to F#
Introduction to F#Introduction to F#
Introduction to F#
 
Functional pogramming hl overview
Functional pogramming hl overviewFunctional pogramming hl overview
Functional pogramming hl overview
 

Mehr von Happy Nezza Aranjuez

Mehr von Happy Nezza Aranjuez (20)

Photoshop
PhotoshopPhotoshop
Photoshop
 
Photoshop
PhotoshopPhotoshop
Photoshop
 
Ucsp presentation
Ucsp presentationUcsp presentation
Ucsp presentation
 
UCSP: Social and Political Stratification
UCSP: Social and Political StratificationUCSP: Social and Political Stratification
UCSP: Social and Political Stratification
 
Exhibit 3 Earth Science: Effects of Human Activities to the Water Resources
Exhibit 3 Earth Science: Effects of Human Activities to the Water ResourcesExhibit 3 Earth Science: Effects of Human Activities to the Water Resources
Exhibit 3 Earth Science: Effects of Human Activities to the Water Resources
 
Convection Current
Convection CurrentConvection Current
Convection Current
 
Jupiter
JupiterJupiter
Jupiter
 
Pagbabago sa Wika sa kasalukyan
Pagbabago sa Wika sa kasalukyanPagbabago sa Wika sa kasalukyan
Pagbabago sa Wika sa kasalukyan
 
Calcium isotopes
Calcium isotopesCalcium isotopes
Calcium isotopes
 
Payong sa tuwing umuulan
Payong sa tuwing umuulanPayong sa tuwing umuulan
Payong sa tuwing umuulan
 
Photography and Image Image Manipulation Programs
Photography and Image Image Manipulation ProgramsPhotography and Image Image Manipulation Programs
Photography and Image Image Manipulation Programs
 
Visual basic menu
Visual basic menuVisual basic menu
Visual basic menu
 
By two project ict
By two project ictBy two project ict
By two project ict
 
Ict activities of Third Quarter
Ict activities of Third QuarterIct activities of Third Quarter
Ict activities of Third Quarter
 
The Hypothalamus and Pituitary Gland
The Hypothalamus and Pituitary GlandThe Hypothalamus and Pituitary Gland
The Hypothalamus and Pituitary Gland
 
The Hypothalamus and Pituitary Gland
The Hypothalamus and Pituitary GlandThe Hypothalamus and Pituitary Gland
The Hypothalamus and Pituitary Gland
 
Microphone Bearer
Microphone BearerMicrophone Bearer
Microphone Bearer
 
Reaksiyon para sa pagtatangha na "May Pag-asa"
Reaksiyon para sa pagtatangha na "May Pag-asa"Reaksiyon para sa pagtatangha na "May Pag-asa"
Reaksiyon para sa pagtatangha na "May Pag-asa"
 
Filipino sanaysay
Filipino sanaysayFilipino sanaysay
Filipino sanaysay
 
Ict paired project (2nd Quarter)
Ict paired project (2nd Quarter)Ict paired project (2nd Quarter)
Ict paired project (2nd Quarter)
 

Kürzlich hochgeladen

+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 

Kürzlich hochgeladen (20)

The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 

Ict project pdf

  • 2. Output #1 = SAMPLE PROJECT (CLICK AND CLEAR) INPUT Private Sub cmdclear_Click() txtname.Text = " " End Sub Private Sub Cmdclick_Click() txtname.Text = "Happy Nezza Aranjuez" End Sub Reflection: This is our first activity using the new introduced program in ICT- Visual Basic. It was complicated at first but we soon understood how it works and how to use it. Since it uses GUI (Graphical User Interface) the designs and layout was exciting for me.
  • 3. OUTPUT #2 – SHAPES
  • 4. INPUT Private Sub cmdform_Click() frmmdas.Show End Sub Private Sub cmdrectangle_Click() Shape1.Shape = 0 End Sub Private Sub cmdrs_Click() Shape1.Shape = 5 End Sub Private Sub cmdcircle_Click() Shape1.Shape = 3 End Sub Private Sub cmdoval_Click() Shape1.Shape = 2 End Sub Private Sub cmdrr_Click() Shape1.Shape = 4 End Sub Private Sub cmdsquare_Click() Shape1.Shape = 1 End Sub Reflection: During this activity, we were able to explore other properties of a project like the options for varying shapes. We assigned the value of the corresponding shape, so that when you click the command button the shape would change depending on the chosen figure.
  • 6. INPUT Private Sub cmdadd_Click() Add = Val(text1.Text) + Val(text2.Text) txtresult.Text = Add End Sub Private Sub cmdivide_Click() Quotient = Val(text1.Text) / Val(text2.Text) txtresult.Text = Quotient End Sub Private Sub cmdmultiply_Click() mul = Val(text1.Text) * Val(text2.Text) txtresult.Text = mul End Sub Private Sub cmdsubtract_Click() Subtract = Val(text1.Text) - Val(text2.Text) txtresult.Text = Subtract End Sub Reflection: At first, for me this project is a bit complicated but as I remember our ICT grade 9 lesson in Python and Netbeans, I was able to finish the program. We already did a program like this in Netbeans before that’s why we already have the basic knowledge in encoding the needed syntax.
  • 7. OUTPUT #4 – LUCKY SEVEN
  • 8. INPUT Private Sub CmdClick_Click() coins.Visible = False Lbl1.Caption = Int(Rnd * 10) Lbl2.Caption = Int(Rnd * 10) Lbl3.Caption = Int(Rnd * 10) If (Lbl1.Caption = 7) Or (Lbl2.Caption = 7) Or (Lbl3.Caption = 7) Then coins.Visible = True Beep End If End Sub Private Sub CmdExit_Click() End End Sub Reflection: Ma’am gave us handouts to serve as a reviewer and also for us to understand the parts of the VB’s window. One of the given examples there is the “Lucky Seven”. It’s like a gambling program, you win coins by chance, it was fun and exciting to make because you could play with it after you’re finish with the codes.
  • 9. OUTPUT #5 – ALIGNMENT
  • 10. INPUT Private Sub Command1_Click() Label1.Alignment = 0 End Sub Private Sub Command2_Click() Label1.Alignment = 2 End Sub Private Sub Command3_Click() Label1.Alignment = 1 End Sub Reflection: We didn’t have enough time to discuss about this but still we understood what to do. In this project, one property is emphasized, the alignment of the text. And again, you just need to assign the matching value to the type of alignment. OUTPUT #6 – ALIGNMENT + BACKCOLOR + FORECOLOR
  • 11.
  • 12. INPUT Private Sub Command1_Click() Label1.Alignment = 2 End Sub Private Sub Command2_Click() Label1.Alignment = 0 End Sub Private Sub Command3_Click() Label1.Alignment = 1 End Sub Private Sub Command4_Click() Label1.ForeColor = vbRed End Sub Private Sub Command5_Click() Label1.ForeColor = vbBlue End Sub Private Sub Command6_Click() Label1.ForeColor = vbGreen End Sub Private Sub Command7_Click() Label1.BackColor = vbRed End Sub Private Sub Command8_Click() Label1.BackColor = vbBlue End Sub Private Sub Command9_Click() Label1.BackColor = vbGreen End Sub Reflection: I was amazed with this activity, it’s really fun to play with colors! Among the other activities this is the activity that I would want to teach other people. It’s easy, colourful and an efficient project for those who want to teach colors to small children. See how Visual Basic could help in developing our way of teaching and imparting knowledge to future generations?
  • 13. OUTPUT #7 – (1-7) SEATWORK
  • 14.
  • 15. INPUT: Private Sub CmdCompute_Click() fixedCosts = 5000 pricePerUnit = 8 costPerUnit = 6 breakEvenPoint = fixedCosts / (pricePerUnit - costPerUnit) LblBEP.Caption = breakEvenPoint End Sub Private Sub CmdCompute1_Click(Index As Integer) balance = 100 balance = balance + (balance * 0.05) balance = balance + (balance * 0.05) balance = balance + (balance * 0.05) LblBal.Caption = balance End Sub Private Sub CmdCompute2_Click(Index As Integer) balance = 100 balance = balance + (balance * 0.05) + 100 balance = balance + (balance * 0.05) + 100 balance = balance + (balance * 0.05) LblBalance.Caption = balance End Sub Private Sub CmdCompute3_Click() balance = 100 balance = balance * (1.05 ^ 10) LblBalan.Caption = balance End Sub Private Sub CmdCompute4_Click() purchasePrice = 10 sellingPrice = 10 percentProfit = 100 * (sellingPrice - purchasePrice) / purchasePrice LblPerPro.Caption = percentProfit End Sub Private Sub CmdCompute5_Click() revenue = 98456 costs = 45000 profit = revenue - costs LblProfit.Caption = profit End Sub
  • 16. Private Sub CmdCompute6_Click() costPerShare = 25.625 numberOfShares = 400 amount = costPerShare * numberOfShares LblAmount.Caption = amount End Sub Private Sub LblAmount_Click() LblAmount.Caption = amount End Sub Private Sub LblBal_Click() LblBal.Caption = balance End Sub Private Sub LblBalance_Click() LblBalance.Caption = balance End Sub Private Sub LblBEP_Click() LblBEP.Caption = breakEvenPoint End Sub Private Sub LblPerPro_Click() LblPerPro.Caption = percentProfit End Sub Reflection: It may be a long activity but through this activity I was able to further understand the operations and the caption element of Visual Basic. The difference of a label from a textbox and from a caption, I was able to realize all of it. Not only that but we tackled more process of computation here, like percentage and raising a number to a certain power. Moreover, we also assigned variables here.
  • 17. OUTPUT #8 – COMPUTATION OF AREA (RECTANGLE), HYPOTENUSE, VOLUME (CYLINDER)
  • 18. INPUT: Private Sub cmdhypo_Click() hypo = ((text1.Text) ^ 2 + (Text2.Text) ^ 2) ^ (1 / 2) result.Caption = hypo End Sub Private Sub Command1_Click() vol = Text3.Text * 3.14 * (Text4.Text ^ 2) volume.Caption = vol End Sub Private Sub Command2_Click() area = Text5.Text * Text6.Text area.Text = area End Sub Reflection: This year I’m expecting myself to do better in ICT. I really want to learn how to program and encode the correct statements and syntax for a project. Because of the different activities we had so far, I am able to understand and get to know Programming better, especially Visual Basic. Visual Basic could really be a useful tool not only to programming students like us but also to
  • 19. those who needs a glimpse of technology. Based on the activities that we have done in Mrs. Reyes’ class, I have been always fascinated with what program we’re going to do next, even if I don’t finish it on time I still get enthusiastic with every activity she gives us. I hope other unfortunate students could also experience the benefits we got so far because technology is on our side. We just need to use it for improvement and development purposes not for distraction and situation-worsening purposes.