I'm having a trouble creating an application that includes date in it.. the purpose would be how to create an application that can determine a menstrual cycle. when i input the "last date of menstrual period" and "average period" it would eventually compute the next date of the menstrual cycle. can anyone help me?
Sure we can.
Show us what you have and all compiler/error messages it is producing, as well as describing what is happening that should not be, or is not happening that should be.
the only problem is the date..
i don't know what to code. The program would run as when the average period would be input, then automatically, the program would count the number of days.
Last day of menstrual period(mmddyyy):
Average number of days: 28
(The output would be:) 10292008
That's the next date of the menstrual cycle...
The problem is, i don't know how to code of retrieving the date automatically...
Use the Calendar class and it's add, setTime, and getTime methods.
can you teach me how to call the class and can you also give me an example? thanks