/****************************************************************************** * This program computes the number of seconds in a year. * * Copyright © 2016 Richard Lesh. All rights reserved. *****************************************************************************/ #include #include using namespace std; static int const SECONDS_PER_MINUTE = 60; static int const MINUTES_PER_HOUR = 60; static int const HOURS_PER_DAY = 24; static double const DAYS_PER_YEAR = 365.2425; int main(int argc, char **argv) { cout << "Seconds per year: " << int(SECONDS_PER_MINUTE * MINUTES_PER_HOUR * HOURS_PER_DAY * DAYS_PER_YEAR) << endl; return 0; }