54 Etapa2
54 Etapa2
54 Etapa2
Tutor
Ermes Guarnizo Motta
UNAD
213023A_1701
PROGRAMACION
04/17/2024
1
Link diagrama: https://lucid.app/lucidchart/ed40e3f5-30ba-4047-81f2-
b2fb2ee0103c/edit?viewport_loc=211%2C40%2C2219%2C1041%2CHWEp-
vi-RSFO&invitationId=inv_ef04ddc3-6048-44a3-843e-a328e4dfd9fa
2
Código
// Autor: Cristian Andrés Hincapié Gil
namespace Actividad3
{
internal class CongruenciaZeller
{
private int x;
private int y;
private int z;
3
public int Dia
{
get { return dia; }
}
if (mes == 2)
{
if (año % 4 == 0 && (año % 100 != 0 || año % 400 == 0)) // Año bisiesto
{
if (dia > 29)
{
return false;
}
}
else // No es año bisiesto
{
if (dia > 28)
{
return false;
}
}
}
return true;
}
}
}
}
}
Bibliografía
5
Pérez Menor, J. M., Carretero Pérez, J., García Carballeira, F., & Pérez Lobato, J. M. (2003).
Programación orientada a objetos. In Problemas resueltos de programación en lenguaje Java
(pp. [79]-114). Madrid, Spain: Paraninfo.
https://link-gale-com.bibliotecavirtual.unad.edu.co/apps/doc/CX2136500009/GVRL?
u=unad&sid=GVRL&xid=5f45ff54
Cachero Castro, C., Ponce de León Amador, P. J., & Saquete Boró, E. (2006). Introducción a la
programación orientada a objetos. Digitalia. (pp. [91]-130)
https://bibliotecavirtual.unad.edu.co/login?url=http://search.ebscohost.com/login.aspx?
direct=true&db=nlebk&AN=318161&lang=es&site=eds-
live&scope=site&ebv=EB&ppid=pp_91
Pérez Menor, J. M., Carretero Pérez, J., García Carballeira, F., & Pérez Lobato, J. M. (2003).
Herencia y polimorfifismo. In Problemas resueltos de programación en lenguaje Java (pp.
[283]-303). Madrid, Spain: Paraninfo.
https://link-gale-com.bibliotecavirtual.unad.edu.co/apps/doc/CX2136500015/GVRL?
u=unad&sid=GVRL&xid=f6553daa