0

Hi everyone, I am a beginner with C++ and am trying to self teach myself the programming. I have been watching tutorials and reading about it and am still getting confused. if anyone can offer help with this exercise and help me to better understand whats being done and why. thank you!

Write a function named daycount() that accepts a month, day, and year as its input arguments; calculates an integer representing the total number of days from the turn of the century to the date that's passedl and returns the calculated integer to the calling function. Assume each year has 365 days and each month has 30 days. Test your function by verifying the date 1/1/00 returns a day count of 1.