Pure Programmer
Blue Matrix

Cluster Map

Project: Seconds in a Year

Write a program that computes the number of seconds in a year. Use named constants for the various factors you need like SECONDS_PER_MINUTE or MINUTES_PER_HOUR. Our Gregorian calendar year is 365.2425 days long.

$ g++ -std=c++17 SecondsPerYear.cpp -o SecondsPerYear -lfmt $ ./SecondsPerYear Seconds per year: 31556952