Which of the following segments is a proper way to call the method readData four times?
a. double k = 0.0;
while (k != 4)
{
readData();
k = k + 1;
}
b. int i = 0;
while (i <= 4)
{
readData();
i = i + 1;
}
c. int i = 0;
while (i < 4)
{
readData();
}
d. int i = 0;
while (i < 4)
{
readData();
i = i + 1;
}
d. int i = 0;
while (i < 4)
{
readData();
i = i + 1;
}
Computer Science & Information Technology
You might also like to view...
How does a form simplify data entry (when compared to entering data into a table)?
What will be an ideal response?
Computer Science & Information Technology
A moving average calculates an average for a group of numbers over a specified interval allowing you to see a(n) ________ for widely fluctuating numbers
A) trend B) scenario C) objective D) constraint
Computer Science & Information Technology