Question

use the internet to find the number of seconds since the last epoch (the current epoch...

use the internet to find the number of seconds since the last epoch (the current epoch is midnight, January 1st, 1970) for your current time. convert the seconds value to days (there are 86400 seconds per day).

how would the resulting decimal value be stored in memory? show each step of your calculations.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Number of seconds since last epoch right now is : 1548965993

1548965993 seconds have been passed since jan 1st , 1970.

seconds = 1548965993

To convert seconds into days we need to divide resultant seconds by 86400

Total days = (1548965993) / 86400

Since total seconds which is obtained is of order around 10^10. So int varible will not be sufficient to store.

To store seconds we need to store in the long int varible

long int seconds = 1548965993 ;

To store the number of days which is obtained after division we can simply store it in float varible

float days = (float)seconds / 86400;

Add a comment
Know the answer?
Add Answer to:
use the internet to find the number of seconds since the last epoch (the current epoch...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • In (11): def convert time time in seconds) <Fill in the docstring for this function 0...

    In (11): def convert time time in seconds) <Fill in the docstring for this function 0 # <Add your code below. Note that the return value is currently arbitrary # Note that number format in the format string below> + hours = 5 minutes - 38 seconds = 12 designation - "PM" return "{:62d}: {:02d):{:02dH)".format( hours, minutes, seconds, designation # Tests print( convert time 7)) print convert time 2 • 60 60 + 7)) print( convert time( 12 * 60...

  • Question Help The table below provides the parameters for a new current state vake stream map...

    Question Help The table below provides the parameters for a new current state vake stream map for the family traine e Jensen Bearings infirm described in the chapter. This table depicts the value stream atter Kline Steel agrees to condaily orders for steel sheels and also agrees to deliver on a daily basis Calculate each component of the new value stream's reduced lead me Jensen Bearings operates 5 days per week Click the icon to view the data from the...

  • You find the following corporate bond quotes. To calculate the number of years until maturity, assume that it is current...

    You find the following corporate bond quotes. To calculate the number of years until maturity, assume that it is currently January 15, 2016. The bonds have a par value of $2,000. You find the following corporate bond quotes. To calculate the number of years until maturity, assume that it is currently January 15, 2016. The bonds have a par value of $2,000 EST $ Vol (000's) 57,372 48,951 43,812 Company (Ticker) Xenon, Inc. XIC) Kenny Corp. KCC) Williams Co. (WICO)...

  • Bits to binary number conversion.

    A missile uses an internal computer clock to measure time in tenths of a second. The missile guidance system needs the time from launch, in seconds, in order to calculate its distance from the launch site. It obtains this by multiplying the computer clock time by 0.1. So, for example, a reading of 50 tenths of a second is 5 seconds. For one particular missile system, the conversion factor of 0.1 is stored in 8 bits as the binary number...

  • 6.11 IS THE CURRENT YIELD. You find the following corporate bond quotes. To calculate the number...

    6.11 IS THE CURRENT YIELD. You find the following corporate bond quotes. To calculate the number of years until maturity, assume that it is currently January 15, 2016. The bonds have a par value of $2,000. Company (Ticker) Xenon, Inc. (XIC) Kenny Corp. (KCC) Williams Co. (WICO) Coupon 6.400 7.220 ?? Maturity Jan 15, 2030 Jan 15, 2029 Jan 15, 2036 Last Price 94.283 ?? 94.835 Last Yield ?? 5.34 7.04 EST $ Vol (000's) 57,372 48,951 43,812 What price...

  • You find the following corporate bond quotes. To calculate the number of years until maturity, assume that it is cur...

    You find the following corporate bond quotes. To calculate the number of years until maturity, assume that it is currently January 15, 2019 and the bonds have a par value of $2,000. What price would you expect to pay for the Kenny Corp. bond? What is the bond’s current yield? You find the following corporate bond quotes. To calculate the number of years until maturity, assume that it is currently January 15, 2019 and the bonds have a par value...

  • You find the following corporate bond quotes. To calculate the number of years until maturity, assume...

    You find the following corporate bond quotes. To calculate the number of years until maturity, assume that it is currently January 15, 2019. The bonds have a par value of $2,000 and semiannual coupons. Last Price 94.183 Last Yield Company (Ticker) Coupon Maturity Xenon, Inc. (XIC) 5.400 Jan 15, 2023 Kenny Corp. (KCC) 7.125 Jan 15, 2022 Williams Co. ?? Jan 15, 2029 (WICO) EST $ Vol (000's) 57,362 48,941 43,802 5.14 6.85 ?? Ja 94.735 a. What price would...

  • You find the following corporate bond quotes. To calculate the number of years until maturity, assume that it is curren...

    You find the following corporate bond quotes. To calculate the number of years until maturity, assume that it is currently January 15, 2019 and the bonds have a par value of $2,000. Last Yield ?? Company (Ticker) Coupon Xenon, Inc. (XIC) 7000 Kenny Corp. (KCC) 7.280 Williams Co. (WICO) ?? Maturity Jan 15, 2039 Jan 15, 2038 Jan 15, 2045 Last Price 94.343 ?? 94.895 EST $ Vol (000's) 57,378 48,957 43,818 5.46 7.16 a. What price would you expect...

  • You find the following corporate bond quotes. To calculate the number of years until maturity, assume...

    You find the following corporate bond quotes. To calculate the number of years until maturity, assume that it is currently January 15, 2019 and the bonds have a par value of $2,000. Company (Ticker) Coupon Maturity Last Price Last Yield EST $ Vol (000’s) Xenon, Inc. (XIC) 6.000 Jan 15, 2029 94.243 ?? 57,368 Kenny Corp. (KCC) 7.180 Jan 15, 2028 ?? 5.26 48,947 Williams Co. (WICO) ?? Jan 15, 2035 94.795 6.96 43,808 a. What price would you expect...

  • can someone help me for the question S . the last qustion thank you Financial statements...

    can someone help me for the question S . the last qustion thank you Financial statements for Fanning Company follow FANNING COMPANY Balance Sheets As of December 31 2019 2018 25.000 241,000 208.000 280,000 31,000 $584 000 26.000 $524 000 $ Current assets Cash Marketable securities Accounts receivable net) Inventories Prepaid items Total current assets Investments Plant (net) Land Total assets Liabilities and Stockholders' Equity Liabilities Current liable Notes payable Accounts payable Salaries payable Total current a s Noncurrenties Bonds...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT