Assignment 2-a:

Program 1: You are given the task of determining the download speed of an Internet connection. You decide to use two files whose size is known (in Kilobytes-KB). You will download the two different files, and record the time it takes to download each one. You will determine the download speed of each file (in millions of bits per second-Mbps), and display the average download speed. Remember speed is measured in bits, not bytes.

Note 1: A Kilobyte equates to 1,024 Bytes, and each Byte equates to 8 bits.

Note 2: The download speed is the number of bits transferred divided by the time taken for the transfer (in seconds).

Program 2: Every two weeks you are responsible for re-ordering printer paper for your company’s needs. Assume each package of paper contains 500 sheets. In the past it has been determined that, on average, paper usage closely follows this:

Users Usage Amount

Managers Daily 50 sheets

Employees Daily 95 sheets

Departmental Weekly 2000 sheets

In addition, to be on the safe side, you always order an additional 20% (just to be sure). Once you calculate how many packages of paper you should order, you subtract from this amount the number of packages of paper your company has left over from the previous order. Display this final number of packages of paper you will order

I dont need this put into C++ format if its too much of a hassle, but anything at this point would help right now because this is due tomorrow and i cant seem to figure it out. Im new at this so any help would be great from anyone.