Another example of Console application using c sharp language. lets find out how this program works. i have made different classes like validateMonth, validateDay which does not need to be made. it works fine if you do not make these classes. you want to calculate your age(Years, Months, Days) you only need to enter date of birth and subtract date of birth from today's Date. you will be shown output very accurate but this application for those who will not commit a mistake while entering the data of birth. to make it generic it requires some validations that will not allow the user to enter incorrect date of birth.
Knowledge increases when shares to others.
Showing posts with label DateTime Object declaration. Show all posts
Showing posts with label DateTime Object declaration. Show all posts
Friday, October 7
Age Calculator using User define Methods
Another example of Console application using c sharp language. lets find out how this program works. i have made different classes like validateMonth, validateDay which does not need to be made. it works fine if you do not make these classes. you want to calculate your age(Years, Months, Days) you only need to enter date of birth and subtract date of birth from today's Date. you will be shown output very accurate but this application for those who will not commit a mistake while entering the data of birth. to make it generic it requires some validations that will not allow the user to enter incorrect date of birth.
Subscribe to:
Posts (Atom)