Question: 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
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.
Need in C(stdio.h and stdio.lib)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
