Determine and display the smallest and largest values contained in 99-element floating- point array w.
What will be an ideal response?
```
double small = w[0];
double large = w[0];
for (int i = 0; i < w.length; i++)
if (w[i] < small)
small = w[i];
else if (w[i] > large)
large = w[i];
```
You might also like to view...
A socket with an address in the Unix domain
A. can be reached by clients on any Unix machine B. can only be reached by clients on the same machine
Sandy is replacing her broken laptop LCD screen with a new screen. During disassembly, she notices two cables that wrap around the screen and connect to the mini-PCIe card inside the laptop. ? What will happen if Sandy breaks one of these cables?
A. The laptop LCD screen will not have power. B. The laptop webcam will not function. C. She will not be able to connect to Wi-Fi with the laptop. D. The laptop sound will not work.
____ is a service that provides the assurance that an entity remains honest about its actions.
A. Nonrepudiation B. Availability C. Integrity D. Confidence
Which of the following printers is required when carbon paper is used?
A. Inkjet B. Thermal C. Laser D. Impact