SlideShare a Scribd company logo
1 of 3
INGENIERÍAQUIMICA-UNSCH
REMIGIOMUNNER PÉREZPALOMINO
PUNTO FIJO MULTIVARIANTE EN VISUAL STUDIO - 2008
Public Class Form1
Dim X0 As Double
Dim Y0 As Double
Dim X As Double
Dim Y As Double
Dim EPS As Double
Dim ITER As Byte
Dim DV As Double
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button1.Click
TextBox1.Focus()
X0 = Val(TextBox1.Text)
Y0 = Val(TextBox2.Text)
EPS = Val(TextBox3.Text)
ITER = 0
X = (8 + X0 ^ 2 + Y0 ^ 2) / 10
Y = (X0 * Y0 ^ 2 + 8 + X) / 10
DV = ((X - X0) ^ 2 + (Y - Y0) ^ 2) ^ 0.5
ListBox1.Items.Add(Format(ITER, "00") & Space(5) & Format(X0,
"0.0000") & Space(5) & Format(Y0, "0.0000") & Space(5) & Format(X,
INGENIERÍAQUIMICA-UNSCH
REMIGIOMUNNER PÉREZPALOMINO
"0.0000") & Space(5) & Format(Y, "0.0000") & Space(5) & Format(DV,
"0.0000"))
Do While System.Math.Abs(DV) > EPS
X = (8 + X0 ^ 2 + Y0 ^ 2) / 10
Y = (X0 * Y0 ^ 2 + 8 + X) / 10
DV = ((X - X0) ^ 2 + (Y - Y0) ^ 2) ^ 0.5
X0 = X
Y0 = Y
ListBox1.Items.Add(Format(ITER, "00") & Space(5) &
Format(X0, "0.0000") & Space(5) & Format(Y0, "0.0000") & Space(5) &
Format(X, "0.0000") & Space(5) & Format(Y, "0.0000") & Space(5) &
Format(DV, "0.0000"))
ITER = ITER + 1
Loop
TextBox4.Text = X
TextBox5.Text = Y
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button2.Click
End
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button3.Click
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
ListBox1.Text = ""
ListBox1.Items.Clear()
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Timer1.Tick
Static C As Integer
C = C + 1 'INICIALIZANDO
If C = 1 Then
Label4.ForeColor = Color.Red
ElseIf C = 2 Then
Label4.ForeColor = Color.Yellow
ElseIf C = 3 Then
Label4.ForeColor = Color.Green
ElseIf C = 4 Then
Label4.ForeColor = Color.Black
Else : C = 5
C = 0
End If
End Sub
Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Timer2.Tick
Static D As Integer
D = D + 1 'INICIALIZANDO
If D = 1 Then
Label13.ForeColor = Color.Red
ElseIf D = 2 Then
Label13.ForeColor = Color.Yellow
ElseIf D = 3 Then
INGENIERÍAQUIMICA-UNSCH
REMIGIOMUNNER PÉREZPALOMINO
Label13.ForeColor = Color.Green
ElseIf D = 4 Then
Label13.ForeColor = Color.Black
Else : D = 5
D = 0
End If
End Sub
End Class
CUANDOEJECUTO EL PROGRAMA

More Related Content

What's hot

Inventory management
Inventory managementInventory management
Inventory managementRajeev Sharan
 
The Ring programming language version 1.2 book - Part 18 of 84
The Ring programming language version 1.2 book - Part 18 of 84The Ring programming language version 1.2 book - Part 18 of 84
The Ring programming language version 1.2 book - Part 18 of 84Mahmoud Samir Fayed
 
Laboratory activity 3 b2
Laboratory activity 3 b2Laboratory activity 3 b2
Laboratory activity 3 b2Jomel Penalba
 
The Ring programming language version 1.3 book - Part 20 of 88
The Ring programming language version 1.3 book - Part 20 of 88The Ring programming language version 1.3 book - Part 20 of 88
The Ring programming language version 1.3 book - Part 20 of 88Mahmoud Samir Fayed
 
Ordenara los vectores
Ordenara los vectoresOrdenara los vectores
Ordenara los vectoresIsrael JD
 
Clojure introduction by Jason Basanese
Clojure introduction by Jason BasaneseClojure introduction by Jason Basanese
Clojure introduction by Jason BasaneseJason Basanese
 
