All Matches
Solution Library
Expert Answer
Textbooks
Search Textbook questions, tutors and Books
Oops, something went wrong!
Change your search query and then try again
Toggle navigation
FREE Trial
S
Books
FREE
Tutors
Study Help
Expert Questions
Accounting
General Management
Mathematics
Finance
Organizational Behaviour
Law
Physics
Operating System
Management Leadership
Sociology
Programming
Marketing
Database
Computer Network
Economics
Textbooks Solutions
Accounting
Managerial Accounting
Management Leadership
Cost Accounting
Statistics
Business Law
Corporate Finance
Finance
Economics
Auditing
Ask a Question
Search
Search
Sign In
Register
study help
computer science
programming with microsoft visual basic 2015
Questions and Answers of
Programming with Microsoft Visual Basic 2015
In this exercise, you modify the eBook Collection application from this lesson. Use Windows to make a copy of the Ebook Solution folder. Rename the copy Ebook Solution-Verify Remove. Open the Ebook
Which of the following right-aligns the contents of the strNumbers variable?a. strNumbers = strNumbers.PadLeft(10)b. strNumbers = strNumbers.PadRight(10)c. strNumbers = strNumbers.AlignLeft(10)d.
Which of the following opens the employ.txt file and allows the computer to write new data to the end of the file’s existing data?a. outFile = IO.File.AddText("employ.txt")b. outFile =
Write a Structure statement that defines a structure named Book. The structure contains three member variables named strTitle, strAuthor, and decPrice. Then write a Dim statement that declares a Book
Which statement is used to create a user-defined data type?a. Declareb. Definec. Structured. UserType
In this exercise, you modify the eBook Collection application from this lesson. Use Windows to make a copy of the Ebook Solution folder. Rename the copy Ebook Solution-Verify Save. Open the Ebook
Which of the following opens a sequential access file named MyFriends.txt for input?a. inFile = IO.File.Input("MyFriends.txt")b. inFile = IO.InputFile("MyFriends.txt")c. inFile =
Open the VB2015\Chap09\Debug Solution\Debug Solution (Debug Solution.sln) file. Open the Code Editor window and review the existing code. The first column in the strNames array contains first names,
Research the Visual Basic ReDim statement. What is the purpose of the statement? What is the purpose of the Preserve keyword?a. Open the VB2015\Chap09\ReDim Solution\ReDim Solution (ReDim
Create an application, using the following names for the solution and project, respectively: Bindy Solution and Bindy Project. Save the application in the VB2015\ Chap09 folder. Bindy Enterprises
In this exercise, you code an application that generates and displays six unique random numbers for a lottery game. Each lottery number can range from 1 through 54 only. Open the
Open the VB2015\Chap09\Count Solution\Count Solution (Count Solution.sln) file. The btnDisplay_Click procedure should display the number of times each of the numbers from 1 through 9 appears in the
In this exercise, you modify the application from Exercise 15. The modified application allows the user to display the number of salespeople earning a commission within a specific range. Use Windows
Open the VB2015\Chap09\Harrison Solution\Harrison Solution (Harrison Solution.sln) file. The btnDisplay_Click procedure should display the largest number stored in the first column of the array. Code
Open the VB2015\Chap09\Commission Solution\Commission Solution (Commission Solution.sln) file. The btnDisplay_Click procedure should declare a 20-element, onedimensional Integer array named
The sales manager at Lorenzo Markets wants you to create an application that displays the total sales made in each of three regions: the U.S., Canada, and Mexico. The application should also display
In this exercise, you modify the application from Exercise 13. The modified application allows the user to update a specific price. Use Windows to make a copy of the Retail Solution folder. Rename
Open the VB2015\Chap09\Gross Solution\Gross Solution (Gross Solution.sln) file. The application should store the pay codes and rates listed in Figure 9-59 in a twodimensional array. It should also
Open the VB2015\Chap09\Retail Solution\Retail Solution (Retail Solution.sln) file. Open the Code Editor window. Notice that the code declares and initializes a class-level array named dblWholesale.
In this exercise, you code an application that displays a grade based on the number of points entered by the user. Open the VB2015\Chap09\Kranton Solution\Kranton Solution (Kranton Solution.sln)
Open the VB2015\Chap09\Inventory Solution\Inventory Solution (Inventory Solution.sln) file. The interface provides a text box for entering an amount that represents the preferred quantity on hand.
Open the Shipping Solution (Shipping Solution.sln) file contained in the VB2015\ Chap09\Shipping Solution-Two-Dimensional folder. The btnDisplay_Click procedure should display a shipping charge that
Open the VB2015\Chap09\Projected Solution\Projected Solution (Projected Solution.sln) file. The btnIncrease_Click procedure should increase each element in the intSales array by 10%, displaying the
Open the VB2015\Chap09\Sales Solution\Sales Solution (Sales Solution.sln) file. The btnCalc_Click procedure should increase the value stored in each array element by 25% and then display the results
Create an application, using the following names for the solution and project, respectively: Stock Market Solution and Stock Market Project. Save the application in the VB2015\Chap09 folder. The
In this exercise, you modify one of the Waterson Company applications from this lesson. Use Windows to make a copy of the Stock Solution-Highest folder. Rename the copy Stock Solution-Highest-Lowest.
Open the VB2015\Chp09\Bonus Solution\Bonus Solution (Bonus Solution.sln) file. The btnCalc_Click procedure should display the sum of the numbers stored in the following three array elements: the
In this exercise, you code a modified version of the Die Tracker application completed in this lesson. Open the Dice Solution (Dice Solution.sln) file contained in the VB2015\ Chap09\Dice
Open the VB2015\Chap09\Sold Solution\Sold Solution (Sold Solution.sln) file. The For...Next, For Each...Next, and Do...Loop buttons should display the average number sold. Open the Code Editor
What will the code in Review Question 5’s answer d assign to the dblAvg variable?a. 0b. 5c. 6d. 8
Open the VB2015\Chap09\Westin Solution\Westin Solution (Westin Solution.sln) file. The btnForEach_Click procedure should use the For Each...Next statement to display the contents of the strParts
Open the Shipping Solution (Shipping Solution.sln) file contained in the VB2015\ Chap09\Shipping Solution-Parallel folder. The btnDisplay_Click procedure should display a shipping charge that is
Open the VB2015\Chap09\Tea Solution\Tea Solution (Tea Solution.sln) file. Open the Code Editor window. Enter the statement to declare and initialize a class-level onedimensional array named
What will the code in Review Question 5’s answer c assign to the dblAvg variable?a. 0b. 5c. 6d. 8
Write the statement that determines the number of elements in a two dimensional array named strTypes. The statement should assign the number to the intNumTypes variable.
Write the Visual Basic statements to accomplish the following tasks:a. In the lblSize control, display the number of characters contained in the strMsg variable.b. Remove the leading and trailing
Which property determines whether a control is available to the user during run time?a. Availableb. Enabledc. Unavailabled. Disabled
Which of the following returns the Boolean value True when the strPetName variable contains the string “Felix”?a. strPetName.Contains("x")b. strPetName Like "F*"c. strPetName.Substring(1, 2) =
Open the VB2015\Chap08\Proper Solution\Proper Solution (Proper Solution.sln) file. The interface provides a text box for entering a person’s first and last names. The btnProper_Click procedure
The strAmount variable contains the string “3,123,560”. Write the Visual Basic statements to change the contents of the variable to “3123560”; use the Remove method.
Explain the difference between a menu item’s access key and its shortcut keys.
Open the VB2015\Chap08\Shipping Solution\Shipping Solution (Shipping Solution.sln) file. The interface provides a text box for entering a shipping code, which should consist of two numbers followed
If the strPresident variable contains the string “Abraham Lincoln”, what value will the strPresident.IndexOf("Lincoln") method return?a. –1b. 8c. 9d. True
Write the Visual Basic statement that uses the Contains method to determine whether the strAddress variable contains the string “Jefferson Street” (entered in uppercase, lowercase, or a
Open the VB2015\Chap08\Jacobson Solution\Jacobson Solution (Jacobson Solution.sln) file. The interface provides a text box for entering a password. The password can contain five, six, or seven
The strAmount variable contains the string “3123560”. Write the Visual Basic statements to change the variable’s contents to “$3,123,560”.
If the strWord variable contains the string “chimes”, which of the following statements assigns the letter m to the strLetter variable?a. strLetter = strWord.Substring(3)b. strLetter =
Each salesperson at Rembrandt Auto-Mart is assigned an ID number that consists of five characters. The first three characters are numbers. The fourth character is a letter: either the letter N if the
The strAmount variable contains the string “3123560”. Write the Visual Basic statements to change the variable’s contents to “$3,123,560”.
Credit card companies typically assign a special digit, called a check digit, to the end of each customer’s credit card number. The check digit allows companies to verify that the credit card
The strName variable contains the string “Jones John”. Which of the following changes the variable’s contents to the string “Jones, John”?a. strName = strName.Insert(5, ",")b. strName =
Open the VB2015\Chap08\Prices Solution\Prices Solution (Prices Solution.sln) file. Modify the frmMain_Load procedure so that it right-aligns the prices listed in the cboRight control and then selects
Open the VB2015\Chap08\Count Solution\Count Solution (Count Solution.sln) file. The interface provides a text box for the user to enter a string. The btnSearch_Click procedure should prompt the user
If the strMsg variable contains the string “The party is Saturday.”, which of the following assigns the number 13 to the intNum variable?a. intNum = strMsg.Substring(0, "S")b. intNum =
Open the VB2015\Chap08\Date Solution\Date Solution (Date Solution.sln) file. The interface provides a text box for entering a date. The btnChange_Click procedure should verify that the date was
Open the Debug Solution (Debug Solution.sln) file contained in the VB2015\Chap08\ Debug Solution 1 folder. Open the Code Editor window and review the existing code. Start and then test the
If the strName variable contains the string “Sam Harris”, which of the following changes the contents of the variable to the string “Sam H. Harris”?a. strName = strName.Insert(3, " H.")b.
Open the VB2015\Chap08\Tax Solution\Tax Solution (Tax Solution.sln) file. The interface provides a text box and a combo box for entering a sales amount and a tax rate, respectively. The btnCalc_Click
Open the Debug Solution (Debug Solution.sln) file contained in the VB2015\Chap08\ Debug Solution 2 folder. Open the Code Editor window and review the existing code. Start and then test the
The strAmount variable contains the string “245.69”. Which of the following statements changes the contents of the variable to the string “245.69!!”?a. strAmount = strAmount.PadLeft(8,
Open the VB2015\Chap08\Zip Solution\Zip Solution (Zip Solution.sln) file. The btnDisplay_Click procedure should display the correct shipping charge based on the ZIP code entered by the user. To be
Which of the following declares a five-element one-dimensional array?a. Dim intSold(4) As Integerb. Dim intSold(5) As Integer = {4, 78, 65, 23, 2}c. Dim intSold() As Integer = {4, 78, 65, 23, 2}d.
Write the statement to declare a procedure-level one-dimensional array named intOrders. The array should be able to store 20 integers. Then write the statement to store the number 25 in the third
Open the VB2015\Chap09\Days Solution\Days Solution (Days Solution.sln) file. The frmMain_Load procedure should declare a one-dimensional String array, using the names of the seven days of the week to
Write the statement to declare a procedure-level array named intBalances. The array should have seven rows and three columns. Then write the statement to store the number 100 in the element located
Write the statement to declare a class-level one-dimensional array named strStates. The array should be able to store 50 strings. Then write the statement to store the string “North Dakota” in
Open the VB2015\Chap09\Pay Solution\Pay Solution (Pay Solution.sln) file. The application should allow the user to select a pay code from the list box. The btnCalc_ Click procedure should display the
Write a loop to store the number 0 in each element in the intBalances array from Exercise 1. Use the For...Next statement.Data From Exercise 1:Write the statement to declare a procedure-level array
Write the statement to declare and initialize a procedure-level one dimensional array named dblTaxRates. Use the following numbers to initialize the array: 5.5, 7.25, and 3.4.
Rewrite the code from Exercise 2 using a Do...Loop statement.Data From Exercise 2:Write the statement to declare a procedure-level array named intBalances. The array should have seven rows and three
The intNumbers array is a one-dimensional array. Write the statement to multiply the number stored in the first array element by 3, storing the result in the intResult variable.
In this exercise, you modify the Die Tracker application completed in this lesson. Use Windows to make a copy of the Die Solution folder. Rename the copy Modified Die Solution. Open the Die Solution
Write the statement to assign the Boolean value True to the variable located in the second row, third column of a two-dimensional Boolean array named blnAnswers.
The intNumbers array is a one-dimensional array. Write the statement to add together the numbers stored in the first and second array elements, displaying the sum in the lblSum control.
Open the VB2015\Chap09\Computer Solution\Computer Solution (Computer Solution.sln) file. The interface allows the user to enter the number of either new or refurbished computers sold. The Add to
Write the Private statement to declare an Integer array named intOrders that has three rows and two columns. Use the following values to initialize the array: 1, 2, 10, 20, 100, 200.
What will the code in Review Question 5’s answer a assign to the dblAvg variable?a. 0b. 5c. 6d. 8
In this exercise, you modify one of the Waterson Company applications from this lesson. Use Windows to make a copy of the Stock Solution-Highest folder. Rename the copy Stock Solution-Highest-DoLoop.
In this exercise, you code an application that displays a grade based on the number of points entered by the user. The grading scale is shown in Figure 9-43. Open the VB2015\Chap09\Chang
Write the statements that determine the highest row and highest column subscripts in the strTypes array. The statements should assign the subscripts to the intHighRow and intHighCol variables,
What will the code in Review Question 5’s answer b assign to the dblAvg variable?a. 0b. 5c. 6d. 8
In this exercise, you modify one of the Waterson Company applications from this lesson. Use Windows to make a copy of the Stock Solution-Highest folder. Rename the copy Stock
In this exercise, you code an application that displays a grade based on the number of points entered by the user. The grading scale is shown in Figure 9-44. Open the VB2015\ Chap09\Perez
Which of the following methods can be used to determine whether the strAmount variable contains the dollar sign?a. blnResult = strAmount.Contains("$")b. intResult = strAmount.IndexOf("$")c. intResult
Open the VB2015\Chap08\Reverse Solution\Reverse Solution (Reverse Solution.sln) file. The interface provides a text box for the user to enter one or more words. The btnReverse_Click procedure should
The strItem variable contains uppercase letters only. Which of the following determines whether the variable contains either the word “SHIRT” or the word “SKIRT”?a. If strItem Like
Which of the following is false?a. Menu titles should be one word only.b. Each menu title should have a unique access key.c. You should assign shortcut keys to commonly used menu titles.d. Menu items
The strItem variable contains the string “YMBlueX”. Write a Visual Basic statement that assigns the string “Blue” from the strItem variable to the strColor variable.
Which of the following statements changes the contents of the strZip variable from 60521 to 60561?a. strZip = strZip.Insert(3, "6") strZip = strZip.Remove(4, 1)b. strZip = strZip.Insert(4, "6")
In this exercise, you modify the Pizza Game application completed in this lesson. Use Windows to make a copy of the Pizza Solution folder. Rename the copy Modified Pizza Solution. Open the Pizza
If the strWord variable contains the string “Irene Turner”, what value will the strWord.Contains("e") method return?a. Trueb. Falsec. 2d. 3
Open the VB2015\Chap08\Bonus Solution\Bonus Solution (Bonus Solution.sln) file. Add a File menu and a Calculate menu to the form. Include an Exit menu item on the File menu. Include two menu items on
Which of the following allows the user to access a menu item without opening the menu?a. An access keyb. A menu keyc. Shortcut keysd. None of the above
Using the Insert and Remove methods, write the Visual Basic statements to change the contents of the strWord variable from “late” to “crate”.
The strName variable contains the string “Carlson”. Which of the following statements changes the contents of the variable to the string “Carl”?a. strName = strName.Remove(0, 4)b. strName =
Open the VB2015\Chap08\Color Solution\Color Solution (Color Solution.sln) file. The btnDisplay_Click procedure should display the color of the item whose item number is entered by the user. All item
Which of the following changes the contents of the strName variable from Will to William?a. strName = strName.Append(5, "iam")b. strName = strName.Append(4, "iam")c. strName = strName.Insert(5,
Open the VB2015\Chap08\Commission Solution\Commission Solution (Commission Solution.sln) file. Add a File menu that contains an Exit menu item. The menu item should end the application. Save the
The underlined letter in a menu element’s caption is called _____________________ .a. An access keyb. A menu keyc. A shortcut keyd. None of the above
Write a Visual Basic statement that uses the Insert method to change the contents of the strState variable from “Il” to “Illinois”.
Showing 200 - 300
of 662
1
2
3
4
5
6
7