SlideShare a Scribd company logo
A.RANCANGAN INPUT OUTPUT DATA
B. RANCANANGAN OBJEK
OBJEK
SETTING
ALPHABUTIC CATEGORIZED
Label 1 Caption
Menghitung Nilai
Persamaan
Command Button 1 Name
Caption
Masuk
Input Data
Command button 2 Name
Caption
Proses
Proses
Command Button 3 Name
Caption
Stop
Stop
Picture Box Name Layar
C. ALGORITMA
1. Mulai
2. Input Data
n
For k = 1 To n
Baca X(k), Y(k)
Next k
3. Hitung
TotalX = 0
For k = 1 To n
TotalX = TotalX + X(k)
RataX = TotalX / n
TotalY = 0
For k = 1 To n
TotalY = TotalY + Y(k)
P = TotalX + RataX - TotalY
Next k
4. Tampil
For k = 1 To n
Tampil X(k), Y(k)
Next k
TotalX
RataX
TotalY
P
5. Stop
C. KODE PEMOGRAMAN
Dim X(100), Y(100), totalX, totalY, rataX, P As Double
Dim n As Integer
Sub baca()
n = InputBox("Banyak Data X =?")
n = Val(n)
For k = 1 To n
X(k) = InputBox("Data X ke:" + Str(k))
X(k) = Val(X(k))
Next k
n = InputBox("Banyak Data Y =?")
n = Val(n)
For k = 1 To n
Y(k) = InputBox("Data Y ke:" + Str(k))
Y(k) = Val(Y(k))
Next k
End Sub
Sub hitung()
Dim k As Integer
totalX = 0
totalY = 0
For k = 1 To n
totalX = totalX + X(k)
totalY = totalY + Y(k)
rataX = totalX / n
P = totalX + rataX - totalY
Next k
End Sub
Sub tampil()
Dim k As Integer
Layar.Cls
Layar.ForeColor = vbBrown
Layar.FontSize = 10
Layar.Print "Data Input"
For k = 1 To n
Layar.Print "Data X ke" + Str(k); ":"; X(k)
Layar.Print "Data Y ke" + Str(k); ":"; Y(k)
Next k
Layar.Print
Layar.Print "Hasil Perhitungan Data X"
Layar.FontSize = 12
Layar.Print "Banyak Data X = "; Format(n, "")
Layar.Print "Total X = "; Format(totalX, "0,00")
Layar.Print "Rata X = "; Format(rataX, "0,00")
Layar.Print ""
Layar.Print "Hasil Perhitungan Data Y"
Layar.Print "Banyak Data Y = "; Format(n, "")
Layar.Print "Total Y = "; Format(totalY, "0,00")
Layar.Print ""
Layar.Print "Hasil Nilai Persamaan"
Layar.Print "P = "; Format(P, "0,00")
End Sub
Private Sub masuk_Click()
baca
End Sub
Private Sub proses_Click()
hitung
tampil
End Sub
Private Sub stop_Click()
End
End Sub
Layar.Print "Hasil Perhitungan Data X"
Layar.FontSize = 12
Layar.Print "Banyak Data X = "; Format(n, "")
Layar.Print "Total X = "; Format(totalX, "0,00")
Layar.Print "Rata X = "; Format(rataX, "0,00")
Layar.Print ""
Layar.Print "Hasil Perhitungan Data Y"
Layar.Print "Banyak Data Y = "; Format(n, "")
Layar.Print "Total Y = "; Format(totalY, "0,00")
Layar.Print ""
Layar.Print "Hasil Nilai Persamaan"
Layar.Print "P = "; Format(P, "0,00")
End Sub
Private Sub masuk_Click()
baca
End Sub
Private Sub proses_Click()
hitung
tampil
End Sub
Private Sub stop_Click()
End
End Sub

More Related Content

What's hot

Forms of Quadratics
Forms of QuadraticsForms of Quadratics
Forms of Quadratics
mrodolewicz
 
