Sie sind auf Seite 1von 30

INSTITUCION EDUCATIVA JOSE ANTONIO GALAN

CUMRAL META
PLANTILLA DE PRESENTACION DE PROGRAMAS TERCER PERIODO
PROFESOR: JORGE ALEJANDRO OBANDO BASTIDAS
ESTUDIANTES:
1: JUAN DIEGO MONTAA ROJAS
2: DANIELA FERNANDA MONSALVE MENDEZ

PRIMER PUNTO

Algoritmo o diagrama de flujo

Problema planteado
Calcular el IVA de una venta
cuyo costo fue de $150.000

Diseo visual del programa

Variables de prueba

Resultados

Venta=150000
Iva=0.16

Iva Total=24000
Venta Total=174000

Objetos

Nombre

Propiedades

Form1

Nombre: Iva
Caption: Iva de una venta
BackColor: &H0080FFFF&

Picture
Label 1

Caption: Venta
BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label 2

Caption: Iva
BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label 3

Caption: Venta Total


BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label 4

Caption: Iva Total


BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label5

Nombre: IvaT
Caption:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label6

Nombre: VentaT
Caption:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Command1

Caption: Iva
BackColor: &H00E0E0E0&
Font: Times New Roman,

Cdigo del
programa

Command2

Caption: Men
Backolor: &H00E0E0E0&
Font: Times New Roman

Text1

Nombre: Venta
Text:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000008&
BorderStyle: 1- Fixed Single

Text2

Nombre: Iva
Text:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000008&
BorderStyle: 1- Fixed Single

Private Sub Command1_Click()


VentaT.Caption = Val(Venta.Text) + Val(Venta.Text) * Val(Iva.Text)
IvaT.Caption = Val(Venta.Text) * Val(Iva.Text)
End Sub
Private Sub Command2_Click()
Men.Show
Unload Me
End Sub

SEGUNDO PUNTO

Problema planteado

Algoritmo o diagrama de flujo

P=(A+C)/3+2*B; Hallar P para


diferentes valores de A,B,C

Diseo visual del programa

Variables de prueba

Resultados

Valor De A=5
Valor De B=4
Valor De C=13

Valor De P=14

Objetos

Nombre

Propiedades

Form1

Nombre: ValorDeP
Caption: ValorDeP
BackColor: &H0080FFFF&

Picture
Label 1

Caption: Digite El Valor De A


BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label 2

Caption: Digite El Valor De B


BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label 3

Caption: Digite El Valor De C


BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label 4

Caption: Valor De P
BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label5

Nombre: Valor P
Caption:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 1- Fixed Single

Label6

Nombre: Formula
Caption: P=(A+C)/3+2*B
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 1- Fixed Single

Command1

Caption: Inicio
BackColor: &H00E0E0E0&
Font: Times New Roman,

Cdigo del
programa

Command2

Caption: Men
Backolor: &H00E0E0E0&
Font: Times New Roman

Text1

Nombre: ValorA
Text:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000008&
BorderStyle: 1- Fixed Single

Text2

Nombre: ValorB
Text:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000008&
BorderStyle: 1- Fixed Single

Text3

Nombre: ValorC
Text:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000008&
BorderStyle: 1- Fixed Single

Private Sub Command1_Click()


ValorP.Caption = (Val(ValorA.Text) + Val(ValorC.Text)) / 3 + 2 *
Val(ValorB.Text)
End Sub
Private Sub Command2_Click()
Men.Show
Unload Me
End Sub

TERCER PUNTO

Problema planteado

Algoritmo o diagrama de flujo

Calcule el volumen de un cubo

Diseo visual del programa

Variables de prueba

Resultados

Lado=2
Lado=2
Lado=2

Volumen Del Cubo=8

Objetos

Nombre

Propiedades

Form1

Nombre: VolumenDeUnCubo
Caption: Volumen de un cubo
BackColor: &H0080FFFF&

Picture
Label 1

Caption: Lado
BackColor: &H8000000F&

Font: Times New Roman,


ForeColor: &H80000012&
Backstyle: 0-Transparent

Label 2

Caption: Lado
BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label 3

Caption: Lado
BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label 4

Caption: Volumen Del Cubo


BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label5

Nombre: VolumenT
Caption:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 1- Fixed Single

Command1

Caption: Volumen
BackColor: &H00E0E0E0&
Font: Times New Roman,

Command2

Caption: Men
Backolor: &H00E0E0E0&
Font: Times New Roman

Text1

Nombre: L1
Text:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000008&
BorderStyle: 1- Fixed Single

Cdigo del
programa

Text2

Nombre: L2
Text:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000008&
BorderStyle: 1- Fixed Single

Text3

Nombre: L3
Text:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000008&
BorderStyle: 1- Fixed Single

Private Sub Command1_Click()


VolumenT.Caption = Val(L1.Text) * Val(L2.Text) * Val(L3.Text)
End Sub
Private Sub Command2_Click()
Men.Show
Unload Me
End Sub

CUARTO PUNTO

Problema planteado

Algoritmo o diagrama de flujo

Resolver para diferentes valores de


A,B,C, la expresin.
X=A+

-4AC

2*A

Diseo visual del programa

Variables de prueba

Resultados

A=4
B=9
C=2

Valor De X=1,375

Objetos

Nombre

Propiedades

Form1

Nombre: ValorX
Caption: Volumen de un cubo
BackColor: &H0080FFFF&

Picture
Label 1

Caption: A
BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label 2

Caption: B
BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label 3

Caption: C
BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label 4

Caption: Valor De X
BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label5

Nombre: ValorT
Caption:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 1- Fixed Single

Command1

Caption: Inicio
BackColor: &H00E0E0E0&
Font: Times New Roman,

Command2

Caption: Men
Backolor: &H00E0E0E0&
Font: Times New Roman

Text1

Nombre: ValorA
Text:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000008&
BorderStyle: 1- Fixed Single

Cdigo del
programa

Text2

Nombre: ValorB
Text:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000008&
BorderStyle: 1- Fixed Single

Text3

Nombre: ValorC
Text:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000008&
BorderStyle: 1- Fixed Single

Private Sub Command1_Click()


ValorT.Caption = (Val(ValorA.Text) + Sqr(Val(ValorB.Text) *
Val(ValorB.Text) - 4 * Val(ValorA.Text) * Val(ValorC.Text))) / (2 *
Val(ValorA.Text))
End Sub
Private Sub Command2_Click()
Men.Show
Unload Me
End Sub

QUINTO PUNTO

Problema planteado

Algoritmo o diagrama de flujo

Si Carlos obtuvo 3,5 en la primera


nota de matemticas, 4,2 en la
segunda, 3,7 en la tercera, Cul fue
su promedio?

Diseo visual del programa

Variables de prueba

Resultados

Primera Nota=3.5
Segunda Nota=4.2
Tercera Nota=3.7

Su Promedio Es=3.8

Objetos

Nombre

Propiedades

Form1

Nombre: Promedio
Caption: Promedio notas de
matematicas
BackColor: &H0080FFFF&
WindowState: 2-Maximized

Picture

Label 1

Caption: Primera Nota


BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label 2

Caption: Segunda Nota


BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label 3

Caption: Tercera Nota


BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label 4

Caption: Su Promedio Es
BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label5

Nombre: Promedio
Caption:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 1- Fixed Single

Command1

Caption: Promedio
BackColor: &H00E0E0E0&
Font: Times New Roman,

Command2

Caption: Men
Backolor: &H00E0E0E0&
Font: Times New Roman

Cdigo del
programa

Text1

Nombre: PrimeraN
Text:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000008&
BorderStyle: 1- Fixed Single

Text2

Nombre: SegundaN
Text:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000008&
BorderStyle: 1- Fixed Single

Text3

Nombre: TerceraN
Text:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000008&
BorderStyle: 1- Fixed Single

Private Sub Command1_Click()


Promedio.Caption = (Val(PrimeraN) + Val(SegundaN) + Val(TerceraN))
/3
End Sub
Private Sub Command2_Click()
Men.Show
Unload Me
End Sub

SEXTO PUNTO

Problema planteado

Algoritmo o diagrama de flujo

Sean P1,P2,P3,P4 el precio


de 4 articulo; calcule su
compra total y el IVA

Diseo visual del programa

Variables de prueba

Resultados

Primera Compra=2000
Segunda Compra=3000
Tercera Compra=2000
Cuarta Compra=3000

