Ayuda con ejercicios de programación en VB

#1
Hola, buenas tardes quisiera saber quien me podría ayudar a resolver 2 ejercicios de programación que la verdad no entiendo.
La programación no es mi fuerte, espero que alguien me pueda ayudar.
de antemano gracias.

Aquí los ejercicios.

Operators: LeapYear Write a program that prints trueif N corresponds to a leap year, and false otherwise. Assumes N >= 1582,corresponding to a year in the Gregorian calendar. You can see an example inthe following program output.
Prints if a given yearis leap year
* LeapYear 2004. True
* LeapYear 1900. False
* LeapYear 2000. True

Operators: Quadratic Write a program that given band c, solves for the roots of x*x + b*x + c. Assumes both roots are realvalued and use the function Math.Sqrt for the square root. You can see anexample in the following program output.
* Quadratic -3.0 2.0: 2.0, 1.0
* Quadratic -1.0 -1.0: 1.618033988749895, -0.6180339887498949

Gracias.


 
Arriba