How to become an Android dev starting from iOS (and vice versa)
How to become an Android dev starting from iOS (and vice versa)How to become an Android dev starting from iOS (and vice versa)
How to become an Android dev starting from iOS (and vice versa)Giuseppe Filograno
 
Erlang assembly
Erlang assemblyErlang assembly
Erlang assemblyrstudnicki
 
The Ring programming language version 1.8 book - Part 34 of 202
The Ring programming language version 1.8 book - Part 34 of 202The Ring programming language version 1.8 book - Part 34 of 202
The Ring programming language version 1.8 book - Part 34 of 202Mahmoud Samir Fayed
 
Ejercicio sql server vs visual .net
Ejercicio sql server vs visual .netEjercicio sql server vs visual .net
Ejercicio sql server vs visual .netAyuda Universidad
 

What's hot (18)

Inventory management
Inventory managementInventory management
Inventory management
 
The Ring programming language version 1.2 book - Part 18 of 84
The Ring programming language version 1.2 book - Part 18 of 84The Ring programming language version 1.2 book - Part 18 of 84
The Ring programming language version 1.2 book - Part 18 of 84
 
Laboratory activity 3 b2
Laboratory activity 3 b2Laboratory activity 3 b2
Laboratory activity 3 b2
 
Kode vb.net
Kode vb.netKode vb.net
Kode vb.net
 
Metode
MetodeMetode
Metode
 
Trabajo de case
Trabajo de caseTrabajo de case
Trabajo de case
 
Calculator code
Calculator codeCalculator code
Calculator code
 
Everyday's JS
Everyday's JSEveryday's JS
Everyday's JS
 
The Ring programming language version 1.3 book - Part 20 of 88
The Ring programming language version 1.3 book - Part 20 of 88The Ring programming language version 1.3 book - Part 20 of 88
The Ring programming language version 1.3 book - Part 20 of 88
 
Ordenara los vectores
Ordenara los vectoresOrdenara los vectores
Ordenara los vectores
 
Clojure introduction by Jason Basanese
Clojure introduction by Jason BasaneseClojure introduction by Jason Basanese
Clojure introduction by Jason Basanese
 
C++ prgms 3rd unit
C++ prgms 3rd unitC++ prgms 3rd unit
C++ prgms 3rd unit
 
How to become an Android dev starting from iOS (and vice versa)
How to become an Android dev starting from iOS (and vice versa)How to become an Android dev starting from iOS (and vice versa)
How to become an Android dev starting from iOS (and vice versa)
 
Erlang assembly
Erlang assemblyErlang assembly
Erlang assembly
 
The Ring programming language version 1.8 book - Part 34 of 202
The Ring programming language version 1.8 book - Part 34 of 202The Ring programming language version 1.8 book - Part 34 of 202
The Ring programming language version 1.8 book - Part 34 of 202
 
Qtp best tutorial
Qtp best tutorialQtp best tutorial
Qtp best tutorial
 
Ejercicio sql server vs visual .net
Ejercicio sql server vs visual .netEjercicio sql server vs visual .net
Ejercicio sql server vs visual .net
 
Manual tecnic sergi_subirats
Manual tecnic sergi_subiratsManual tecnic sergi_subirats
Manual tecnic sergi_subirats
 

Viewers also liked

Viewers also liked (13)

RE/MAX Balloon Infographic
RE/MAX Balloon Infographic RE/MAX Balloon Infographic
RE/MAX Balloon Infographic
 
Tablas isotonia remington
Tablas isotonia remingtonTablas isotonia remington
Tablas isotonia remington
 
Tplf division
Tplf divisionTplf division
Tplf division
 
all new buttons 2
all new buttons 2all new buttons 2
all new buttons 2
 
JOC-Liu-1987
JOC-Liu-1987JOC-Liu-1987
JOC-Liu-1987
 
Zen publicisztika - A Marosvásárhelyi Rádió nyugodt hangneme, a média, mint m...
Zen publicisztika - A Marosvásárhelyi Rádió nyugodt hangneme, a média, mint m...Zen publicisztika - A Marosvásárhelyi Rádió nyugodt hangneme, a média, mint m...
Zen publicisztika - A Marosvásárhelyi Rádió nyugodt hangneme, a média, mint m...
 
Annotation of magazine articles
Annotation of magazine articlesAnnotation of magazine articles
Annotation of magazine articles
 
