Problem

Array Basics In this exercise, you use what you have learned about declaring and initi...

Array Basics

In this exercise, you use what you have learned about declaring and initializing arrays to answer Questions 1-3.

1. Write array declarations for each of the following:

a. Six grade point averages

__________________________________________________________________________________

b. Seven last names

__________________________________________________________________________________

c. 10 ages

__________________________________________________________________________________

2. Declare and initialize arrays that store the following:

a. The whole numbers 2, 4, 6, 8, 10

__________________________________________________________________________________

b. The last names Carlson, Matthews, Cooper

__________________________________________________________________________________

c. The prices 15.00, 122.00, and 7.50

__________________________________________________________________________________

3. Write an assignment statement that assigns the value 32 to the first element of an array of integers named customerNumbers.

__________________________________________________________________________________

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 6
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT