Describe any mistake(s) in the following code segment. const int SIZE = 5; array items; items =
Fantastic news! We've Found the answer you've been seeking!
Question:
Describe any mistake(s) in the following code segment.
const int SIZE = 5;array items; items = 5; |
2. Describe any mistake(s) in the following code segment.
const int SIZE = 5;array items = {}; items[SIZE] = "Book"; |
3. Describe any mistake(s) in the following code segment.
int SIZE = 10;array items = {}; items = 10.5; |
4. Complete the following steps in code and submit your code.
- Declare an array of size 9 containing doubles.
- Prompt the user to enter 9 doubles and store each into the elements of the array. Hint: you can use cin to store input directly into an indexed array.
- Display the first, fifth (statistically the median or "middle" element), and last element of the array. You must use the array to receive credit.
Posted Date: