Вы находитесь на странице: 1из 2

CORRECCION DEL EXAMEN DE M.F.S.

I
NOMBRE: Carlos Carrillo 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 DECISIN ESTRUCTURA DE SELECCIN ESTRUCTURA DE SELECCIN if.else while, do while, for 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 SEGN CORRESONDA
PARA INGRESAR Y/O MOSTRAR DATOS PARA UTILIZAR scaf Y print BORRAR LA PANTALLA Y USAR gotoxy #include<iostream.h> #include<stdio.h> #include<conio.h>

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


Int nombre; int direccin; int materia int numero (10); int vector (5); int numero (20): int matriz (10)(10); int numero(4)(3); int tabla (10)(10) char mensaje (hola));char saludo (buenos das) (F) (F) (F) (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 nmeros 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

n 1 2 3 4 5 6 7 8 9

p ma me

numero[c] c 2 3 4 5 6 7 8 9 10 11 0 1 2 3 4 5 6 7 8 9

0 0 1 2 4 8 13 19 26 34 43

1 9999 1 2 1 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10

5.-REALICE LA PARTE FUNDAMENTAL DEL CDIGO EN C++ PARA LLENAR AUTOMTICAMENTE UN VECTOR DE LAS SIGUIENTES MANERAS
For (i=0; <9; i++) { if ( i% 2 == 0) numero[1]=1; else numero[i]=2; } acumula = 0 for (I=0;I<9;I++) { numero[1]=acumula; acumula=acumula+2 ; }

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

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

Вам также может понравиться