Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

2. Find the smallest and the 89th largest numbers from the list below (there are

ID: 3640224 • Letter: 2

Question

2. Find the smallest and the 89th largest numbers from the list below (there are 200 numbers):
a[200]={1.78091, -2.83548, 1.01073, 3.53668, -2.06947, -2.1656, -2.49212,
-1.17734, 1.58854, 1.04566, 2.53079, 3.55779, -1.2953, -1.52073,
0.700845, -1.54328, 1.51809, 4.4131, -1.41465, 1.19518, 0.524027,
1.326, -2.13747, 1.2306, 3.74311, 0.16148, 1.8518, 2.69392, 1.81258,
-1.67292, 0.343921, -0.128743, -3.77595, 2.28141, 2.81313, 1.31347,
2.51934, -0.197853, -1.88771, -1.14326, -2.99874, 0.389048, 4.52694,
2.66156, 1.47723, 4.06305, 2.66441, -2.56904, 2.73412, -0.0984338,
-3.18739, -0.262954, -3.07846, -2.42551, 1.46869, 4.86579, -3.30251,
0.293073, 3.65555, -0.447677, -0.821855, -3.50907, 1.54326, -3.30442,
-1.82311, 1.10188, 2.01632, -0.965983, 1.69965, 2.03883, 4.35191,
-2.39695, 3.96553, -1.86273, 3.5393, 2.86601, 3.044, -3.43722,
-1.92939, 3.00022, 2.34651, 1.2697, -0.584945, -0.552104, -0.831638,
0.778779, 2.87179, -1.24768, -3.00852, 4.6769, -3.14453, 4.7183,
0.291822, -1.36193, -2.49644, 3.11525, 1.32629, -3.4992, -1.03574,
-3.75076, 3.28229, 4.93802, -3.10634, -1.75098, -3.06421, -0.33168,
2.4786, 3.80113, 2.76742, 3.88954, 4.60681, 1.04881, 1.77595,
4.21264, 3.75134, 1.33051, -2.51587, 1.57457, 2.24777, 3.21526,
1.15784, 1.07377, -0.71649, 2.96602, 2.87554, 1.13574, -1.61015,
0.717, 1.93976, -2.53258, 0.911255, 1.91587, 4.17233, -1.42212,
1.30445, -3.13293, -1.60361, -0.634758, 2.55311, 0.536558, -3.08774,
2.79067, -3.69466, 2.3213, 0.754424, -2.2831, 2.02183, 4.35528,
2.87888, 1.58116, -0.368029, -0.361725, -3.06088, 0.113734, 3.72072,
2.7224, -2.23321, -2.46415, -1.58373, 1.85533, 4.3704, 3.17061,
0.863161, -2.68122, 3.45814, -3.62006, 0.557825, -0.00252184,
-1.29628, 3.66304, 3.536, 0.642203, 0.824836, -1.91812, -0.0959719,
-2.99607, -0.114284, 2.96815, 1.18331, -0.718473, -1.88107, 1.43229,
-1.23296, 2.42619, -1.25147, 3.26169, 2.90388, 1.10742, 0.290392,
2.88175, -1.65394, -2.89006, -2.41332, 4.21871, -0.189944, 1.46774,
1.76184, 2.13683, 4.90603, 0.46381};

Explanation / Answer

#include #include void main() { double a[200]={1.78091, -2.83548, 1.01073, 3.53668, -2.06947, -2.1656, -2.49212, -1.17734, 1.58854, 1.04566, 2.53079, 3.55779, -1.2953, -1.52073, 0.700845, -1.54328, 1.51809, 4.4131, -1.41465, 1.19518, 0.524027, 1.326, -2.13747, 1.2306, 3.74311, 0.16148, 1.8518, 2.69392, 1.81258, -1.67292, 0.343921, -0.128743, -3.77595, 2.28141, 2.81313, 1.31347, 2.51934, -0.197853, -1.88771, -1.14326, -2.99874, 0.389048, 4.52694, 2.66156, 1.47723, 4.06305, 2.66441, -2.56904, 2.73412, -0.0984338, -3.18739, -0.262954, -3.07846, -2.42551, 1.46869, 4.86579, -3.30251, 0.293073, 3.65555, -0.447677, -0.821855, -3.50907, 1.54326, -3.30442, -1.82311, 1.10188, 2.01632, -0.965983, 1.69965, 2.03883, 4.35191, -2.39695, 3.96553, -1.86273, 3.5393, 2.86601, 3.044, -3.43722, -1.92939, 3.00022, 2.34651, 1.2697, -0.584945, -0.552104, -0.831638, 0.778779, 2.87179, -1.24768, -3.00852, 4.6769, -3.14453, 4.7183, 0.291822, -1.36193, -2.49644, 3.11525, 1.32629, -3.4992, -1.03574, -3.75076, 3.28229, 4.93802, -3.10634, -1.75098, -3.06421, -0.33168, 2.4786, 3.80113, 2.76742, 3.88954, 4.60681, 1.04881, 1.77595, 4.21264, 3.75134, 1.33051, -2.51587, 1.57457, 2.24777, 3.21526, 1.15784, 1.07377, -0.71649, 2.96602, 2.87554, 1.13574, -1.61015, 0.717, 1.93976, -2.53258, 0.911255, 1.91587, 4.17233, -1.42212, 1.30445, -3.13293, -1.60361, -0.634758, 2.55311, 0.536558, -3.08774, 2.79067, -3.69466, 2.3213, 0.754424, -2.2831, 2.02183, 4.35528, 2.87888, 1.58116, -0.368029, -0.361725, -3.06088, 0.113734, 3.72072, 2.7224, -2.23321, -2.46415, -1.58373, 1.85533, 4.3704, 3.17061, 0.863161, -2.68122, 3.45814, -3.62006, 0.557825, -0.00252184, -1.29628, 3.66304, 3.536, 0.642203, 0.824836, -1.91812, -0.0959719, -2.99607, -0.114284, 2.96815, 1.18331, -0.718473, -1.88107, 1.43229, -1.23296, 2.42619, -1.25147, 3.26169, 2.90388, 1.10742, 0.290392, 2.88175, -1.65394, -2.89006, -2.41332, 4.21871, -0.189944, 1.46774, 1.76184, 2.13683, 4.90603, 0.46381}; double t; int i,j; clrscr(); for(i=0;i
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote