Este trabajo fue hecho por los alumnos Asael Cardona y Enrique Robledo del grupo 404 para la materia de Programacion. Semestre B0910
NET Nicolas Romero
Medidas de formas, coeficiente de asimetría y coeficiente de curtosis.pptx
Programacion
1. NUEVA ESCUELA TECNOLOGICA ASAEL MARTINEZ CARDONA ENRIQUE ROBLEDO MENDEZ PROFRA. RUTH GRUPO. 404 PROGRAMACION TODO LO QUE VIMOS EN EL PARCIAL
2. ¿QUE ES PROGRAMACION?EN INFORMATICA, LA PROGRAMACIÓN ES UN PROCESO POR EL CUAL SE ESCRIBE (EN UN LENGUAJE DE PROGRAMACION), SE PRUEBA, SE DEPURA Y SE MANTIENE EL CODIGO FUENTE DE UN PROGRAMA INFORMATICA.
3. ALGUNOS DE LOS CODIGOS QUE UTILIZAMOS FUERON:#include <math.h>#include <iostream.h>#include <conio.h> //----SUMA PARES ENTRE 2 Y UN NUMERO CUALQUIERA MAYOR QUE 2-----// //Descargado de www.PROGRAMACION.com voidmain(void) {int numero, suma_pares=0; clrscr(); cout <"SUMA DE PARES ENTRE 2A UN NUMERO CUALQUIERA MAYOR QUE 2"; cout<<"ngrese el numero para sumar los pares entre 2 y el numero: "; cin>>numero; suma_pares = numero*(numero+2)/4; cout<<"a suma de los pares entre 2 y el numero ingresado es : "<<suma_pares; getch(); }
4. YA DESPUES DE INGRESAR LOS CODIGOS Y QUE ESTEN BIEN ABRIA ESTA PAG.(PARECIDO)
5. CODIGO CONIO. /*** *conio.h - console and port I/O declarations * * Copyright (c) Microsoft Corporation. All rights reserved. * *Purpose: * This include file contains the function declarations for * the MS C V2.03 compatible console I/O routines. * * [Public] * ****/ #if _MSC_VER > 1000 #pragma once #endif #ifndef _INC_CONIO #define _INC_CONIO #include <crtdefs.h> #ifdef __cplusplus extern "C" { #endif /* Function prototypes */ _CRTIMP __checkReturn_waterrno_t __cdecl _cgets_s(__out_ecount_z(_Size) char * _Buffer, size_t _Size, __out size_t * _SizeRead); __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1(errno_t, _cgets_s, __out_ecount_part(_Size, *_Buffer) char, _Buffer, __out size_t *, _Size) __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0_CGETS(char *, _CRTIMP, _cgets, __out_z char, _Buffer) _CRTIMP __checkReturn_optint __cdecl _cprintf(__in_z __format_string const char * _Format, ...); _CRTIMP __checkReturn_optint __cdecl _cprintf_s(__in_z __format_string const char * _Format, ...);
6. CODIGO // examen.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "stdio.h" #include "stdlib.h" #include "time.h" int _tmain(intargc, _TCHAR* argv[]) { int salir, saliryesno; salir=0; while (salir==0){ intrandom; float gasto, ncargo; printf("INTRODUZCA LA CANTIDAD TOTAL DE LA COMPRA: "); scanf ("%f",&gasto;""); while (gasto < 0) { printf("NO EXISTEN CARGOS NEGATIVOS INTRODUZCA NUEVO GASTO: "); scanf("%f",gasto&""); } if (gasto >= 100){ printf("SU GASTO IGUALA O SUPERA LOS $100.00 Y POR TANTO PARTICIPA EN LA PROMOCION."); printf(" COLOR DESCUENTO"); printf("BOLA BLANCA NO TIENE"); printf("BOLA ROJA10 POR CIENTO"); printf("BOLA AZUL20 POR CIENTO"); printf("BOLA VERDE25 POR CIENTO"); printf("BOLA AMARILLA50 POR CIENTO"); srand(time(NULL)); random=rand()%5; case 1: printf("ALEATORIAMENTE USTED OBTUVO UNA BOLA BLANCA"); printf("LO SENTIMOS, NO HA GANADO NINGUN DESCUENTO. "); printf("EL TOTAL A PAGAR ES DE $%.2f",gasto); break; case 2: return 0; }
7. ¿DEFINE QUE SON LOS TIPOS DE DATOS UNSIGNED? Es una abreviatura de unsignedint, un entero de 2 bytes unsignedint que solo puede sostener valores positivos en el rango de 0 a 65535 ¿Qué SIGNIFICA %U? Se utiliza para leer un valor unsigned por medio de scanf ¿Qué HACE LA FUNCION TIME? Vuelve la hora del dia en segundos. ¿Qué ES EL CALENTAMIENTO? Es igual a la longitud del rango deseado de enteros consecutivos. EN QUE CONSISTE EL JUEGO “CRAPS” El jugador tira dos dados y en la cara que salga sumandolos si sale 7 u`ll en el primer tiro el jugador gana. ¿CUANTOS CASOS MANEJA ESTE JUEGO? 5- si son 7 y 11 gana si son 2, 3 y 12 pierde ¿Qué ES LA ENUMERACION? Es un conjunto de constantes enteros y representadas por medios de identificadores.