VB.NET Function Help..........Please
I am so stuck on this problem, could any one tell me how to go about writing this function?
Write a function that takes a number of years and returns the equivalent number of months. Write another function that takes a number of years and returns the equivalent number of days....... :confused:
[299 byte] By [
d-1] at [2007-11-11 7:32:46]

# 1 Re: VB.NET Function Help..........Please
Sounds like a class assignment, so you'll have to figure it out. But here's a hint: How many months in a year? So, given a number of years X, how would you calculate the equivalent number of months?
Similarly, how many days in a year (assuming non leap years)? So, given a number of years X, how would you calculate the equivalent number of days?
If you want to get fancy, you could add an extra day for every fourth year, to account for leap years.