There are approximately 3.154e 7 seconds in a year. Write a program that takes the age in
Fantastic news! We've Found the answer you've been seeking!
Question:
There are approximately 3.154e 7 seconds in a year. Write a program that takes the age in integer years as input, and prints the equivalent number of seconds as output. a) Prompt the user for their age in whole numbers. b) Calculate the user's age in the number of seconds that they have lived. c) Display the age both in years and in seconds using the scientific notation (with 2 decimal points) like follows: 1 year is 3.15e7 seconds. Note: Use a constant macro for the conversion factor.
Posted Date: