Determine and display the smallest and largest values contained in 99-element floatingpoint 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];
}
}
```
Computer Science & Information Technology
You might also like to view...
What Windows utility is used to determine the amount of available RAM?
A) Device Manager B) Windows Memory Manager C) Task Manager D) System Control Panel link
Computer Science & Information Technology
What PowerShell command written with a trace parameter will enable script tracing?
A. Set-Trace B. Set-PSDebug C. Get-PSDebug D. Get-Trace
Computer Science & Information Technology