Sie sind auf Seite 1von 6

UNIVERSIDAD POLITCNICA SALESIANA

NOMBRE KEVIN VELASTEGUI


CURSO 3 B MECNICA
FECHA 25/04/2015
Elaborar el anlisis, algoritmo (en Visio)
plateados:

y corrida

de escritorio de los problemas

CALCULAR EL VOLUMEN DE UNA ESFERA = 4/3 pi r 3 CONOCIENDO SU


RADIO, EL RESULTADO DE LA ESFERA ES LA ALTURA PARA CALCULAR EL
VOLUMEN DEL CONO DEL MISMO RADIO.
Entrada

DIAGRAMA DE FLUJO DE DATOS

Radio= (r)

Inicio

Salida
Volumen de la esfera (VE)

Leer(r)

Volumen del cono= (VC)


Proceso

4
V E (3,14 16 )rrr
3

Leer (r)
Operacin

V C ( 3,14 16 )rrh

4
3.1416rrr
Ve= 3
Escribir (

VE

Ve h
V C =3.1416rrh

Fin

Escribir (VE)
Escribir (VC)
CORRIDA DE ESCRITORIO
Radio= (r)
5
6

Volumen de la esfera (VE)


523.60
904.78

Volumen del cono= (VC)


41123.44
102328.20

2
33.51
421.09
4
268.08
13475.17
EN UN CENTRO DE COMUNICACIONES ALQUILAN TARJETAS PARA
REALIZAR LLAMADAS Y COBRAN EL MONTO CONSUMIDO DE LA
TARJETA MS UN RECARGO DEL 20%. TENIENDO COMO DATO DE
ENTRADA EL MONTO INICIAL Y EL MONTO FINAL DE LA TARJETA,
DETERMINE EL COSTO DE LA LLAMADA.

Entrada

DIAGRAMA DE FLUJO DE DATOS

Monto inicial (MI)


Inicio

Monto final (MF)


Salida
Costo de llamada (CLLT)

Leer (MI) Leer (MF)

Proceso
Leer (MI)
Leer (MF)

CLL MF MI

Operacin
CLL = MF MI

Escribir (CLL)

CLLT = CLL*0.2+CLL
Escribir (CLL)

Fin

CORRIDA DE ESCRITORIO
Monto inicial (MI)

Monto final (MF)

40
20
20
30
10
10

48
24
50
60
40
70

Costo de llamada
(CLL)
8
4
30
30
30
60

Costo de llamada
total (CLLT)
9.6
4.8
36
36
36
72

UN TAXI COBRA POR UNA CARRERA 5 USD POR KILMETRO RECORRIDO


Y 2 USD POR MINUTO. DETERMINE EL MONTO A PAGAR POR UNA
CARRERA

Entrada

DIAGRAMA DE FLUJO DE DATOS

Kilmetro recorrido (KMR)


Inicio

Minuto recorrido (MR)


Salida
Monto a pagar (MP)
Proceso
Leer (KMR)

Leer (

Kmr ),

Leer (

Mr )

M c ( Kmr5 ) +( M r2)

Leer (MR)
Operacin

Escribir (

MC )

(MP)= (KMR*5)+(MR*2)

Fin

Escribir (MP)

CORRIDA DE ESCRITORIO
Kilmetro recorrido (KMR)
5
3
5
7
6
7

Minuto recorrido (MR)


10
5
20
25
30
10

Monto a pagar (MP)


45
55
65
85
90
55

UNA EMPRESA LE HACE LOS SIGUIENTES DESCUENTOS SOBRE EL


SUELDO BASE A SUS TRABAJADORES: 1% POR LEY DE POLTICA
HABITACIONAL, 4% POR SEGURO SOCIAL, 0,5% POR SEGURO PARO
FORZOSO Y 5% POR CAJA DE AHORRO. REALICE UN ALGORITMO QUE
DETERMINE EL MONTO DE CADA DESCUENTO Y EL MONTO TOTAL A
PAGAR AL TRABAJADOR.
Entrada

DIAGRAMA DE FLUJO DE DATOS

Ley habitacional 1 % (DT1)

Inicio

Seguro 4% (DT2)
Para forzoso 0.5 % (DT3)

Leer (SB)

Ahorro 5 % (DT4)

Leer (DT1)

Sueldo base (SB)

Leer (DT2)

Salida

Leer (DT3)

Total a pagar (TP)

Leer (DT4)

Total del descuento (TDD)


Proceso
TDD

Leer (SB)

DT1+DT2+DT3+DT4

Leer (DT1)

TDD SB*10.5%/100

Leer (DT2)
Leer (DT3)

Escribir (TDD)

Leer (DT4)

Escribir (TP)

Operacin
Total del descuento = DT1+DT2+DT3+DT4=10.5%

Fin

TDD = SB*10.5%/100
TP= SB-TDD
Escribir (TDD)
Escribir (TP)

CORRIDA DE ESCRITORIO

El Diario de Valera cobra por un aviso clasificado un monto que depende del nmero
de palabras, tamao en centmetros y nmero de colores. Cada palabra tiene un costo
de 20 USD, cada centmetro tiene un costo de 15 USD. Y cada color tiene un costo de
25 USD Realice un algoritmo que determine el monto a pagar por un aviso clasificado.
Entrada

DIAGRAMA DE FLUJO DE DATOS

Numero de palabras (NP)


Inicio

Centmetros (CM)
Numero de colores (NC)
Salida

Leer (NP)

Monto a pagar (MP)

Leer (CM)

Proceso

Leer (NC)

Leer (NP)
Leer (CM)
MP

Leer (NC)

(NP*20) + (CM*15) +

Operacin
MP = (NP*20) + (CM*15) + (NC*25)

Escribir (MP)

Escribir (MP)
Fin

CORRIDA DE ESCRITORIO
Numero de palabras
(NP)

Centmetros (CM)

Numero de colores
(NC)

Monto a pagar (MP)

20
40
10
125

15
60
25
80

5
2
3
1

750
1750
650
3725

El Hotel 5 Estrellas tiene una promocin para sus clientes. Cobra por una habitacin
500USD el primer da, y por el resto de los das cobra 400 USD diario. Realice un
algoritmo que determine el monto a pagar por la habitacin si la estada fue de varios
das.
Entrada

DIAGRAMA DE FLUJO DE DATOS

Das (D)

Inicio

Salida
Costo total (CT)
Leer (D)

Proceso
Leer (D)
Operacin
CT= (D-1)*400+500

CT (D-1)*400+500

Escribir (CT)
Escribir (CT)

Fin

CORRIDA DE ESCRITORIO
Das (D)
4
9
8
7
31

Costo total (CT)


1700
3700
3300
2900
12500

Das könnte Ihnen auch gefallen