Answer:
for(i = 0 ; i < NUM_VALS; ++i)
{
cout << courseGrades[i] << " ";
}
cout << endl;
for(i = NUM_VALS-1 ; i >=0 ; --i)
{
cout << courseGrades[i] << " ";
}
cout << endl;
Explanation:
The first loop initializes i with 0, because we have to print the elements in order in which the appear in the array. We print each element, adding a space (" ") character at its end. After the loop ends, we add a new line using endl.
The second loop will print the values in a reverse order, so we initialize it from NUM_VALS-1, (since NUM_VALS = 4, and array indices are 0,1,2,3). We execute the loop till i >= 0, and we print the space character and new line in a similar way we executed in loop1.
The answer would be false because you don't have to be good at it to participate and try your hardest
Answer:
Fiber-optic cable
Explanation:
Before the cable industry transitioned to fiber-optic cables, for many years, the standard cables used for telephone, cable, and internet communications were coaxial cables. The transition was made possible because the architecture of the fiber-optic cable came with a higher capacity, more extensive bandwidth link. Unlike the coaxial or the twisted pair cable, the fiber-optic is made from glass strands that transmit light signals much quicker and to greater distances. This makes fiber-optic cables the fastest high capacity data transfer link than any other cables to ever exist.
Answer:
The delimiter use is "::".
Explanation:
The Java inbuilt String.split( ) function is use to split a String into an array of String.
The split( ) takes delimiter as arguments/parameter which determines at which point the string is to be broken down into different part/token.
From the above code snippet;
Each line in the file a.txt that is not null is splitted using the statement below:
String[ ] v = line.split("::");
The line is splitted using "::" as delimiter and the resulting array is then assigned to the variable 'v'.
For instance, a line in the file could take the form:
John::Smith::Music
When it is splitted,
String lname = John;
because lname make reference to index 0 of the array.
String fname = Smith;
because fname make reference to index 1 of the array.
String dept = Music;
and dept make reference to index 2 of the array.
Answer:
True
Explanation: The first step is to make a goal. The second step is to plan how you will accomplish you goal. The third and final step is to accomplish your goal.