Answer:
Explanation:
The following function/program is written in Java. It asks the user for a sentence as an input and then splits that sentence into an array of words. Then it creates an arrayList for all of the unique words, comparing each word in the sentence with all of those in the ArrayList. If a word is found in the ArrayList it cancels the loop and moves on the next word in the sentence. Finally, it counts all of the unique words in the ArrayList and prints that total to the screen.
public static void uniqueWords() {
Scanner in = new Scanner(System.in);
System.out.println("Enter a sentence:");
String sentence = in.nextLine();
String words[] = sentence.split(" ");
ArrayList<String> uniqueWords = new ArrayList<>();
for (int x = 0; x < words.length; x++) {
boolean exists = false;
for (int i = 0; i < uniqueWords.size(); i++) {
if (words[x].equals(uniqueWords.get(i))) {
exists = true;
break;
}
}
if (exists == false) {
uniqueWords.add(words[x]);
}
}
System.out.println(uniqueWords.size());
}
D. using cell phones in a work place. when cell phones came out with apps and games people started paying more attention to the social media apps and their games then their own job, hope this helps :)
Answer:
1). Serial ATA (SATA): SATA drives are base hard drives. Serial ATA was designed to replace the older parallel ATA (PATA) standard (often called by the old name IDE), offering several advantages over the older interface: reduced cable size and cost (7 conductors instead of 40), native hot swapping, faster data transfer through higher signaling rates, and more efficient transfer through a I/O queuing protocol. On some systems without a controller, these can be cabled instead to the onboard SATA connections on the motherboard. On smaller servers with a controller, they can still be cabled because these systems will not have a backplane. Cabled hard drives are not hot swappable.
2). Near Line SAS: Near Line SAS are enterprise SATA drives with a SAS interface, head, media, and rotational speed of traditional enterprise-class SATA drives with the fully capable SAS interface typical for classic SAS
drives. This provides better performance and reliability over SATA. Basically it is a hybrid between SATA and SAS.
3). Serial Attached SCSI (SAS): SAS is a communication protocol used in Enterprise hard drives and tape drives. SAS is a point-to-point serial protocol that replaces the older based parallel SCSI bus technology (SCSI). It uses the standard SCSI command set. These have extra connections through the top of the SATA connection. These are the top end in performance for electromechanical drives.
4). Solid-State Drive (SSD): An SSD is a data storage device that uses integrated circuit assemblies as memory to store data persistently. SSD technology uses electronic interfaces compatible with traditional block input/output (I/O) hard disk drives. SSDs do not employ any moving mechanical components, which distinguishes them from traditional magnetic disks such as hard disk drives, which are electromechanical devices containing spinning disks and movable read/write heads. Compared with electromechanical disks, SSDs are typically less susceptible to physical shock, are silent, and have lower access time and latency. Typically because of these features, SSD drives can be the fastest I/O in the market today in standard hard drive form factor.
Explanation:
Multiplexer. A mux converts mutiple inputs into fewer outputs, for example combined with an address bus. Then the address bus decides which part of the input is linked to the output, so the inputs use the outputs each at a different point in time (=time division multiplexing)