Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Ingresar 5 label
Ingresar 4 textbox
Ingresar 3 button.
El ejercicio 03 nos pedira ingresar respuestas correctas e incorrectas y nos mostrara el puntaje
total.
Por cada respuesta correcta obtendra 4 puntos y si esta mala tendra -1 punto.
Ingresaremos los comandos que utilizaremos.
Ejercicio N 04:
El siguiente ejercicio nos pedira ingresar partidos ganados y partidos empatados.
Agregaremos los comandos que vamos a utilizar.
Ejercicio N 05:
El ejercicio 05 nos servira para calcular el pago del trabajador multiplicando horas
laboradas * tarifa por cada hora trabajada.
Despues en los label ingresaremos los nombres que deseemos agregarles, si desean
se pueden ayudar con la imagen.
Ejercicio N 06:
El siguiente eejercicio pedira ingresar cuantro miden los tres lados de cualquier clase de
triangulos, luego tendra que mostrar el semiperimetro y el area total.
Matricessssssssssssssss
Crear una matriz de 3 filas por 5 columnas con elementos de tipo int, cargar sus
componentes y luego imprimirlas.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Matriz1
{
class Matriz1
{
private int[,] mat;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Matriz2
{
class Matriz2
{
private int[,] mat;
Crear y cargar una matriz de 3 filas por 4 columnas. Imprimir la primer fila. Imprimir la
ltima fila e imprimir la primer columna.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Matriz3
{
class Matriz3
{
private int[,] mat;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Matriz6
{
class Matriz6
{
private int[,] mat;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Matriz7
{
class Matriz7
{
private int[,] mat;
namespace Matriz8
{
class Matriz8
{
private int[,] mat;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Matriz9
{
class Matriz9
{
private string[] empleados;
private int[,] sueldos;
private int[] sueldostot;
sueldos[f,c]=int.Parse(linea);
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PruebaConstructor1
{
class Operarios
{
private int[] sueldos;
public Operarios()
{
sueldos=new int[5];
for(int f = 0; f < sueldos.Length;
f++)
{
Console.Write("Ingrese el
sueldo:");
string linea =
Console.ReadLine();
sueldos[f]=int.Parse(linea);
}
}
Plantear una clase llamada Alumno y definir como atributos su nombre y su edad. En el
constructor realizar la carga de datos. Definir otros dos mtodos para imprimir los datos
ingresados y un mensaje si es mayor o no de edad (edad >=18)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PruebaConstructor2
{
class Alumno
{
private string nombre;
private int edad;
public Alumno()
{
Console.Write("Ingrese nombre:");
nombre = Console.ReadLine();
Console.Write("Ingrese edad:");
string linea = Console.ReadLine();
edad=int.Parse(linea);
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Herencia3
{
public class A
{
public A()
{
Console.WriteLine("Constructor de la
clase A");
}
}
public class B : A
{
public B()
{
Console.WriteLine("Constructor de la
clase B");
}
}
public class C : B
{
public C()
{
Console.WriteLine("Constructor de la
clase C");
}
}
class Prueba
{
static void Main(string[] args)
{
C obj1 = new C();
Console.ReadKey();