question archive Write a C program that has a function called days() that determines the number of days from the date 1/1/1900 to any date passed to a structure

Write a C program that has a function called days() that determines the number of days from the date 1/1/1900 to any date passed to a structure

Subject:Computer SciencePrice: Bought3

Write a C program that has a function called days() that determines the number of days from the date 1/1/1900 to any date passed to a structure. Use the following date structure:

struct Date

{ int month;

int day;

int year; }

In writing the days function, use the convention that all years have 360 days and each month consist of 30 days. The function should return the number of days for any date passed to it. Continue to the program written above and write a function named larger() that takes two dates in the structure given in part (a) and returns the larger date. For example, if the dates 10/9/2001 and 11/3/2001 are passed, the second date would be returned.

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE