0% found this document useful (0 votes)
8 views14 pages

Problemas Suplementarios

The document contains a series of programming exercises related to structured programming fundamentals, specifically designed for students at the Instituto Politecnico Nacional. Each problem includes code snippets that demonstrate various programming concepts using Visual Basic, such as calculations, conditional statements, and user input handling. The exercises aim to enhance the students' understanding of programming logic and application.

Uploaded by

Edgar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views14 pages

Problemas Suplementarios

The document contains a series of programming exercises related to structured programming fundamentals, specifically designed for students at the Instituto Politecnico Nacional. Each problem includes code snippets that demonstrate various programming concepts using Visual Basic, such as calculations, conditional statements, and user input handling. The exercises aim to enhance the students' understanding of programming logic and application.

Uploaded by

Edgar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 14

INSTITUTO POLITECNICO NACIONAL

PROBLEMAS
SUPEMENTARIOS
ESCUELA SUPERIOR DE INGENIERIA Y ARQUITECTURA
UNIDAD ZACATENCO

PS 1.2

PS 1.3

PS 1.4

PS 1.5

PS 1.6 FUNDAMENTOS DE PROGRAMACION ESTRUCTURADA


PS 1.7

PS 1.8

PS 2.3

PS 2.4 REPORTE DE PROBLEMAS SUPLEMENTARIOS


PS2.5

PS 2.11

PS 2.12

PS 2.13 ALUMNO: MARTINEZ FLORES LUIS EDUARDO


PS
1.2

Dim R, A, C As
Single
CODIGO: R=
TextBox1.Text
A = 3.1416 *
(R ^ 2)
C = 2 * 3.1416
*R
Label1.Text =
Str(A)
Label2.Text =
PS
1.3

Dim CAN, MX As Single


CAN = TextBox1.Text
CODIGO: MX = CAN * 11.96
TextBox2.Text = MX
PS
1.4

Dim ECA, HT As
Single
CODIGO: ECA = TextBox1.Text
HT = ECA * 0.4047
Label1.Text = HT
PS
1.5

Dim M, T, DT As
Single
CODIGO: M=
TextBox1.Text
T=
TextBox2.Text
T = (T * 0.01) *
M
TextBox3.Text =
(T + M)
PS
1.6

Dim MON, EN, I As


Single
MON =
CODIGO: TextBox1.Text
EN = MON * 0.35
I = (MON * 0.65) /
18
TextBox2.Text = EN
TextBox3.Text = I
PS
1.7

Dim MON, EN, M As Single


MON = TextBox1.Text
CODIGO: EN = MON * 0.35
M = ((MON * 0.12) + (MON *
0.65)) / 36
TextBox2.Text = EN
TextBox3.Text = M)
PS
1.8 CODIGO:

Dim RD, ALT, GN, AB, AL, AT, VOL As


Single
RD = TextBox1.Text
ALT = TextBox2.Text
GN = TextBox3.Text
AB = 3.1416 * RD ^ 2
AL = 3.1416 * RD * GN
AT = AB + AL
VOL = 1 / 3 * AB * ALT
Label1.Text = AB
Label2.Text = AL
Label3.Text = AT
Label4.Text = VOL
PS
2.3

Dim COM, T As Single


COM = TextBox1.Text

If COM > 2500 Then


CODIGO: T = COM * 0.92
Else
T = COM
End If
TextBox2.Text = T
PS
2.4

Dim SUE, A As Single


SUE = TextBox1.Text

If SUE < 1000 Then


CODIGO: A = SUE * 1.15
Else
A = SUE * 1.12
End If
TextBox2.Text = A
PS
2.5 CODIGO:

Dim A, B, C, D, O1, O2 As String


A = TextBox1.Text
B = TextBox2.Text
C = TextBox3.Text
D = TextBox4.Text

If D = 0 Then
MsgBox("NO SE PUEDEN REALIZAR LAS OPERACIONES")
Else
O1 = (A - C) ^ 2 / D
O2 = (A - B) ^ 3 / D

End If
TextBox5.Text = O1
TextBox6.Text = O2
PS
CODIGO:
2.1
Dim Y, X As String
1 Y = TextBox1.Text

If Y > 0 & Y <= 11 Then


X = 3 * Y + 36
ElseIf Y <= 36 Then
X=Y^2-1
ElseIf Y <= 64 Then
X=Y^3+Y^2-1
Else
X=0
End If

Label3.Text = ("X = " + X + " ,Y = " + Y)


PS
CODIGO:
2.1
Dim TEM As String
2 TEM = TextBox1.Text

If TEM > 85 Then


TextBox2.Text = ("NATACION")
ElseIf TEM > 70 Then
TextBox2.Text = ("TENIS")
ElseIf TEM > 32 Then
TextBox2.Text = ("GOLF")
ElseIf TEM > 10 Then
TextBox2.Text = ("ESQUI")
Else
TextBox2.Text = ("MARCHA")
End If
PS
2.1 CODIGO:
3 Dim A, B, C As String
A = InputBox("DIGITE LA CANTIDAD A")
B = InputBox("DIGITE LA CANTIDAD B")
C = InputBox("DIGITE LA CANTIDAD C")

If A > B And A > C Then


MsgBox("CANTIDAD A: (" + A + ")")
ElseIf B > C Then
MsgBox("CANTIDAD B: (" + B + ")")
Else
MsgBox("CANTIDAD C: (" + C + ")")
End If

You might also like