subject
Computers and Technology, 09.10.2019 22:00 jovillo

You can find out how many seconds have elapsed since jan 1, 1970 using the time() function. #include now = time(null); // now is more than a billion seconds (which data type should you use? ) write a program that estimates how many years, months, weeks, days, and hours have gone by since jan 1 1970 by calculations with the number of seconds that have passed. the number of months must be less than 12, i. e., take out how many years have gone by first, then how many months are left, then weeks, etc. assume that all years have 365 days, and all months have 30.42 days. don’t use a calculator, or any web site that reports the number of seconds in a month, etc. – your c program can calculate anything that you need. notice that this is an assignment on using arithmetic in c. hints. how many seconds are in a minute? hour? a day? a week? a month? a year?

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:40
In this lab, you complete a python program that calculates an employee's annual bonus. input is an employee's first name, last name, salary, and numeric performance rating. if the rating is 1, 2, or 3, the bonus rate used is .25, .15, or .1 respectively. if the rating is 4 or higher, the rate is 0. the employee bonus is calculated by multiplying the bonus rate by the annual salary.
Answers: 1
question
Computers and Technology, 23.06.2019 08:00
Match the items with their respective descriptions.
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Stops: using the information learned in this course, explain three things you will not do when driving. a. b. c. explain why you will not do these things when driving. starts: using the information learned in this course, explain three things you will do when driving. a. b. c. explain why you will do these particular things when driving. explain one thing you will stop doing as a passenger. explain one thing you will start doing as a passenger.
Answers: 3
question
Computers and Technology, 24.06.2019 02:40
Has anyone seen my grandma shes been gone for 4 years already
Answers: 1
You know the right answer?
You can find out how many seconds have elapsed since jan 1, 1970 using the time() function. #include...
Questions
question
Social Studies, 08.03.2021 22:50
question
Mathematics, 08.03.2021 22:50
Questions on the website: 13722367