世界報紙頭條1108
世界報紙頭條1108世界報紙頭條1108
世界報紙頭條1108
 
Trans
TransTrans
Trans
 
CROCS_CorporateBook(web)
CROCS_CorporateBook(web)CROCS_CorporateBook(web)
CROCS_CorporateBook(web)
 
Pos200 5203
Pos200 5203Pos200 5203
Pos200 5203
 
OCS ENGINEER_PRAKASH S
OCS ENGINEER_PRAKASH SOCS ENGINEER_PRAKASH S
OCS ENGINEER_PRAKASH S
 
Presentacion visual basic
Presentacion visual basicPresentacion visual basic
Presentacion visual basic
 

Similar to Visual Studio point fixed multi-variant

Elementos del lenguaje
Elementos del lenguajeElementos del lenguaje
Elementos del lenguajeguest6473b8
 
Latihan visual basic 2010/Looping/Perulangan
Latihan visual basic 2010/Looping/PerulanganLatihan visual basic 2010/Looping/Perulangan
Latihan visual basic 2010/Looping/PerulanganNurul Arhaiyyu
 
Ejercicio de Visual Basic IF THEN ELSE
Ejercicio de Visual Basic IF THEN ELSEEjercicio de Visual Basic IF THEN ELSE
Ejercicio de Visual Basic IF THEN ELSERicardoGuti50
 
โครงการ 5 บท
โครงการ 5 บทโครงการ 5 บท
โครงการ 5 บทMareenaHahngeh
 
โครงการ 5 บท
โครงการ 5 บทโครงการ 5 บท
โครงการ 5 บทMareenaHahngeh
 
Christian rodriguez then else
Christian rodriguez then   elseChristian rodriguez then   else
Christian rodriguez then elsegabo2200
 
Federico landinez docx
Federico landinez docxFederico landinez docx
Federico landinez docxgabo2200
 
Federico landinez docx
Federico landinez docxFederico landinez docx
Federico landinez docxgabo2200
 
Guevara rene if then., else
Guevara rene  if then., elseGuevara rene  if then., else
Guevara rene if then., elsegabo2200
 
Federico landinez docx
Federico landinez docxFederico landinez docx
Federico landinez docxgabo2200
 
Imports System.Net.Sockets Imports System.Text Public Class Form1 .pdf
  Imports System.Net.Sockets Imports System.Text Public Class Form1   .pdf  Imports System.Net.Sockets Imports System.Text Public Class Form1   .pdf
Imports System.Net.Sockets Imports System.Text Public Class Form1 .pdfapnashop1
 
Parra maxi IF THEN ELSE
Parra maxi IF THEN ELSEParra maxi IF THEN ELSE
Parra maxi IF THEN ELSEgabo2200
 
Laboratory activity 3 b3
Laboratory activity 3 b3Laboratory activity 3 b3
Laboratory activity 3 b3Jomel Penalba
 

Similar to Visual Studio point fixed multi-variant (20)

Colegio municipal
Colegio municipalColegio municipal
Colegio municipal
 
Ficha tecnica
Ficha tecnicaFicha tecnica
Ficha tecnica
 
Calculadora
CalculadoraCalculadora
Calculadora
 
Elementos del lenguaje
Elementos del lenguajeElementos del lenguaje
Elementos del lenguaje
 
Correction s+ rie_vb
Correction s+ rie_vbCorrection s+ rie_vb
Correction s+ rie_vb
 
.net progrmming part4
.net progrmming part4.net progrmming part4
.net progrmming part4
 
Trabajo de case
Trabajo de caseTrabajo de case
Trabajo de case
 
Latihan visual basic 2010/Looping/Perulangan
Latihan visual basic 2010/Looping/PerulanganLatihan visual basic 2010/Looping/Perulangan
Latihan visual basic 2010/Looping/Perulangan
 
Ejercicio de Visual Basic IF THEN ELSE
Ejercicio de Visual Basic IF THEN ELSEEjercicio de Visual Basic IF THEN ELSE
Ejercicio de Visual Basic IF THEN ELSE
 
โครงการ 5 บท
โครงการ 5 บทโครงการ 5 บท
โครงการ 5 บท
 
โครงการ 5 บท
โครงการ 5 บทโครงการ 5 บท
โครงการ 5 บท
 
Christian rodriguez then else
Christian rodriguez then   elseChristian rodriguez then   else
Christian rodriguez then else
 
