Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started