A gentle introduction to functional programming through music and clojure
A gentle introduction to functional programming through music and clojureA gentle introduction to functional programming through music and clojure
A gentle introduction to functional programming through music and clojure
Paul Lam
 
cocos2d 事例編 HungryMasterの実装から
cocos2d 事例編 HungryMasterの実装からcocos2d 事例編 HungryMasterの実装から
cocos2d 事例編 HungryMasterの実装からYuichi Higuchi
 
ggtimeseries-->ggplot2 extensions
ggtimeseries-->ggplot2 extensions ggtimeseries-->ggplot2 extensions
ggtimeseries-->ggplot2 extensions
Dr. Volkan OBAN
 
Mpesa_C# (2)
Mpesa_C# (2)Mpesa_C# (2)
Mpesa_C# (2)Soud Fosi
 
12. Map | WeakMap | ES6 | JavaScript | Typescript
12. Map | WeakMap | ES6 | JavaScript | Typescript12. Map | WeakMap | ES6 | JavaScript | Typescript
12. Map | WeakMap | ES6 | JavaScript | Typescript
pcnmtutorials
 
Data Visualization with R.ggplot2 and its extensions examples.
Data Visualization with R.ggplot2 and its extensions examples.Data Visualization with R.ggplot2 and its extensions examples.
Data Visualization with R.ggplot2 and its extensions examples.
Dr. Volkan OBAN
 
Doubly linklist
Doubly linklistDoubly linklist
Doubly linklist
ilsamaryum
 
Fast and Simple Statistics with Scala
Fast and Simple Statistics with ScalaFast and Simple Statistics with Scala
Fast and Simple Statistics with Scala
xxx nell
 
Matlab Area Calculation program
Matlab Area Calculation programMatlab Area Calculation program
Matlab Area Calculation program
Tevfik AKKUŞ
 
Sol10
Sol10Sol10
10 - Scala. Co-product type (sum type)
10 - Scala. Co-product type (sum type)10 - Scala. Co-product type (sum type)
10 - Scala. Co-product type (sum type)
Roman Brovko
 
Simulador carrera de caballos desarrollado en C++
Simulador carrera de caballos desarrollado en C++Simulador carrera de caballos desarrollado en C++
Simulador carrera de caballos desarrollado en C++
Santiago Sarmiento
 
Interactive Mouse (Report On Processing)
Interactive Mouse (Report On Processing)Interactive Mouse (Report On Processing)
Interactive Mouse (Report On Processing)
TongXu520
 
Hybrid Inheritance in C++
Hybrid Inheritance in C++Hybrid Inheritance in C++
Hybrid Inheritance in C++
Abhishek Pratap
 

What's hot (20)

Forms of Quadratics
Forms of QuadraticsForms of Quadratics
Forms of Quadratics
 
A gentle introduction to functional programming through music and clojure
A gentle introduction to functional programming through music and clojureA gentle introduction to functional programming through music and clojure
A gentle introduction to functional programming through music and clojure
 
cocos2d 事例編 HungryMasterの実装から
cocos2d 事例編 HungryMasterの実装からcocos2d 事例編 HungryMasterの実装から
cocos2d 事例編 HungryMasterの実装から
 
ggtimeseries-->ggplot2 extensions
ggtimeseries-->ggplot2 extensions ggtimeseries-->ggplot2 extensions
ggtimeseries-->ggplot2 extensions
 
กลุ่ม6
กลุ่ม6กลุ่ม6
กลุ่ม6
 
Mpesa_C# (2)
Mpesa_C# (2)Mpesa_C# (2)
Mpesa_C# (2)
 
PROGRAM pod
PROGRAM podPROGRAM pod
PROGRAM pod
 
12. Map | WeakMap | ES6 | JavaScript | Typescript
12. Map | WeakMap | ES6 | JavaScript | Typescript12. Map | WeakMap | ES6 | JavaScript | Typescript
12. Map | WeakMap | ES6 | JavaScript | Typescript
 
