Purpose
- Read interactive input from the user
- Perform a calculation
- Conditionally change the units of the computed result
- Format the result for output
Assignment - Compute the time required to transfer a file- Prompt the user for the file size in Megabytes (a byte is 8 bits)
- Prompt the user for the estimated transfer speed in Megabits/second
- Display the file transfer time in seconds (don't forget the bytes to bits conversion)
- For times longer than a minute, display in minutes.
|
|