Answer:
Explanation:
a. In this scenario, the best solution would have an Object of Traditional Books, CD, Music, Bookstore and Customer.
b. All five objects would be able to be called by the main program loop and the Customer Object would call upon and use either the Books or CD object, While the Bookstore object would call upon all of the other objects.
c. Both the Bookstore object and Customer object will "have" other objects as the Bookstore needs to hold information on every Book or CD in the Inventory. While the Customer object would call upon the Book and CD object that they are purchasing.
d. The Music Object will extend the CD object and use information on the CD object as its parent class.
e. Since the Music Object extends the CD object it is also considered a CD since it is in CD format like the Books on CD and therefore is both objects.
Answer:
All the ports in a hub are in the same collision domain and a hub sends frames from one host to all other hosts in the network. This makes it prone to collision and poor network throughput. Just like a network switch, it uses the CSMA/CD protocol to detect collision in its network.
A network switch reduces its collision domain to just a port and sends frames from one host to another using its mac table as a route. This makes the network very efficient with high throughput. It also uses the CSMA/CD protocol to detect collision
Explanation:
Switches and hubs are used in networking to connect computer devices in a network. A hub is an obsolete device networking that broadcast a frame to all other ports or host in the network except for the send host port. This increases the rate of collision as all the ports in a hub share the same collision domain. A switch is an efficient frame switching device in a network, which uses its MAC table to decide and find a destination host.
CSMA/CD is a collision detection protocol used in a network to detect and prevent a collision. With this protocol, a host is able to listen, wait, send and resend frames to prevent a collision.
Answer:
the storage unit of a computer is known as the term which is used to indicate storage capacity.
Explanation:
Five units of storage units are:-
1) byte
2) kilobyte
3) megabyte
4) gigabyte
5) terabyte
Just a guess, maybe you’ve been reported for having an incorrect answer two times? I’m really not sure I’m just trying to give out possibilities. Maybe if your a Brainly Helper you haven’t been active so they are giving you warnings? Does clicking on the warning tell you the reason for them? Maybe the system thinks your a robot? I’m not sure just trying to give possible reasons, but you could try contacting customer support, but they aren’t always the quickest at responding.
Have a good day!
Answer:
This code will print: 4
Explanation:
Following is the step-by-step explanation for the given code:
- Given is the array of data type double named myList, it has entries, 1, 5, 5, 5,5, 1:
double[] myList = {1, 5, 5, 5, 5, 1};
- Now the first element of the array (1) with index 0 will be stored in the variable max (data type double).
double max = myList[0];
- A variable indexOfMax having datatype int will be initiated as 0.
int indexOfMax = 0;
- Now for loop will be used to find the maximum number of the array. The variable i will be put as index for each element to compare with first element. If the checked element is greater than or equal to the integer in max, it will be replaced. So at the end the variable max will have value 5 that will be at index i = 4.
for (int i = 1; i < myList.length; i++)
{ if (myList[i] >= max)
{ max = myList[i];
- Now the variable i that is the index for max value will be stored in the variable indexOfMax (indexOfMax = 4).
indexOfMax = i; }}
- At end the value stored in variable indexOfMax will be printed, so 4 will be printed as output.
System.out.println(indexOfMax);
i hope it will help you!