Correccion del examen de m

3
CORRECCION DEL EXAMEN DE M.F.S.I NOMBRE: JORGE RAMIREZ CURSO: 3º DE BACHILLERATO “D” 1.-INIR CON LINEAS LA SENTENCIA DE LA DERECHA EL TIPO DE ESTRUCTURA DE CONTROL DE LA IZQUIERDA EN C++. ESTRUCTURA DE DECISIÓN if….else ESTRUCTURA DE SELECCIÓN while, do while, for ESTRUCTURA DE SELECCIÓN switch case 2.-EN EL PROCESO DE DIRECCION DE PROGRAMAS EN EL LENGUAJE C++ SE UTILIZA VARIAS LIBRERIAS ENTRE ELLAS TENEMOS LA COLUMNA DERECHA LAS LIBRERIAS Y EL LA IZQUIERDA SU UTILIDAD UNIR CON LINEAS SEGÚN CORRESONDA PARA INGRESAR Y/O MOSTRAR DATOS #include<iostream.h> PARA UTILIZAR scaf Y print #include<stdio.h> BORRAR LA PANTALLA Y USAR gotoxy #include<conio.h> 3.-PONGA V DE VERDADERO O F DE FALSO SOBRE LA FORMA DE DECLARAR VARIBLES, VECTORES EN C++ Int nombre; int dirección; int materia (F) int numero (10); int vector (5); int numero (20): (F) int matriz (10)(10); int numero(4)(3); int tabla (10)(10) (F) char mensaje (‘hola’));char saludo (buenos días) (F) 4.-DETERMINE LA SALIDA DEL SIDUIENTE PROGRAMA REALIZANDO UNA CORRIDA DE ESCRITORIO CON LAS VARIABLES n, s, p, ma, me, numero. Int c, n, s, p, ma, me, numero [10]; s=0; ma=0; me=9999; Cout<<\"ingrese los 10 números del arreglo:\"<<endl; For (int c=0;c<10;c++){ Cin>>n; Numero[c]=n; s=s+numero[c]; If (numero[c]>ma) { ma=numero[c];

Transcript of Correccion del examen de m

Page 1: Correccion del examen de m

CORRECCION DEL EXAMEN DE M.F.S.I

NOMBRE: JORGE RAMIREZ CURSO: 3º DE BACHILLERATO “D”

1.-INIR CON LINEAS LA SENTENCIA DE LA DERECHA EL TIPO DE ESTRUCTURA DE CONTROL DE LA IZQUIERDA EN C++.

ESTRUCTURA DE DECISIÓN if….else ESTRUCTURA DE SELECCIÓN while, do while, for ESTRUCTURA DE SELECCIÓN switch case

2.-EN EL PROCESO DE DIRECCION DE PROGRAMAS EN EL LENGUAJE C++ SE UTILIZA VARIAS LIBRERIAS ENTRE ELLAS TENEMOS LA COLUMNA DERECHA LAS LIBRERIAS Y EL LA IZQUIERDA SU UTILIDAD UNIR CON LINEAS SEGÚN CORRESONDA

PARA INGRESAR Y/O MOSTRAR DATOS #include<iostream.h> PARA UTILIZAR scaf Y print #include<stdio.h> BORRAR LA PANTALLA Y USAR gotoxy #include<conio.h>

3.-PONGA V DE VERDADERO O F DE FALSO SOBRE LA FORMA DE DECLARAR VARIBLES, VECTORES EN C++

Int nombre; int dirección; int materia (F) int numero (10); int vector (5); int numero (20): (F) int matriz (10)(10); int numero(4)(3); int tabla (10)(10) (F) char mensaje (‘hola’));char saludo (buenos días) (F)

4.-DETERMINE LA SALIDA DEL SIDUIENTE PROGRAMA REALIZANDO UNA CORRIDA DE ESCRITORIO CON LAS VARIABLES n, s, p, ma, me, numero.

Int c, n, s, p, ma, me, numero [10];

s=0; ma=0; me=9999;

Cout<<\"ingrese los 10 números del arreglo:\"<<endl;

For (int c=0;c<10;c++){

Cin>>n;

Numero[c]=n;

s=s+numero[c];

If (numero[c]>ma) {

ma=numero[c];

}

If (numero[c] <me){ me=numero[c];

}

numero[c]=numero[c]+1;

cout<<\"valor de s es:\"<<s<<endl<<\"valor de4 p es:\"<<s/10<<endl<<\"valor de ma es:\"<<ma<<endl<<\"valor de me es:\"<<me;

RESPUESTA CON CORRIDA DE ESCRITORIO

Page 2: Correccion del examen de m

5.-REALICE LA PARTE FUNDAMENTAL DEL CÓDIGO EN C++ PARA LLENAR AUTOMÁTICAMENTE UN VECTOR DE LAS SIGUIENTES MANERAS

For (i=0; <9; i++) acumula = 0 { for (I=0;I<9;I++) if ( i% 2 == 0) { numero[1]=1; numero[1]=acumula; else acumula=acumula+2 ; numero[i]=2; } }

For (j=0;j<=4;j++) for(j=0;j<=4;j++) for(i=0;i<=4;i++) for(i=0;i<=4;i++)matriz [j] [i]= i+1 matriz [i] [j] = j+1

n s p

ma me numero[c] c

1 0 0 1 9999 1 2 02 1 2 1 2 3 13 2 3 3 4 24 4 4 4 5 35 8 5 5 6 46 13 6 6 7 57 19 7 7 8 68 26 8 8 9 79 34 9 9 10 8

43 10 11 9