Question: In Javascript Write a function named download_time that takes an integer as its input (parameter). The parameter represents the size of a file in Gigabytes.

In Javascript Write a function named download_time that takes an integer as its input (parameter). The parameter represents the size of a file in Gigabytes. Your function should return the number of seconds required to download a file of that size if your download speed is 26 Megabits per second. Start by converting the file size from Gigabytes to Megabits.You can then use the filesize (in Mb) and download speed (in Mbps) to calculate the time needed. Important Note: 1 Gigabyte equals 8000 Megabits (since 1 Gigabyte equals 1000 Megabytes and 1 Megabyte equals 8 Megabits.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!