Answer:
C code explained below
Explanation:
#include <stdio.h>
#include <stdbool.h>
int main(void) {
int userNum;
bool isPositive;
bool isEven;
scanf("%d", &userNum);
isPositive = (userNum > 0);
isEven = ((userNum % 2) == 0);
if(isPositive && isEven){
printf("Positive even number");
}
else if(isPositive && !isEven){
printf("Positive number");
}
else{
printf("Not a positive number");
}
printf("\n");
return 0;
}
8 bits = 1 byte
10 Mbps = 10/8 M bytes per second
1 frame = 50 bytes
Frame rate = 10 M / (8 x 50) = 10 M / 400 = <em>25,000 frames per second</em>
========================
If each frame has an error probability of 0.004, then (0.004 x 25,000) = 100 frames per second are damaged.
1 hour = 3,600 seconds.
100 damaged frames per second = (100 x 3,600) = <em>360,000 damaged frames per hour.</em>