Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Solve each of these exercises. (1) Lists of values and tables of values are stored in _______________ . (2) Arrays which use two subscripts are

Solve each of these exercises.

(1) Lists of values and tables of values are stored in _______________ .

(2) Arrays which use two subscripts are generally referred to as a(n) _______________ array.

(3) _______________ refers to the process of placing the elements of an array in order.

(4) Arrays can store values having different data types.

(a) True (b) False

(5) Array subscripts can be of data type double.

(a) True (b) False

(6) Write statements to accomplish the following.

(a) Declare table to be a one - dimensional integer array and to have 4 elements.

(b) Use a for loop repetition structure to initialize the elements in the array table such that each element is equal to its particular subscript number.

(7) Write statements to accomplish the following.

(a) Display the value of the sixth element of character array s .

(b) Input a value into element 3 of a single - subscripted floating - point array b .

(c) Initialize each of the 5 elements of the single - subscripted floating - point array m to 1 .

(8) Find the error(s), if any, in each of these program segments and then correct the error(s).

(a) #define SIZE 50;

(b) int b[ 5 ] = { 0 }, i ;

for ( i = 0 ; i <= 5 ; i++ )

b[ i ] = 1;

(9) Write statements that perform this single - subscripted floating - point array operation.

Add 1 to each of the 10 elements of the array expenses.

(10) Write statements that perform the following single - subscripted array operation.

Print the 5 values of integer array temperature in a column format.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

3rd Edition

0471418455, 978-0471418450

More Books

Students also viewed these Databases questions