Data Visualization with R.ggplot2 and its extensions examples.
Data Visualization with R.ggplot2 and its extensions examples.Data Visualization with R.ggplot2 and its extensions examples.
Data Visualization with R.ggplot2 and its extensions examples.
 
Doubly linklist
Doubly linklistDoubly linklist
Doubly linklist
 
Fast and Simple Statistics with Scala
Fast and Simple Statistics with ScalaFast and Simple Statistics with Scala
Fast and Simple Statistics with Scala
 
Proga 0601
Proga 0601Proga 0601
Proga 0601
 
Matlab Area Calculation program
Matlab Area Calculation programMatlab Area Calculation program
Matlab Area Calculation program
 
Sol10
Sol10Sol10
Sol10
 
10 - Scala. Co-product type (sum type)
10 - Scala. Co-product type (sum type)10 - Scala. Co-product type (sum type)
10 - Scala. Co-product type (sum type)
 
Simulador carrera de caballos desarrollado en C++
Simulador carrera de caballos desarrollado en C++Simulador carrera de caballos desarrollado en C++
Simulador carrera de caballos desarrollado en C++
 
Interactive Mouse (Report On Processing)
Interactive Mouse (Report On Processing)Interactive Mouse (Report On Processing)
Interactive Mouse (Report On Processing)
 
week-5x
week-5xweek-5x
week-5x
 
Hybrid Inheritance in C++
Hybrid Inheritance in C++Hybrid Inheritance in C++
Hybrid Inheritance in C++
 
Kwp2 091217
Kwp2 091217Kwp2 091217
Kwp2 091217
 

Similar to Rumus VB Menghitung Nilai Persamaan

Xi CBSE Computer Science lab programs
Xi CBSE Computer Science lab programsXi CBSE Computer Science lab programs
Xi CBSE Computer Science lab programs
Prof. Dr. K. Adisesha
 
Visual Basic(Vb) practical
Visual Basic(Vb) practicalVisual Basic(Vb) practical
Visual Basic(Vb) practical
Rahul juneja
 
Rumus VB-1
Rumus VB-1Rumus VB-1
Rumus VB-1
T. Astari
 
The Ring programming language version 1.10 book - Part 33 of 212
The Ring programming language version 1.10 book - Part 33 of 212The Ring programming language version 1.10 book - Part 33 of 212
The Ring programming language version 1.10 book - Part 33 of 212
Mahmoud Samir Fayed
 
The Ring programming language version 1.6 book - Part 183 of 189
The Ring programming language version 1.6 book - Part 183 of 189The Ring programming language version 1.6 book - Part 183 of 189
The Ring programming language version 1.6 book - Part 183 of 189
Mahmoud Samir Fayed
 
COMPUTER SCIENCE CLASS 12 PRACTICAL FILE
COMPUTER SCIENCE CLASS 12 PRACTICAL FILECOMPUTER SCIENCE CLASS 12 PRACTICAL FILE
COMPUTER SCIENCE CLASS 12 PRACTICAL FILE
Anushka Rai
 
Programas Gambas
Programas GambasProgramas Gambas
Programas GambasRZYMJ
 
Programas Gambas
Programas GambasProgramas Gambas
Programas Gambasguestdd103d
 
Programas Gambas
Programas GambasProgramas Gambas
Programas GambasRZYMJ
 
Numerical analysis
Numerical analysisNumerical analysis
Numerical analysisVishal Singh
 
Scala+swing
Scala+swingScala+swing
Scala+swingperneto
 
The Ring programming language version 1.5.2 book - Part 14 of 181
The Ring programming language version 1.5.2 book - Part 14 of 181The Ring programming language version 1.5.2 book - Part 14 of 181
The Ring programming language version 1.5.2 book - Part 14 of 181
Mahmoud Samir Fayed
 
