Chapter 9: Problem 13
Write \(\mathrm{C}++\) statements to define and initialize the following arrays. a. Array heights of 10 components of type double. Initilaize this array to the following values: 5.2,6.3,5.8,4.9,5.2,5.7,6.7,7.1,5.10,6.0. b. Array weights of 7 components of type int. Initilaize this array to the following values: 120,125,137,140,150,180,210. c. Array specialSymbols of type char. Initilaize this array to the following values: '$', '#', '%', '@', '&', '! ', '^'. d. Array seasons of 4 components of type string. Initilaize this array to the following values: "fall", "winter", "spring", "summer".
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.