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
Get step-by-step solutions from verified subject matter experts
