Sei sulla pagina 1di 7

Extraer datos de un texto teniendo en cuenta la posicin inicial y la

cantidad de caracteres.

Datos

Respuesta

Inicio

A. Schenberg, compositor

Sche

Andrs Segovia, guitarrista

rs S

W. Shakespeare, escritor

Shake

Cantidad

G. Sorel pensador social

Sorel

Juan Daz Solis, explorador

n Da

Luis XV El Bienamado, Rey

s XV

Calcular el mximo valor, mnimo valor, promedio y total de gastos dentro de la base de da
mostrados para el sector alimentos
Vendedor
Bella Luz
Marimar
Rub
Maria
Mercedes
Christhian
Jonhy
Benito
Josue
Orlando

Sector
Hogar
Romntico
Alimentos
Hogar
Hogar
Alimentos
Hogar
Alimentos
Alimentos
Hogar

Gastos
S/. 200.00
S/. 33.00
S/. 80.00
S/. 60.00
S/. 92.00
S/. 300.00
S/. 150.00
S/. 28.00
S/. 300.00
S/. 150.00

Gasto Mximo
S/. 300.00

Gasto Mnimo
S/. 28.00

Gasto Promedio
S/. 139.30

Gasto Total
S/. 1,393.00

dentro de la base de datos

Sector
ALIMENTOS

Elaborar un cdigo que permita mostrar: El segundo carcter del apellido, primer carcter
Observacin 2. Calcular el promedio, Puntaje (Sumatoria de todas las ventas). Mostrar la O

CODIGO
OP1
E
I
O

APELLIDOS Y NOMBRES
LOZANO SANTISTEBAN MARYELENA
MEJIA DIAZ DEYSI
MIO PAZ DELSY ARACELI
MORALES TINEO GABY MELISSA

PROMEDIO VENTAS

OBSERVACION 1

0 ---- 6

PESIMO

7 ---- 10

MALO

11 ----- 14

REGULAR

15 ----- 17

BUENO

18 ---- 20

EXCELENTE

PUNTAJE VENTAS

OBSERVACION 2

0 ------ 30

NO INGRESO

31 ---- +

INGRESO

VENTA 1
17
14
14
8

VENTA 2
18
15
13
5

pellido, primer carcter de la Observacin 1 y ltimo carcter de la


as ventas). Mostrar la Observacin 1 y Observacin 2 segn plantilla.

VENTA 3
18
14
14
3

PROMEDIO
17.666667
14.333333
13.666667
5.3333333

PUNTAJE OBSERVACION 1 OBSERVACION 2


53 PESIMO
1212121
43
41
16

(En Nuevos Soles)

It.
6

NOMBRES Y APELLIDOS

CARGO

UNIDAD ORGNICA

N EQUIPOS
ASIGNADOS

Ene

German Pisfil Agapito

Jefe

Contabilidad

36.62

Alberto Valdera
26 Anselmo Lozano Centurion
17 Armando Soto Fernandez

Jefe

Tesorera

33.91

Alcalde

Alcalda

214.28

Gerente

Rentas

142.36

21 Baltazar Periche Siesquen


5 Carlos Zea Inoan

Gerente

Servicios Pblicos

138.84

Encargado

Almacn

36.62

Junta Vecinal

Seguridad Ciud.

34.12

18 Cesar Gonzalez Bernal


2 Cesar Rodriguez Villegas

Asistente

Informtica

36.62

Jefe

Ejec.Presupuestal

36.62

10 Dick Silva Ravines


14 F. BARDALES (juntas vecinales)

Jefe

Estudios y Proyec.

34.12

Junta Vecinal

Div.Seg.Ciudadana

33.90

8 G. ABARCA (juntas vecinales)


23 Harry Arturo Gonzalez Solano
22 Jorge Perales Perez

Junta Vecinal

Seguridad Ciud.

33.91

Gerente

Desarrollo Urbano

138.62

Gerente

Administracin

138.62

Jose Hector Lluen Cumpa

Jefe

Div.Seg.Ciudadana

33.91

20 Jose Hector Lluen Cumpa


16 Jos Hctor Lluen Cumpa

Jefe

Div.Seg.Ciudadana

34.12

Jefe

Div.Seg.Ciudadana

34.14

12 Jos Hctor Lluen Cumpa N O


11 JOSEFINA DE LA CRUZ (juntas vecinales)

Jefe

Div.Seg.Ciudadana

34.14

Junta Vecinal

Seguridad Ciud.

35.20

4 Luis HumbertoZelada Vargas


27 Mary Rita Castro Grosso
13 Rosa Consuelo Delgado Collazos

Jefe

Informtica

33.91

Gerenta

G. Municipal

127.75

Jefe

Participacin Vec.

33.91

Tc.Administ.

Rentas

36.63

25 Walter Mondragn Vera


24 Wilfredo Castro Carmona

Jefe

Logstica

37.15

Gerente

Asesora Legal

127.75

15 Wiliam Santacruz Ortiz


19 Zara Bravo Valladolid

Jefe

Relaciones Pblic.

34.12

Jefa

Personal

131.28

CESAR ESPARZA (juntas vecinales)

Roy Li Guevara

Nuevos Soles)

IMPORTE EJECUTADO
Feb

Mar

Abr

May

Jun

Jul

Ago

38.47

38.47

42.71

42.71

42.71

43.37

42.71

35.75

36.13

40.00

48.80

41.89

42.07

46.57

218.78

122.23

315.34

328.48

213.24

197.25

197.24

138.62

138.62

138.62

139.86

138.62

138.62

138.84

138.84

138.70

139.10

139.31

38.47

38.47

42.71

43.22

35.75

35.95

40.19

41.76

35.75

38.47

42.71

44.49

42.71

38.47

38.47

42.71

42.71

42.84

35.94

35.76

40.00

47.61

35.77

35.95

40.19

40.00

35.94

35.94

40.19

138.62

138.62

139.76
35.75

Sep

Oct

Nov

Dic

42.71

42.89

42.71

40.64

40.62

52.36

197.23

197.23

197.23

143.11

138.62

138.62

138.62

139.06

1387.67

139.43

138.84

138.84

46.63

48.02

43.79

45.26

44.91

43.07

40.24

40.43

47.20

40.24

40.33

47.21

42.71

42.71

42.71

42.96

45.40

48.20

50.86

42.71

42.71

40.24

42.23

40.23

40.30

40.13

40.24

42.55

42.92

40.00

40.00

42.52

42.16

40.00

40.23

40.00

44.64

40.00

45.28

43.01

138.62

138.62

138.62

138.62

138.62

138.62

138.62

138.62

138.62

138.62

138.62

138.62

138.62

138.62

127.75

138.62

127.75

35.75

40.00

45.24

40.00

40.00

47.18

40.00

41.25

40.00

35.75

35.75

40.19

40.70

42.67

55.64

56.83

56.49

114.10

35.94

35.95

40.00

40.84

40.57

41.94

40.00

40.34

41.21

35.94

35.95

40.00

40.84

40.57

41.94

47.61

35.75

35.95

40.19

40.00

40.46

40.49

40.00

41.13

48.34

40.17

35.75

35.75

40.00

37.00

40.00

44.83

40.00

40.00

41.57

40.83

127.75

212.74

173.39

173.39

173.63

173.39

173.61

35.75

35.75

40.00

40.00

40.00

40.00

40.00

40.00

40.00

40.00

38.49

38.47

42.71

42.71

42.71

43.47

43.44

42.71

43.10

42.84

35.75

35.75

40.56

46.23

40.38

40.00

40.00

40.00

40.10

41.74

127.75

127.75

127.75

127.75

127.75

127.75

127.75

127.75

127.75

127.75

35.77

35.75

40.19

40.07

40.20

41.22

44.26

40.41

40.00

40.00

127.75

127.75

146.12

127.75

127.75

127.75

127.75

127.75

127.75

127.75

197.23

173.39

41.02

179.31

173.63

Potrebbero piacerti anche