IVA De La Compra=1600
Total De La Compra=10000

Objetos

Nombre

Propiedades

Form1

Nombre: CompraTotalEIva
Caption: Compra total e IVA
BackColor: &H0080FFFF&
WindowState: 0 - Normal

Picture

Label 1

Caption: Digite La Primera Compra


BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label 2

Caption: Digite La Segunda Compra


BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label 3

Caption: Digite La Tercera Compra


BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label 4

Caption: Digite La Cuarta Compra


BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label5

Caption: Iva De La Compra


BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label6

Caption: Total De La Compra


BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label7

Nombre: CompraI
Caption:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 1- Fixed Single

Label8

Nombre: CompraT
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 1- Fixed Single

Command1

Caption: Inicio
BackColor: &H00E0E0E0&
Font: Times New Roman,

Command2

Caption: Men
Backolor: &H00E0E0E0&
Font: Times New Roman
Nombre: Compra1
Text:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000008&
BorderStyle: 1- Fixed Single

Text1

Cdigo del programa

Text2

Nombre: Compra2
Text:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000008&
BorderStyle: 1- Fixed Single

Text3

Nombre: Compra3
Text:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000008&
BorderStyle: 1- Fixed Single

Text4

Nombre: Compra4
Text:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000008&
BorderStyle: 1- Fixed Single

Private Sub Command1_Click()


CompraI.Caption = (Val(Compra1.Text) + Val(Compra2.Text) +
Val(Compra3.Text) + Val(Compra4.Text)) * 0.16
CompraT.Caption = Val(Compra1.Text) + Val(Compra2.Text) +
Val(Compra3.Text) + Val(Compra4.Text)
End Sub
Private Sub Command2_Click()
Men.Show
Unload Me
End Sub

SEPTIMO PUNTO

Problema planteado

Algoritmo o diagrama de flujo

Si la primera nota de Carlos


vale el 30%, la segunda el
40% y la tercera el 30%.
Cul fue la nota definitiva?

Diseo visual del programa

Variables de prueba

Resultados

Digite La Primera Nota=3.5


Digite La Segunda Nota= 4.2
Digite La Tercera Nota=3.7

Nota Definitiva=3,84

Objetos

Nombre

Propiedades

Form1

Nombre: NotaDefinitiva
Caption: Notas definitivas
BackColor: &H0080FFFF&
WindowState: 0 - Normal

Picture
Label 1

Caption: Digite La Primera Nota


BackColor: &H8000000F&
Font: Times New Roman,

ForeColor: &H80000012&
Backstyle: 0-Transparent
Label 2

Caption: Digite La Segunda Nota


BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label 3

Caption: Digite La Tercera Nota


BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label 4

Caption: Nota Definitiva


BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label5

Nombre: NotaD
Caption:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 1- Fixed Single

Command1

Caption: Inicio
BackColor: &H00E0E0E0&
Font: Times New Roman,

Command2

Caption: Men
Backolor: &H00E0E0E0&
Font: Times New Roman
Nombre: Nota1
Text:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000008&
BorderStyle: 1- Fixed Single

Text1

Text2

Nombre: Nota2
Text:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000008&
BorderStyle: 1- Fixed Single

Text3

Cdigo del programa

Nombre: Nota3
Text:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000008&
BorderStyle: 1- Fixed Single

Private Sub Command1_Click()


NotaD.Caption = (Val(Nota1.Text) * 0.3) + (Val(Nota2.Text) *
0.4) + (Val(Nota3.Text) * 0.3)
End Sub

Private Sub Command2_Click()


Men.Show
Unload Me
End Sub

OCTAVO PUNTO

Problema planteado

Algoritmo o diagrama de flujo

Encontrar el nmero cuyo


doble sumado el tiple y
restado la mitad resulte 1000.

Diseo visual del programa

Variables de prueba

Resultados

Digite El Valor=333

Valor Total=1000,5

Objetos

Nombre

Propiedades

Form1

Nombre: Operaciones
Caption: Valor de 1000
BackColor: &H0080FFFF&
WindowState: 0 - Normal

Picture

Label 1

Caption: Digite El Valor


BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label 2

Caption: Valor Total


BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label 3

Nombre: ValorT
Caption:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 1- Fixed Single

Command1

Caption: Inicio
BackColor: &H00E0E0E0&
Font: Times New Roman,

Command2

Caption: Men
Backolor: &H00E0E0E0&
Font: Times New Roman
Nombre: Valor
Text:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000008&
BorderStyle: 1- Fixed Single

Text1

Cdigo del programa

Private Sub Command1_Click()


ValorT.Caption = Val(Valor.Text) + 2 * Val(Valor.Text) + 3 / 2
End Sub

Private Sub Command2_Click()


Men.Show
Unload Me
End Sub

NOVENO PUNTO

Problema planteado

Algoritmo o diagrama de flujo

Encuentre el rea de un
paralelogramo

Diseo visual del programa

Variables de prueba

Resultados

Digite La Base=5
Digite La Altura=10

Area Del Paralelogramo=50

Objetos

Nombre

Propiedades

Form1

Nombre: AreaParalelogramo
Caption: Area de un paralelogramo
BackColor: &H0080FFFF&
WindowState: 2 - Maximized

Picture

Label 1

Caption: Digite La Base


BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label 2

Caption: Digite La Altura


BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label 3

Caption: Area Del Paralelogramo


BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label 4

Nombre: AreaT
Caption:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 1- Fixed Single

Command1

Caption: Inicio
BackColor: &H00E0E0E0&
Font: Times New Roman,

Command2

Caption: Men
Backolor: &H00E0E0E0&
Font: Times New Roman
Nombre: Base
Text:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000008&
BorderStyle: 1- Fixed Single

Text1

Text2

Nombre: Altura
Text:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000008&
BorderStyle: 1- Fixed Single

Cdigo del programa

Private Sub Command1_Click()


AreaT.Caption = Val(Base.Text) * Val(Altura.Text)
End Sub
Private Sub Command2_Click()
Men.Show
Unload Me
End Sub

DECIMO PUNTO

Problema planteado

Algoritmo o diagrama de flujo

Calcule la nota total de un


estudiante si sabemos que:
Nota 1 = 20%
Nota 2 = 10%
Nota 3 = 20%
Nota 4 = 30%
Nota 5 = 20%

Diseo visual del programa

Variables de prueba

Resultados

Digite La Primera Nota=3.5


Digite La Segunda Nota=4.0
Digite La Tercera Nota=4.5
Digite La Cuarta Nota=3.0
Digite La Quinta Nota=4.0

Nota Definitiva=3,7

Objetos

Nombre

Propiedades

Form1

Nombre: NotaEstudiante
Caption: Nota de estudiantes
BackColor: &H0080FFFF&
WindowState: 2 - Maximized

Picture
Label 1

Caption: Digite La Primera Nota


BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label 2

Caption: Digite La Segunda Nota


BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label 3

Caption: Digite La Tercera Nota


BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label 4

Caption: Digite La Cuarta Nota


BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label5

Caption: Digite La Quinta Nota


BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label6

Caption: Nota Definitiva


BackColor: &H8000000F&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 0-Transparent

Label7

Nombre: NotaT
Caption:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000012&
Backstyle: 1- Fixed Single

Command1

Caption: Inicio
BackColor: &H00E0E0E0&

Font: Times New Roman,


Command2

Text1

Cdigo del programa

Caption: Men
Backolor: &H00E0E0E0&
Font: Times New Roman
Nombre: Nota1
Text:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000008&
BorderStyle: 1- Fixed Single

Text2

Nombre: Nota2
Text:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000008&
BorderStyle: 1- Fixed Single

Text3

Nombre: Nota3
Text:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000008&
BorderStyle: 1- Fixed Single

Text4

Nombre: Nota4
Text:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000008&
BorderStyle: 1- Fixed Single

Text5

Nombre: Nota5
Text:
BackColor: &H80000005&
Font: Times New Roman,
ForeColor: &H80000008&
BorderStyle: 1- Fixed Single

Private Sub Command1_Click()


NotaT.Caption = (Val(Nota1.Text) * 0.2) + (Val(Nota2.Text) *
0.1) + (Val(Nota3.Text) * 0.2) + (Val(Nota4) * 0.3) + (Val(Nota5)
* 0.2)
End Sub

Private Sub Command2_Click()


Men.Show
Unload Me
End Sub

Das könnte Ihnen auch gefallen