Answer:
Decision making structures require that the programmer specify one or more conditions to be evaluated or tested by the program, along with a statement or statements to be executed if the condition is determined to be true, and optionally, other statements to be executed if the condition is determined to be false.
Yes i would love to help the cause <span />
Answer:
error: incompatible types
Explanation:
Given
The attached code
Required
The output
Variable "a" is declared as float
While p is declared as a pointer to an integer variable
An error of incompatible types will be returned on line 3, <em>int *p = a;</em>
Because the variables are not the same.
To assign a to p*, we have to use type casting.
Hence, (b) is correct
Answer:
Two systems are connected by a router. Both systems and the router have transmission rates of 1,000bps. Each link has a propagation delay of 10ms. Also, it takes router 2ms in order to process the packet (e.g. decide where to forward it). Suppose the first system wants to send a 10,000 bit packet to the second system. How long will it take before receiver system receives the entire packet.
Transmission time for first Router = 10,000 bits / 1000 bps = 10 seconds
Receiving time for seond route r= 10,000 bits / 1000 bps = 10 seconds
Propagation delay = 10ms = .01 seconds x 2 for two delays = .02 seconds
First router 2ms to process = .002 seconds
Add all the times together and we get 20.022 seconds which is the same as or 20 seconds and 22 ms