EBK 3N3-EBK: PROGRAMMING W/MICROSOFT VI
EBK 3N3-EBK: PROGRAMMING W/MICROSOFT VI
8th Edition
ISBN: 9780176920159
Author: ZAK
Publisher: VST
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 statement that declares a procedure-level one-dimensional array named intOrders. The array should contain 15 elements.
Description Create an application that maintains an array of your home inventory and displays the contents of the array in a list box. For this assignment, we will be using an array. In later chapters, we will modify this application to use a database or an external text file. The application should look like: g My Home Inventory Home Inventory Item Description Ist Homelnventory Serial Number Cost ADD DELETE REFRESH BYE Detailed Instructions 1. Define arrays for Item Description, Serial Number, and Cost after the Public Form Q and before any click of page load events. 2. In the Page Load Event, populate the Home Inventory List Box with the data from the arrays using the format: "ItemDecription (SerialNumber, Cost)". 3. If the ADD button is clicked, add the Item Description, Serial Number, and Cost to the Home Inventory List Box and to the appropriate arrays. 4. If the DELETE button is clicked, remove the item from the Home Inventory List Box and corresponding arrays. 5. If the REFRESH…
Programming: Multi-Array Assignment Instructions   Overview Using a two-dimensional array, you will create the game battleship using a text file that contains the board.  The user will enter coordinates to try and find ships and sink them.     Instructions   Imagine you are using a two-dimensional array as the basis for creating the game battleship. In the game of battleship, a `~' character entry in the array represents ocean (i.e., not a ship), a `#' character represents a place in the ocean where part of a ship is present, and a `H' character represents a place in the ocean where part of a ship is present and has been hit by a torpedo. Thus, a ship with all `H' characters means the ship has been sunk.   Declare a two-dimensional array that is 25 x 25 that represents the entire ocean and an If statement that prints "HIT" if a torpedo hits a ship given the coordinates X and Y.   Create a text file of 25 line.  Each line has 25 characters.  ~ represents water and # represents part of…
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