The Ring programming language version 1.5 book - Part 3 of 31
The Ring programming language version 1.5 book - Part 3 of 31The Ring programming language version 1.5 book - Part 3 of 31
The Ring programming language version 1.5 book - Part 3 of 31
Mahmoud Samir Fayed
 
Yolygambas
YolygambasYolygambas
Yolygambasrosyp
 

Similar to Rumus VB Menghitung Nilai Persamaan (20)

Xi CBSE Computer Science lab programs
Xi CBSE Computer Science lab programsXi CBSE Computer Science lab programs
Xi CBSE Computer Science lab programs
 
Struct examples
Struct examplesStruct examples
Struct examples
 
Programas Gambas
Programas GambasProgramas Gambas
Programas Gambas
 
Visual Basic(Vb) practical
Visual Basic(Vb) practicalVisual Basic(Vb) practical
Visual Basic(Vb) practical
 
Coding
CodingCoding
Coding
 
Rumus VB-1
Rumus VB-1Rumus VB-1
Rumus VB-1
 
The Ring programming language version 1.10 book - Part 33 of 212
The Ring programming language version 1.10 book - Part 33 of 212The Ring programming language version 1.10 book - Part 33 of 212
The Ring programming language version 1.10 book - Part 33 of 212
 
The Ring programming language version 1.6 book - Part 183 of 189
The Ring programming language version 1.6 book - Part 183 of 189The Ring programming language version 1.6 book - Part 183 of 189
The Ring programming language version 1.6 book - Part 183 of 189
 
COMPUTER SCIENCE CLASS 12 PRACTICAL FILE
COMPUTER SCIENCE CLASS 12 PRACTICAL FILECOMPUTER SCIENCE CLASS 12 PRACTICAL FILE
COMPUTER SCIENCE CLASS 12 PRACTICAL FILE
 
Programas Gambas
Programas GambasProgramas Gambas
Programas Gambas
 
Programas Gambas
Programas GambasProgramas Gambas
Programas Gambas
 
Programas Gambas
Programas GambasProgramas Gambas
Programas Gambas
 
Manual De Gambas
Manual De GambasManual De Gambas
Manual De Gambas
 
Numerical analysis
Numerical analysisNumerical analysis
Numerical analysis
 
Scala+swing
Scala+swingScala+swing
Scala+swing
 
The Ring programming language version 1.5.2 book - Part 14 of 181
The Ring programming language version 1.5.2 book - Part 14 of 181The Ring programming language version 1.5.2 book - Part 14 of 181
The Ring programming language version 1.5.2 book - Part 14 of 181
 
Proyecto Blob
Proyecto BlobProyecto Blob
Proyecto Blob
 
The Ring programming language version 1.5 book - Part 3 of 31
The Ring programming language version 1.5 book - Part 3 of 31The Ring programming language version 1.5 book - Part 3 of 31
The Ring programming language version 1.5 book - Part 3 of 31
 
Yolygambas
YolygambasYolygambas
Yolygambas
 
Yolygambas
YolygambasYolygambas
Yolygambas
 

More from T. Astari

Contoh RPP dengan LKS
Contoh RPP dengan LKSContoh RPP dengan LKS
Contoh RPP dengan LKS
T. Astari
 
Analisis Kelayakan Buku Teks Matematika
Analisis Kelayakan Buku Teks MatematikaAnalisis Kelayakan Buku Teks Matematika
Analisis Kelayakan Buku Teks Matematika
T. Astari
 
Sejarah Perkembangan Kurikulum Dikdas Di Indonesia
Sejarah Perkembangan Kurikulum Dikdas Di IndonesiaSejarah Perkembangan Kurikulum Dikdas Di Indonesia
Sejarah Perkembangan Kurikulum Dikdas Di Indonesia
T. Astari
 
Contoh Proposal
Contoh ProposalContoh Proposal
Contoh Proposal
T. Astari
 
INDUKSI MATEMATIK
 INDUKSI MATEMATIK INDUKSI MATEMATIK
INDUKSI MATEMATIK
T. Astari
 
Teknik Sampling
Teknik SamplingTeknik Sampling
Teknik Sampling
T. Astari
 
Contoh Pembelajaran Saintifik
Contoh Pembelajaran Saintifik Contoh Pembelajaran Saintifik
Contoh Pembelajaran Saintifik
T. Astari
 
Contoh Pembelajaran Saintifik
Contoh Pembelajaran SaintifikContoh Pembelajaran Saintifik
Contoh Pembelajaran Saintifik
T. Astari
 
Konsep dan fungsi kajian telaah buku teks
Konsep dan fungsi kajian telaah buku teksKonsep dan fungsi kajian telaah buku teks
Konsep dan fungsi kajian telaah buku teks
T. Astari
 
Peninggalan Kerajaan Hindu Budha di Indonesia
Peninggalan Kerajaan Hindu Budha di IndonesiaPeninggalan Kerajaan Hindu Budha di Indonesia
Peninggalan Kerajaan Hindu Budha di Indonesia
T. Astari
 
Pendekatan open ended dalam pembelajaran matematika
Pendekatan open ended dalam pembelajaran matematikaPendekatan open ended dalam pembelajaran matematika
Pendekatan open ended dalam pembelajaran matematika
T. Astari
 
Pembelajaran Matematika Realistik (PMR)
Pembelajaran Matematika Realistik (PMR)Pembelajaran Matematika Realistik (PMR)
Pembelajaran Matematika Realistik (PMR)
T. Astari
 
Teori Belajar Thorndike, Pavlov Dan Skinner
Teori Belajar Thorndike, Pavlov Dan SkinnerTeori Belajar Thorndike, Pavlov Dan Skinner
Teori Belajar Thorndike, Pavlov Dan Skinner
T. Astari
 
Meningkatkan Motivasi dan Kemampuan Pemahaman Matematis Siswa Melalui Pembela...
Meningkatkan Motivasi dan Kemampuan Pemahaman Matematis Siswa Melalui Pembela...Meningkatkan Motivasi dan Kemampuan Pemahaman Matematis Siswa Melalui Pembela...
Meningkatkan Motivasi dan Kemampuan Pemahaman Matematis Siswa Melalui Pembela...
T. Astari
 
Peningkatan kemampuan pemecahan masalah dan kemampuan komunikasi matematis si...
Peningkatan kemampuan pemecahan masalah dan kemampuan komunikasi matematis si...Peningkatan kemampuan pemecahan masalah dan kemampuan komunikasi matematis si...
Peningkatan kemampuan pemecahan masalah dan kemampuan komunikasi matematis si...
T. Astari
 
Pendekatan, Strategi, Metode, Teknik, Dan Evaluasi Pembelajaran Bahasa Indone...
Pendekatan, Strategi, Metode, Teknik, Dan Evaluasi Pembelajaran Bahasa Indone...Pendekatan, Strategi, Metode, Teknik, Dan Evaluasi Pembelajaran Bahasa Indone...
Pendekatan, Strategi, Metode, Teknik, Dan Evaluasi Pembelajaran Bahasa Indone...
T. Astari
 
Flora dan Fauna di Madura
Flora dan Fauna di MaduraFlora dan Fauna di Madura
Flora dan Fauna di Madura
T. Astari
 
Uji persyaratan
Uji persyaratanUji persyaratan
Uji persyaratan
T. Astari
 
Analisis Regresi Sederhana
Analisis Regresi SederhanaAnalisis Regresi Sederhana
Analisis Regresi Sederhana
T. Astari
 
Distribusi Frekuensi
Distribusi FrekuensiDistribusi Frekuensi
Distribusi Frekuensi
T. Astari
 

More from T. Astari (20)

Contoh RPP dengan LKS
Contoh RPP dengan LKSContoh RPP dengan LKS
Contoh RPP dengan LKS
 
Analisis Kelayakan Buku Teks Matematika
Analisis Kelayakan Buku Teks MatematikaAnalisis Kelayakan Buku Teks Matematika
Analisis Kelayakan Buku Teks Matematika
 
Sejarah Perkembangan Kurikulum Dikdas Di Indonesia
Sejarah Perkembangan Kurikulum Dikdas Di IndonesiaSejarah Perkembangan Kurikulum Dikdas Di Indonesia
Sejarah Perkembangan Kurikulum Dikdas Di Indonesia
 
Contoh Proposal
Contoh ProposalContoh Proposal
Contoh Proposal
 
INDUKSI MATEMATIK
 INDUKSI MATEMATIK INDUKSI MATEMATIK
INDUKSI MATEMATIK
 
Teknik Sampling
Teknik SamplingTeknik Sampling
Teknik Sampling
 
Contoh Pembelajaran Saintifik
Contoh Pembelajaran Saintifik Contoh Pembelajaran Saintifik
Contoh Pembelajaran Saintifik
 
Contoh Pembelajaran Saintifik
Contoh Pembelajaran SaintifikContoh Pembelajaran Saintifik
Contoh Pembelajaran Saintifik
 
Konsep dan fungsi kajian telaah buku teks
Konsep dan fungsi kajian telaah buku teksKonsep dan fungsi kajian telaah buku teks
Konsep dan fungsi kajian telaah buku teks
 
Peninggalan Kerajaan Hindu Budha di Indonesia
Peninggalan Kerajaan Hindu Budha di IndonesiaPeninggalan Kerajaan Hindu Budha di Indonesia
Peninggalan Kerajaan Hindu Budha di Indonesia
 
Pendekatan open ended dalam pembelajaran matematika
Pendekatan open ended dalam pembelajaran matematikaPendekatan open ended dalam pembelajaran matematika
Pendekatan open ended dalam pembelajaran matematika
 
Pembelajaran Matematika Realistik (PMR)
Pembelajaran Matematika Realistik (PMR)Pembelajaran Matematika Realistik (PMR)
Pembelajaran Matematika Realistik (PMR)
 
Teori Belajar Thorndike, Pavlov Dan Skinner
Teori Belajar Thorndike, Pavlov Dan SkinnerTeori Belajar Thorndike, Pavlov Dan Skinner
Teori Belajar Thorndike, Pavlov Dan Skinner
 
Meningkatkan Motivasi dan Kemampuan Pemahaman Matematis Siswa Melalui Pembela...
Meningkatkan Motivasi dan Kemampuan Pemahaman Matematis Siswa Melalui Pembela...Meningkatkan Motivasi dan Kemampuan Pemahaman Matematis Siswa Melalui Pembela...
Meningkatkan Motivasi dan Kemampuan Pemahaman Matematis Siswa Melalui Pembela...
 
Peningkatan kemampuan pemecahan masalah dan kemampuan komunikasi matematis si...
Peningkatan kemampuan pemecahan masalah dan kemampuan komunikasi matematis si...Peningkatan kemampuan pemecahan masalah dan kemampuan komunikasi matematis si...
Peningkatan kemampuan pemecahan masalah dan kemampuan komunikasi matematis si...
 
Pendekatan, Strategi, Metode, Teknik, Dan Evaluasi Pembelajaran Bahasa Indone...
Pendekatan, Strategi, Metode, Teknik, Dan Evaluasi Pembelajaran Bahasa Indone...Pendekatan, Strategi, Metode, Teknik, Dan Evaluasi Pembelajaran Bahasa Indone...
Pendekatan, Strategi, Metode, Teknik, Dan Evaluasi Pembelajaran Bahasa Indone...
 
Flora dan Fauna di Madura
Flora dan Fauna di MaduraFlora dan Fauna di Madura
Flora dan Fauna di Madura
 
Uji persyaratan
Uji persyaratanUji persyaratan
Uji persyaratan
 
Analisis Regresi Sederhana
Analisis Regresi SederhanaAnalisis Regresi Sederhana
Analisis Regresi Sederhana
 
