Programming with Microsoft Visual Basic 2017, Loose-Leaf Version
Programming with Microsoft Visual Basic 2017, Loose-Leaf Version
8th Edition
ISBN: 9781337685733
Author: ZAK, Diane
Publisher: Cengage Learning
bartleby

Videos

Textbook Question
Book Icon
Chapter 8, Problem 1MQ1

Write a statement that declares a procedure-level one-dimensional array named intorders. The array should contain 15 elements.

Expert Solution & Answer
Check Mark

Explanation of Solution

Declaring a procedure-level one-dimensional array:

  • Array is used to group together the related variables.
  • Syntax to declare a one-dimensional array is as follows:

Dim arrayName(highest subscript) As dataType

  • Here, the highest subscript is a value that refers to the number of elements in the array.
  • Array index starts with 0.

Therefore, the statement to declare a procedure-level one-dimensional array named intOrders containing 15 elements is as follows:

  Dim intOrders(14) As Integer

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
Write a program that shows Game sales. The program should use a structure to store the following data about the Game sale: Game company Type of Game (Action, Adventure, Sports etc.) Year of Sale Sale Price The program should use an array of at least 3 structures (3 variables of the same structure). It should let the user enter data into the array, change the contents of any element and display the data stored in the array. The program should have a menu driven interface.  Input Validation: When the data for a new game sale is entered, be sure the user enters data for all the fields. No negative amounts should be entered for a “Sale Price” of the Game An example: You will use 1 structure only and then manipulate that for working with the information. The program should use an array of at least 3 structures (3 variables of the same structure).  An example of the structure:struct Game{string name;string type;int year;double price;};   So far I have written that ...
Write a statement that declares a class-level two-dimensional array named intOrders. The array should contain five rows and three columns.
Write a statement that declares a procedure-level one-dimensional array named intOrders. The array should contain 15 elements.
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Graphical User Interfaces: Crash Course Computer Science #26; Author: CrashCourse;https://www.youtube.com/watch?v=XIGSJshYb90;License: Standard YouTube License, CC-BY
Python GUI | How To Make A GUI In Python | Best GUI Framework In Python | Edureka; Author: edureka!;https://www.youtube.com/watch?v=_PHJvjQJa3w;License: Standard Youtube License