55.4k views
5 votes
Hannah is writing a report about the effect modern technological advancements have had on orality. What is one TRUE statement she should include in her repo

A. The spoken word has been expressed through new, text-based channels.
B. The spoken word has been disappearing as new digital channels evolve.
C. The spoken word has become more formal as technology use increases.
D. The spoken word has had very little influence on digital platforms.

User Nienn
by
8.3k points

1 Answer

4 votes

Final answer:

To collect player 1's scores from the 'gameScores' array, create an indexing array that selects every other element starting from the first element.

Step-by-step explanation:

In order to extract player 1's scores from the gameScores array, assuming that player 1 starts the game, you need to construct an indexing array that selects the elements at the odd indices of gameScores. Since indexing in most programming languages starts at 0, the odd indices would be every other index starting from 0 (i.e., 0, 2, 4, ...). You can create an indexing array using a range that increments by 2, from the first index (0) to the last index of the array (length of the array - 1 if the array size is odd, or length of the array - 2 if the array size is even).

For example, if gameScores has 10 elements (5 scores for each player), the index array playerOnesEntries can be constructed as follows:

  • For a 0-based indexing language like Python: playerOnesEntries = [0, 2, 4, 6, 8]
  • For a 1-based indexing language like MATLAB: playerOnesEntries = [1, 3, 5, 7, 9]

Then, you can extract player 1's scores by using the playerOnesEntries to index the gameScores array as shown in the initial question.

User Mcint
by
8.0k points