Reference no: EM132216530
You are writing code to copy software over the network. Given a file size and a constant packet/buffer size, you can easily calculate the number of successful packet deliveries required to copy the file.
What you cannot know beforehand is the time it takes to copy these packets. But users love to see a progress bar which estimates a duration left for copying the file.
a) Suppose you have a file that needs 10 same-size packets to be delivered and the first 9 packets have taken 123, 142, 130, 125, 132, 150, 140, 133, and 148 miliseconds respectively. Estimate the time it takes to deliver the last packet.
b) Now suppose you have a file that needs 1.000 same-size packers to be delivered and you have just delivered the first 499 packets. The average time for the 499 packets is 148 miliseconds, and the last 5 packets have taken 124,140, 132, 134, and 140 miliseconds respectively. Estimate the time it takes to deliver all packets.
Create an instance of a car and an instance of an airplane
: Assigns values to the name, max_speed and number_of_cylinders instance variables of the Car object and the name.
|
Compute the factorial of value placed in a1 of active sheet
: Write a VBA sub procedure to compute the factorial of a value placed in A1 of active sheet and place in B1 of the active sheet.
|
Simulate the roll of a pair of six-sided dice
: Write a VBA script that randomly simulates the roll of a pair of six-sided dice and writes the sum of the roll to column A of the worksheet.
|
State your understanding of the requirement for this project
: You have had a chance to state your understanding of the requirements for this project, draft a preliminary design, and express it by means of UML diagrams.
|
Calculate the number of successful packet deliveries
: What you cannot know beforehand is the time it takes to copy these packets. But users love to see a progress bar which estimates a duration left for copying.
|
Compute and the frequency of letters in a given text file
: Write a function that computes and the frequency of letters in a given text file that is to compute the frequency of occurrence of each letter in the alphabet.
|
Write a void function and change the argument
: Write a void function named zeroit and change the argument passed to the function to zero so that when this function is called.
|
Write vhdl test bench model to simulate the fibonacci
: Write VHDL test bench model to simulate the Fibonacci Calculator model. This model, testbench model has no inputs.
|
Write a function to compute fibonacci numbers
: Write a function to compute fibonacci numbers (in the sequence 0, 1, 1, 2, 3, 5, ... where each number is the sum of the previous two numbers on the list).
|