Arrays List

Páginas: 2 (325 palabras) Publicado: 27 de noviembre de 2012
APP ARRAY LIST
CLASE ALUMNO
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace AppArrayList
{
class Alumno
{private ArrayList listaCuotas = new ArrayList();

public ArrayList ListaCuotas
{
get { return listaCuotas; }
set { listaCuotas = value; }}

public void GenerarCuotas()
{
double importeTotal = Creditos * CostoCredito;
double valorCuota = importeTotal / Cuotas;
for (int k = 1; k<= Cuotas; k++ )
{
Cuota c = new Cuota();
c.NroCuota = k;
c.Importe = valorCuota;
this.listaCuotas.Add(c);}
}

private String nombre;

public String Nombre
{
get { return nombre; }
set { nombre = value; }
}
private intcreditos;

public int Creditos
{
get { return creditos; }
set { creditos = value; }
}
private Double costoCredito;

publicDouble CostoCredito
{
get { return costoCredito; }
set { costoCredito = value; }
}
private int cuotas;

public int Cuotas
{get { return cuotas; }
set { cuotas = value; }
}
}
}

CLASE CUOTA
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;namespace AppArrayList
{
class Cuota
{
private int nroCuota;

public int NroCuota
{
get { return nroCuota; }
set { nroCuota = value; }}
private double importe;

public double Importe
{
get { return importe; }
set { importe = value; }
}
}
}

PROGRAMM
using...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • arrays
  • Arrays
  • Arrays
  • Arrays
  • Arrays
  • Arrays
  • Arrays
  • Los Arrays

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS