EBK 3N3-EBK: PROGRAMMING W/MICROSOFT VI
8th Edition
ISBN: 9780176920159
Author: ZAK
Publisher: VST
expand_more
expand_more
format_list_bulleted
Expert Solution & Answer
Chapter 8, Problem 19RQ
Program Description Answer
The statement “strStates(5, 3) = “California”” is used to store the string “California” into the fourth column and sixth row of the array variable.
Hence, the correct answer is option “B”.
Expert Solution & Answer
Trending nowThis is a popular solution!
Students have asked these similar questions
Which of the following assigns the string “Micki” to the fifth element in aone-dimensional array named strPetNames?a. strPetNames(4) = "Micki"b. strPetNames[4] = "Micki"c. strPetNames(5) = "Micki"d. strPetNames[5] = "Micki"
Write a statement that assigns the number 7 to the element located in the third row, first column in the intQuantities array.
In order to access each element in an array, the For...Next statement needs to know the highest subscript in the array. True or False?
Chapter 8 Solutions
EBK 3N3-EBK: PROGRAMMING W/MICROSOFT VI
Knowledge Booster
Similar questions
- Write a statement that updates the second element in the intOrders array by the value stored in the intSold variable.arrow_forwardIn this assignment, students will demonstrate their understanding of how to create and manipulate NumPy Arrays. Create a 3-by-5 Array Select and Display Row 2 Select and Display Column 5 Select and Display Columns 2-4 Select Element in Row 1 and Column 4 Select all elements from Rows 1 and 2 that are in Columns 0, 2, and 4. Exitarrow_forwarda class with 10 students that will take 3 exams use 3 arrays to hold the scores for each student and anoither array to hold the average of the 3 exams for each student. Print the table with the scores and averagearrow_forward
- Which of the following assigns the string “Rover” to the fifth element in a one-dimensional array named strPetNames? a. strPetNames(4) = "Rover" b. strPetNames[4] = "Rover" c. strPetNames(5) = "Rover" d. strPetNames.Items.Add(5) = "Rover"arrow_forwardThe intNum array is declared as follows: Dim intNum(,) As Integer = {{6, 12, 9, 5, 2}, {35, 60, 17, 8, 10}}. Which of the following If clauses determines whether the intRow and intCol variables contain valid row and column subscripts, respectively, for the array? a. If intNum(intRow, intCol) >= 0 AndAlso intNum(intRow, intCol) < 5 Then b. If intNum(intRow, intCol) >= 0 AndAlso intNum(intRow, intCol) <= 5 Then c. If intRow >= 0 AndAlso intRow < 3 AndAlso intCol >= 0 AndAlso intCol < 6 Then d. If intRow >= 0 AndAlso intRow < 2 AndAlso intCol >= 0 AndAlso intCol < 5 Thenarrow_forwardIf the intNums array contains six elements, which of the following statements assigns the number 6 to the intElements variable? a. intElements = Len(intNums) b. intElements = Length(intNums) c. intElements = intNums.Len d. intElements = intNums.Lengtharrow_forward
- Which of the following adds the number 20 to the value stored in the first row, second column of the decSales array?a. decSales(0, 1) += 20b. decSales(1, 2) = decSales(1, 2) + 20c. decSales(1, 2) += 20d. both b and carrow_forwardO Create a cell array named CA containing six cells to store the short form of the first six month names individually. You have to extract the names from the character vector array named CMonth. Hint: Use indexing method to extract the month names from CMonth.arrow_forwardWrite a statement that assigns the highest column subscript in the intOrders array to the intLastColSub variable.arrow_forward
- If the intNums array contains six elements, which of the following statements assigns the number 6 to the intElements variable? intElements = Len(intNums) intElements = Length(intNums) intElements = intNums.Len intElements = intNums.Lengtharrow_forwardА class with 10 students will take 3 exams. Use 3 arrays to hold the score for each student and another array to hold the average of each student.arrow_forwarddeclare variables, include your arrays. Declare two struct variables to hold data. The first will be the TravelerInfo struct, which holds name(string), weight(double), newWeight(double) for the weight on the other planet, planetChoice ( int) and speed(int). The second struct is the TravelTimeCalc struct. It holds total travel time, years, days, and hours. All are ints. Both structs are declared in the Functions.h file. Write out a program title and brief introduction using your Header function. Pass the arrays to the FillPlanetInfo function, which will load the data into the three arrays. Start a do while loop in main as your Play loop. Pass the function AskSpaceTravellerInfo a reference to the TravelerInfo struct variable and the array of planet names. Get the user’s name, Earth weight, the speed they want to travel and the planet they wish to visit. You will need to provide a menu with the planet names and a way for the user to select the chosen destination. Pass the…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,