Question: Write a C/C++ program that determines exactly how many hours have passed since a previous historical event happened. For example, if the user entered the
Write a C/C++ program that determines exactly how many hours have passed since a previous historical event happened. For example, if the user entered the hour and date of the historical event (including the time of day in military format, the month in char format, the day of the month in integer format and year in 4 digit format); then your program would calculate the number of hours between then and the present time. Note you should take into account the extra days due to leap years and the number of days in each month (whether it is a 28, 30 or 31 day month). For example, if the user entered 1400 hours (2 PM) for the hour, July for the month, 4 for the day and 1776 for the year, your program would calculate and return the number of hours that have passed since the declaration of independence
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