Distribusi Frekuensi
Distribusi FrekuensiDistribusi Frekuensi
Distribusi Frekuensi
 

Recently uploaded

A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
Mohammed Sikander
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
JEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questionsJEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questions
ShivajiThube2
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
DhatriParmar
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
Krisztián Száraz
 

Recently uploaded (20)

A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
JEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questionsJEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questions
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
 

Rumus VB Menghitung Nilai Persamaan

  • 1. A.RANCANGAN INPUT OUTPUT DATA B. RANCANANGAN OBJEK OBJEK SETTING ALPHABUTIC CATEGORIZED Label 1 Caption Menghitung Nilai Persamaan
  • 2. Command Button 1 Name Caption Masuk Input Data Command button 2 Name Caption Proses Proses Command Button 3 Name Caption Stop Stop Picture Box Name Layar C. ALGORITMA 1. Mulai 2. Input Data n For k = 1 To n Baca X(k), Y(k) Next k 3. Hitung TotalX = 0 For k = 1 To n TotalX = TotalX + X(k) RataX = TotalX / n TotalY = 0 For k = 1 To n TotalY = TotalY + Y(k) P = TotalX + RataX - TotalY Next k
  • 3. 4. Tampil For k = 1 To n Tampil X(k), Y(k) Next k TotalX RataX TotalY P 5. Stop C. KODE PEMOGRAMAN Dim X(100), Y(100), totalX, totalY, rataX, P As Double Dim n As Integer Sub baca() n = InputBox("Banyak Data X =?") n = Val(n) For k = 1 To n X(k) = InputBox("Data X ke:" + Str(k)) X(k) = Val(X(k)) Next k n = InputBox("Banyak Data Y =?") n = Val(n)
  • 4. For k = 1 To n Y(k) = InputBox("Data Y ke:" + Str(k)) Y(k) = Val(Y(k)) Next k End Sub Sub hitung() Dim k As Integer totalX = 0 totalY = 0 For k = 1 To n totalX = totalX + X(k) totalY = totalY + Y(k) rataX = totalX / n P = totalX + rataX - totalY Next k End Sub Sub tampil() Dim k As Integer Layar.Cls Layar.ForeColor = vbBrown Layar.FontSize = 10 Layar.Print "Data Input" For k = 1 To n Layar.Print "Data X ke" + Str(k); ":"; X(k) Layar.Print "Data Y ke" + Str(k); ":"; Y(k) Next k Layar.Print
  • 5. Layar.Print "Hasil Perhitungan Data X" Layar.FontSize = 12 Layar.Print "Banyak Data X = "; Format(n, "") Layar.Print "Total X = "; Format(totalX, "0,00") Layar.Print "Rata X = "; Format(rataX, "0,00") Layar.Print "" Layar.Print "Hasil Perhitungan Data Y" Layar.Print "Banyak Data Y = "; Format(n, "") Layar.Print "Total Y = "; Format(totalY, "0,00") Layar.Print "" Layar.Print "Hasil Nilai Persamaan" Layar.Print "P = "; Format(P, "0,00") End Sub Private Sub masuk_Click() baca End Sub Private Sub proses_Click() hitung tampil End Sub Private Sub stop_Click() End End Sub
  • 6. Layar.Print "Hasil Perhitungan Data X" Layar.FontSize = 12 Layar.Print "Banyak Data X = "; Format(n, "") Layar.Print "Total X = "; Format(totalX, "0,00") Layar.Print "Rata X = "; Format(rataX, "0,00") Layar.Print "" Layar.Print "Hasil Perhitungan Data Y" Layar.Print "Banyak Data Y = "; Format(n, "") Layar.Print "Total Y = "; Format(totalY, "0,00") Layar.Print "" Layar.Print "Hasil Nilai Persamaan" Layar.Print "P = "; Format(P, "0,00") End Sub Private Sub masuk_Click() baca End Sub Private Sub proses_Click() hitung tampil End Sub Private Sub stop_Click() End End Sub