28.7k views
0 votes
Consider the following declaration: (1, 2) double currentBalance[91]; In this declaration, identify the following: a. The array name b. The array size Copyright 2018 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. WCN 02-200-203 8 Exercises | 593 c. The data type of each array component d. The range of values for the index of the array e. What are the indices of the first, middle, and the last elements

1 Answer

4 votes

Answer:

Following are the solution to the given choices:

Step-by-step explanation:

Given:

double currentBalance[91];//defining a double array

In point a:

The name of the array is= currentBalance.

In point b:

91 double values could be saved in the array. It requires 8bytes to hold a double that if the array size is 91*8 = 728

In point c:

Each element's data type is double.

In point d:

The array index range of values is between 0 and 90 (every array index starts from 0 and ends in N-1, here N=91).

In point e:

To access first element use currentBalance[0], for middle currentBalance[91/2] , for last currentBalance[90]

User Vivek Aditya
by
6.2k points