New Semester
Started
Get
50% OFF
Study Help!
--h --m --s
Claim Now
Question Answers
Textbooks
Find textbooks, questions and answers
Oops, something went wrong!
Change your search query and then try again
S
Books
FREE
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
Tutors
Online Tutors
Find a Tutor
Hire a Tutor
Become a Tutor
AI Tutor
AI Study Planner
NEW
Sell Books
Search
Search
Sign In
Register
study help
computer science
programming microsoft visual basic
Programming With Microsoft Visual Basic 2017 8th Edition Diane Zak - Solutions
Write an If ... Then statement that tests whether the value in the variable intRow is between 1 and 8 . If the number is in that range, set the Text property for the lblCabin Label object to "First Class."
Name the six relational operators and state the purpose of each operator.
Write an If... Then ... Else statement that assigns 70 to a variable named intSpeed if strInterstate is equal to "I40." Otherwise, assign 60 to intSpeed.
List the three most common logical operators and explain their meaning.
Rewrite the following line of code without a Not logical operator but keep the same logical processing:If Not decHoloLens
The intent of the following statement is to check whether the radBusTicket RadioButton object is checked. What is the error in the statement? Rewrite the statement so it is correct.If radBusTicket \(=\) Checked Then
The intent of the following statement is to check whether the value in the intGrade variable is less than 0 or greater than 100. What is the error in the statement? Rewrite the statement so it is correct.If intGrade < 0 And intGrade > 100 Then
What is the most commonly used container object?
One of the most common mistakes when writing an If statement is writing one similar to this statement. Fix this statement.If decShoeSize > 5.5 and < 10.0 Then
What is the prefix for a RadioButton object and a GroupBox object?
Write a statement that opens a dialog box with the title "Escape Room" and the message "Group Size of Booking."
What is the difference between a Panel object and a GroupBox object?
What is the difference between the Or logical operator and the Xor logical operator?
Write a data validation statement that would check to ensure that the value in the intAge variable is between 1 and 115 . If the age is not valid, display an error message box that states the age is invalid.
How many radio buttons in a group can be selected at one time?
Using the concatenation operator (\&), write a statement that would create the compound word "reunion" from the following two strings: strClass 1 = "re" and strClass2 = "union." Assign the compound word to the strCompound string variable.
Write a statement that would clear the radio button named radDrake.
Write a Select Case statement using the fewest Case statements possible to display the number of days in each month. The user enters the number of the month, such as 8 , which is converted to an integer and assigned to the intMonth variable. The Select Case statement should display a message box
Which logical operator has the highest precedence in the order of operations?
The basic functions of many programs are: a._________________ b.___________________ C._________________ ;
Explain the differences between computer hardware and computer software.
Match the following terms and their definitions: a. Developer b. Persistent data c. Programming language d. Graphical user interface e. HoloLens f. Database g. Rapid application development (RAD) h. Cloud computing 1. A headset designed to view augmented reality 2. Someone skilled in designing
Explain what an event is in the context of event-driven programs. Give two examples.
Give examples of the differences between an input operation and an output operation.
Describe three different databases where you think information about yourself might be stored.
What is programming language syntax? Why is it important?
What is a Toolbox in Visual Studio 2017? Why is it valuable?
Name two properties that a Button object can possess.
What are the five programming languages you can use with Visual Studio 2017?
Where can you sell the Windows Universal apps that you develop?
State three reasons that Visual Basic is one of the most widely used programming languages in the world.
Name two purposes of creating a Microsoft account for use in Visual Studio 2017.
Why is a class developed? How are classes organized and stored?
Differentiate between a class and an object. Give three examples each of classes and objects.
What is the primary use of ADO.NET?
What do you call the process of translating statements written by a developer? What is the result of this process?
What are five types of applications you can create in Visual Basic 2017?
Find three YouTube videos that give an excellent overview of different HoloLens examples. Copy and the paste the URL of each of these videos and write a sentence after each URL explaining the video.
Research the cost of a HoloLens device and list the specifications.
Which of the following is not a valid name for an object?a. picMy.Dogb. btnCalcSalesTaxc. lbl2019d. lblProjected2024
Define the term “syntax.”
Which of the following do not need to have their names changed to more meaningful ones?a. All controls that will be codedb. All controls that will be referred to in codec. The formd. Identifying labels
What is the result of the following expression: 96 \ 30?a. 3b. 3.2c. 6d. 0.2
Which of the following is not a valid name for a variable?a. Dbl8%Rateb. DecCostc. StrNamed. IntAge
What is the result of the following expression: 3 x 5 \ 2 + 30 / 5?a. 7.5b. 13c. 13.5d. 12
Which of the following is used to declare a procedure-level String variable?a. Dim String strCityb. Dim strCity As Stringc. Private strCity As Stringd. Local strCity As String
Which of the following is true?a. A static variable has the same lifetime as a procedure-level variable but the same scope as a class-level variable.b. A static variable has the same scope as a procedure-level variable but the same lifetime as a class-level variable.
Evaluate the following expression: 13 > 12 OrElse 6 < 5.a. True b. False
Evaluate the following expression: 6 + 3 > 7 AndAlso 11 < 2 x 5.a. True b. False
Evaluate the following expression: 8 > 10 OrElse 7 > 3.a. True b. False
Evaluate the following expression: 7 + 3 x 2 < 6 x 3 AndAlso 20 > = 4 x 5.a. True b. False
Evaluate the following expression: 5 x 7 > 6 ˆ 2.a. True b. False
Evaluate the following expression: False AndAlso True OrElse True.a. True b. False
Which of the following is the correct order of precedence for the AndAlso, Not, and OrElse logical operators?a. AndAlso, Not, OrElseb. AndAlso, OrElse, Notc. Not, AndAlso, OrElsed. OrElse, AndAlso, Not
Which of the following is the correct order of precedence for the arithmetic, comparison, and logical operators?a. Arithmetic, Comparison, Logicalb. Arithmetic, Logical, Comparisonc. Comparison, Arithmetic, Logicald. Comparison, Logical, Arithmetic
Which method right-aligns a string?a. PadLeftb. PadRightc. LeftAlignd. RightAlign
What is a constructor?a. A functionb. A Property procedurec. A Sub procedured. Either a function or a Sub procedure
To hide one of a class’s members, you declare the member using which of the following keywords?a. Hideb. Invisiblec. Privated. ReadOnly
Which type of database stores information in tables composed of rows and columns?a. Columnarb. Relationalc. Sortedd. Tabular
You can use the buttons on a BindingNavigator control to do all but which of the following?a. Add records to a datasetb. Save records in a datasetc. Delete records from a datasetd. Edit records in a dataset
What does SQL stand for?a. Select Query Languageb. Semi-Quick Languagec. Structured Quick Languaged. Structured Query Language
Which of the following properties is used to refer to a control (on a web page) in code?a. Captionb. IDc. Named. Text
In this exercise, you modify the Shipping Depot application from Exercise 13. Use Windows to make a copy of the Shipping Depot Solution folder. Rename the copy Modified Shipping Depot Solution. Open the Shipping Depot Solution.sln file contained in the Modified Shipping Depot Solution folder. Open
Create a Windows Forms application. Use the following names for the project and solution, respectively: Shipping Depot Project and Shipping Depot Solution. Save the application in the VB2017\Chap08 folder. The Shipping Depot store ships packages by FedEx, UPS, and USPS. Create the interface shown
Open the Kraston Solution.sln file contained in the VB2017\Chap08\Kraston Solution folder. The btnDisplay_Click procedure should display a shipping charge that is based on the number of items a customer orders. The order amounts and shipping charges are listed in Figure 8-49. Store the minimum
In this exercise, you modify the Professor Schneider application from Exercise 10. Use Windows to make a copy of the Schneider Solution folder. Rename the copy Schneider Solution-TwoDim. Open the Schneider Solution.sln file contained in the Schneider Solution-TwoDim folder. Change the two parallel
In this exercise, you code the Professor Schneider application, which displays a grade based on the number of points entered by the user. The number of points should always be less than or equal to 500. The grading scale is shown in Figure 8-48. Open the Schneider Solution.sln file contained in the
Open the Computer Solution.sln file contained in the VB2017\Chap08\Computer Solution folder. The interface allows the user to enter the number of either new or refurbished computers sold. Open the Code Editor window and locate the btnAdd_Click procedure. The procedure should use an array to
Open the Calories Solution.sln file contained in the VB2017\Chap08\Calories Solution folder. Open the Code Editor window and locate the btnDisplay_Click procedure. The procedure declares and initializes a one-dimensional array named intCalories. The array stores the numbers of daily calories
In this exercise, you modify the Professor Juarez application from Exercise 5. Use Windows to make a copy of the Professor Juarez Solution folder. Rename the copy Professor Juarez Solution-TwoDim. Open the Professor Juarez Solution.sln file contained in the Professor Juarez Solution-TwoDim folder.
In this exercise, you modify one of the Waterson Company applications from this chapter’s Apply lesson. Use Windows to make a copy of the Waterson Solution-Highest folder. Rename the copy Waterson Solution-Lowest. Open the Waterson Solution.sln file contained in the Waterson Solution-Lowest
Open the Professor Juarez Solution.sln file contained in the VB2017\Chap08\Professor Juarez Solution folder.a. Open the Code Editor window and locate the btnDisplay_Click procedure. The procedure declares and initializes two parallel one-dimensional arrays named strNames and strGrades. Code the
Open the Gross Pay Solution.sln file contained in the VB2017\Chap08\Gross Pay Solution folder. The interface provides a text box for entering the number of hours an employee worked. It also provides a list box for selecting the employee?s pay code. The btnCalc_Click procedure should display the
Which of the following returns the highest column subscript in a two-dimensional array named decPays?a. decPays.GetUpperBound(1)b. decPays.GetUpperBound(0)c. decPays.GetUpperSubscript(0)d. decPays.GetHighestColumn(0)
Which of the following assigns the number 0 to each element in a two-row, four-column Integer array named intSums?a. For intRow As Integer = 0 To 1For intCol As Integer = 0 To 3intSums(intRow, intCol) = 0Next intColNext intRowb. Dim intRow As IntegerDim intCol As IntegerDo While intRow < 2intCol
Which of the following statements assigns the string “California” to the element located in the fourth column, sixth row in the two-dimensional strStates array?a. strStates(3, 5) = "California"b. strStates(5, 3) = "California"c. strStates(6, 3) = "California"d. strStates(3, 6) = "California"
The 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
The intNum array is declared as follows: Dim intNum(,) As Integer = {{6, 12, 9, 5, 2}, {35, 60, 17, 8, 10}}. The intNum(1, 4) = intNum(1, 2) - 5 statement will_____________________.a. Replace the 10 amount with 12b. Replace the 5 amount with 7c. Replace the 2 amount with 4d. None of the above.
Which of the following declares a two-dimensional array that has four rows and three columns?a. Dim decNums(2, 3) As Decimalb. Dim decNums(3, 4) As Decimalc. Dim decNums(3, 2) As Decimald. Dim decNums(4, 3) As Decimal
The dblNums array is a six-element Double array. Which of the following If clauses determines whether the entire array has been searched?a. If intSub = dblNums.Length Thenb. If intSub <= dblNums.Length Thenc. If intSub > dblNums.GetUpperBound(0) Thend. Both a and c.
The strStates and strCapitals arrays are parallel arrays. If Illinois is stored in the second element in the strStates array, where is its capital (Springfield) stored?a. strCapitals(1) b. strCapitals(2)
If the elements in two arrays are related by their subscripts, the arrays are called _____________________ arrays.a. Associatedb. Coupledc. Matchingd. Parallel
The intSales array is declared as follows: Dim intSales() As Integer = {10000, 12000, 900, 500, 20000}. Which of the following If clauses determines whether the intSub variable contains a valid subscript for the array?a. If intSub >= 0 AndAlso intSub <= 4 Thenb. If intSub >= 0 AndAlso
The strNames array contains 100 elements. Which of the following statements assigns the number 99 to the intLastSub variable?a. intLastSub = strNames.Lengthb. intLastSub = strNames.GetUpperBound(0) + 1c. intLastSub = strNames.GetUpperBound(0)d. Both a and b.
The intNums array is declared as follows: Dim intNums() As Integer = {10, 5, 7, 2}. Which of the following blocks of code correctly calculates the average value stored in the array? The intTotal variable contains the number 0 before the loop is processed.a. For Each intX As Integer In
The intCounters array contains five elements. Which of the following assigns the number 1 to each element?a. For intSub As Integer = 0 To 4intCounters(intSub) = 1Next intSubb. Dim intSub As IntegerDo While intSub < 5intCounters(intSub) = 1intSub += 1Loopc. For intSub As Integer = 1 To
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"
If 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.Lend. intElements = intNums.Length
Which of the following statements sorts the intQuantities array in ascending order?a. Array.Sort(intQuantities)b. intQuantities.Sortc. Sort(intQuantities)d. SortArray(intQuantities)
Open the VB2017\Chap07\FixIt Solution\FixIt Solution.sln file. The interface provides a text box for the user to enter one or more words. The btnReverse_Click procedure should display the characters in reverse order. In other words, if the user enters the words “Show me the money”, the
Open the Validate Number Solution.sln file contained in the VB2017\Chap07\Validate Number Solution folder. The interface provides a text box for entering a 9-digit number. The btnValidate_Click procedure should use the algorithm and example shown in Figure 7-56 to validate the user?s entry. The
Open the Addition Solution.sln file contained in the VB2017\Chap07\Addition Solution folder. The btnNew_Click procedure is responsible for generating two random integers from 0 to 10 (including 10) and displaying them in the lblNum1 and lblNum2 controls. The btnCheck_Click procedure is responsible
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 salesperson sells new cars or the letter U if the salesperson sells used cars. The fifth character
In this exercise, you modify the Proper Case application from Exercise 6. If necessary, complete Exercise 6. Then, use Windows to make a copy of the Proper Case Solution folder. Rename the copy Proper Case Solution-Hyphenated. Open the Proper Case Solution.sln file contained in the Proper Case
In this exercise, you modify the Proper Case application from Exercise 6. If necessary, complete Exercise 6. Then, use Windows to make a copy of the Proper Case Solution folder. Rename the copy Proper Case Solution-Middle. Open the Proper Case Solution.sln file contained in the Proper Case
In this exercise, you modify the Password application from this chapter’s Apply lesson. Use Windows to make a copy of the Password Solution folder. Rename the copy Password Solution-Advanced. Open the Password Solution.sln file contained in the Password Solution-Advanced folder. Before inserting
Open the Shipping Solution.sln file contained in the VB2017\Chap07\Shipping Solution folder. The interface provides a text box for entering a shipping code, which should consist of two numbers followed by either one or two letters. The letter(s) represent the delivery method, as follows: MS
In this exercise, you modify the Password application from this chapter’s Apply lesson. Use Windows to make a copy of the Password Solution folder. Rename the copy Password Solution-Index. Open the Password Solution.sln file contained in the Password Solution-Index folder. In the btnCreate_Click
In this exercise, you modify the Check Digit application from this chapter’s Apply lesson. Use Windows to make a copy of the Check Digit Solution folder. Rename the copy Check Digit Solution-ForNext. Open the Check Digit Solution.sln file contained in the Check Digit Solution-ForNext folder.
Open the Zip Solution.sln file contained in the VB2017\Chap07\Zip Solution folder file. The btnDisplay_Click procedure should validate the ZIP code entered by the user. To be valid, the first four digits in the ZIP code must be 4210, and the last digit must be 2, 3, or 4. Use one selection
Showing 400 - 500
of 831
1
2
3
4
5
6
7
8
9
Step by Step Answers