Question: Tutorial 5 1. Write a C++ statement(s) that accomplish the following array: Declare an array named myList of 20 components of type int. Display the

 Tutorial 5 1. Write a C++ statement(s) that accomplish the following

Tutorial 5 1. Write a C++ statement(s) that accomplish the following array: Declare an array named myList of 20 components of type int. Display the value of the tenth component of the array ImyLiet. Set the value of the fifth component of the array myList to 35. Set the value of the ninth component of the array myList to the sum of the sixth and thirteen components of the array myList. Set the value of the fourth component of the array mylist to three times the value of the eight components minus 30. Declare a new array named specialSymbols of type char. Initialize this array to the following values: $. , 2. Consider the following declaration: string superheroes [5] "Superman", "X-Men", "Batman". Spiderman", "Ironman") In this declaration, identify the following: The array name The array size The data type of each array component ..The range of values for the index of the array, Write code to change superhero in fourth component with "catwoman 3. Answer the following: int values [20]; How many elements does the array have? What is the subscript of the second clement in the array? What does the following statement do? values[1] - 10; 4. Answer the following: int values 171 - 1, 2, 3, 4, 5, 6, 71: What does the following statement display? a cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!