Federico landinez docx
Federico landinez docxFederico landinez docx
Federico landinez docx
 
Federico landinez docx
Federico landinez docxFederico landinez docx
Federico landinez docx
 
Guevara rene if then., else
Guevara rene  if then., elseGuevara rene  if then., else
Guevara rene if then., else
 
Federico landinez docx
Federico landinez docxFederico landinez docx
Federico landinez docx
 
Imports System.Net.Sockets Imports System.Text Public Class Form1 .pdf
  Imports System.Net.Sockets Imports System.Text Public Class Form1   .pdf  Imports System.Net.Sockets Imports System.Text Public Class Form1   .pdf
Imports System.Net.Sockets Imports System.Text Public Class Form1 .pdf
 
Parra maxi IF THEN ELSE
Parra maxi IF THEN ELSEParra maxi IF THEN ELSE
Parra maxi IF THEN ELSE
 
Laboratory activity 3 b3
Laboratory activity 3 b3Laboratory activity 3 b3
Laboratory activity 3 b3
 
Calculadora
CalculadoraCalculadora
Calculadora
 

Recently uploaded

SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 

Recently uploaded (20)

SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 

Visual Studio point fixed multi-variant

  • 1. INGENIERÍAQUIMICA-UNSCH REMIGIOMUNNER PÉREZPALOMINO PUNTO FIJO MULTIVARIANTE EN VISUAL STUDIO - 2008 Public Class Form1 Dim X0 As Double Dim Y0 As Double Dim X As Double Dim Y As Double Dim EPS As Double Dim ITER As Byte Dim DV As Double Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click TextBox1.Focus() X0 = Val(TextBox1.Text) Y0 = Val(TextBox2.Text) EPS = Val(TextBox3.Text) ITER = 0 X = (8 + X0 ^ 2 + Y0 ^ 2) / 10 Y = (X0 * Y0 ^ 2 + 8 + X) / 10 DV = ((X - X0) ^ 2 + (Y - Y0) ^ 2) ^ 0.5 ListBox1.Items.Add(Format(ITER, "00") & Space(5) & Format(X0, "0.0000") & Space(5) & Format(Y0, "0.0000") & Space(5) & Format(X,
  • 2. INGENIERÍAQUIMICA-UNSCH REMIGIOMUNNER PÉREZPALOMINO "0.0000") & Space(5) & Format(Y, "0.0000") & Space(5) & Format(DV, "0.0000")) Do While System.Math.Abs(DV) > EPS X = (8 + X0 ^ 2 + Y0 ^ 2) / 10 Y = (X0 * Y0 ^ 2 + 8 + X) / 10 DV = ((X - X0) ^ 2 + (Y - Y0) ^ 2) ^ 0.5 X0 = X Y0 = Y ListBox1.Items.Add(Format(ITER, "00") & Space(5) & Format(X0, "0.0000") & Space(5) & Format(Y0, "0.0000") & Space(5) & Format(X, "0.0000") & Space(5) & Format(Y, "0.0000") & Space(5) & Format(DV, "0.0000")) ITER = ITER + 1 Loop TextBox4.Text = X TextBox5.Text = Y End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click End End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click TextBox1.Text = "" TextBox2.Text = "" TextBox3.Text = "" TextBox4.Text = "" TextBox5.Text = "" ListBox1.Text = "" ListBox1.Items.Clear() End Sub Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Static C As Integer C = C + 1 'INICIALIZANDO If C = 1 Then Label4.ForeColor = Color.Red ElseIf C = 2 Then Label4.ForeColor = Color.Yellow ElseIf C = 3 Then Label4.ForeColor = Color.Green ElseIf C = 4 Then Label4.ForeColor = Color.Black Else : C = 5 C = 0 End If End Sub Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick Static D As Integer D = D + 1 'INICIALIZANDO If D = 1 Then Label13.ForeColor = Color.Red ElseIf D = 2 Then Label13.ForeColor = Color.Yellow ElseIf D = 3 Then
  • 3. INGENIERÍAQUIMICA-UNSCH REMIGIOMUNNER PÉREZPALOMINO Label13.ForeColor = Color.Green ElseIf D = 4 Then Label13.ForeColor = Color.Black Else : D = 5 D = 0 End If End Sub End Class CUANDOEJECUTO EL PROGRAMA