Question: provide a code in c Create a c file named yourname_lab2.c Write a program that requests the download speed in megabits per second (Mbs) and

provide a code in c
provide a code in c Create a c file named yourname_lab2.c Write

Create a c file named yourname_lab2.c Write a program that requests the download speed in megabits per second (Mbs) and the size of a file in megabytes (MB). The program should calculate the download time for the file. Note that in this context one byte is eight bits. Use type float, and use / for division. The program should report all three values (download speed, file size, and download time) showing five digits to the right of the decimal point. Each information should be aligned (left justified) as in the following example: Format all output in columns. Align columns using width in the printf function DO NOT USE TAB. X.xocox: X : means print the whole integer part socoxc: means print five digits to the right of the decimal point Notes: Download time (seconds) =8 File size (MB)/ Download speed (Mbs) I Bytews bits B: Byte b: bit

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!