Programming with Microsoft Visual Basic 2017
8th Edition
ISBN: 9781337102124
Author: Diane Zak
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Concept explainers
Expert Solution & Answer
Chapter 4, Problem 16RQ
Program Description Answer
The given code will assign the value “Silver” to the lblStatus control when the strLevel variable contains the string 3.
Hence, correct answer is option “D”.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Pearson Charity: Donation Form
Please complete the form. Mandatory fields are marked with a *
PERSONAL INFORMATION DETAILS-
For example: John Doe
For example: 012-345-6789
For example:user@domain.com
Select an option
Name *
Phone*
Email *
Gender*
DONATION DETAILS
Amount*
Fund*
Donate
Any amount between R1 - R1000
Select an option
IN EXCEL VBA FORMAT PLEASE
Write a sub that uses the If Construct. If the value in cell B1 is greater than 75, cell B1 should be colored green. If not, it should be colored red.
For closing a form the code can be
Select one:
a.
Me.Close
b.
Form.exit
c.
Form.close
d.
Me.exit
Clear my choice
Chapter 4 Solutions
Programming with Microsoft Visual Basic 2017
Ch. 4 - Prob. 1MQ1Ch. 4 - Prob. 2MQ1Ch. 4 - Prob. 3MQ1Ch. 4 - Prob. 1MQ2Ch. 4 - Prob. 2MQ2Ch. 4 - Prob. 3MQ2Ch. 4 - Prob. 4MQ2Ch. 4 - What is the opposite of greater than?Ch. 4 - Prob. 1MQ3Ch. 4 - Prob. 2MQ3
Ch. 4 - Prob. 3MQ3Ch. 4 - Prob. 4MQ3Ch. 4 - Prob. 1MQ4Ch. 4 - Prob. 2MQ4Ch. 4 - Prob. 3MQ4Ch. 4 - Prob. 1MQ5Ch. 4 - Prob. 2MQ5Ch. 4 - Prob. 3MQ5Ch. 4 - Prob. 1MQ6Ch. 4 - Jake’s Car Rental charges each customer a daily...Ch. 4 - Prob. 1MQ7Ch. 4 - Prob. 2MQ7Ch. 4 - Write a Case clause that specifies all numbers...Ch. 4 - Prob. 1MQ8Ch. 4 - Prob. 2MQ8Ch. 4 - Prob. 3MQ8Ch. 4 - A form contains six radio buttons. Three of the...Ch. 4 - Which property of the KeyPress procedures e...Ch. 4 - Which property of the KeyPress procedure’s e...Ch. 4 - Prob. 3MQ9Ch. 4 - Prob. 4MQ9Ch. 4 - Prob. 5MQ9Ch. 4 - Prob. 1RQCh. 4 - Prob. 2RQCh. 4 - Prob. 3RQCh. 4 - Prob. 4RQCh. 4 - Prob. 5RQCh. 4 - Prob. 6RQCh. 4 - Prob. 7RQCh. 4 - Prob. 8RQCh. 4 - Prob. 9RQCh. 4 - Prob. 10RQCh. 4 - Prob. 11RQCh. 4 - Prob. 12RQCh. 4 - Use the code shown in Figure 4-54 to answer Review...Ch. 4 - Use the code shown in Figure 4-54 to answer Review...Ch. 4 - Use the code shown in Figure 4-54 to answer Review...Ch. 4 - Prob. 16RQCh. 4 - Prob. 17RQCh. 4 - Prob. 18RQCh. 4 - Prob. 19RQCh. 4 - Prob. 20RQCh. 4 - Prob. 21RQCh. 4 - Prob. 22RQCh. 4 - Prob. 23RQCh. 4 - Prob. 24RQCh. 4 - Prob. 25RQCh. 4 - It is customary in Windows applications to...Ch. 4 - Prob. 27RQCh. 4 - Prob. 28RQCh. 4 - Prob. 29RQCh. 4 - Prob. 30RQCh. 4 - Prob. 31RQCh. 4 - Prob. 32RQCh. 4 - Prob. 33RQCh. 4 - Prob. 34RQCh. 4 - Which of the following statements is equivalent to...Ch. 4 - The six logical operators are listed below....Ch. 4 - An expression can contain arithmetic, comparison,...Ch. 4 - Prob. 1ECh. 4 - Prob. 2ECh. 4 - Prob. 3ECh. 4 - Prob. 7ECh. 4 - Prob. 11ECh. 4 - The purpose of this exercise is to demonstrate the...
Knowledge Booster
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
- Use the code shown in Figure 4-54 to answer Review Questions 13 through 16. If strLevel = 1 OrElse strLevel = 2 Then lblStatus.Text = Bronze ElseIf strLevel = 3 OrElse strLevel = 4 Then lblStatus.Text = Silver ElseIf strLevel = 5 Then lblStatus.Text = Gold Else lblStatus.Text = Platinum End If Figure 4-54 Code for Review Questions 13 through 16 What will the code in Figure 4-54 assign to the lblStatus control when the strLevel variable contains the string 2? a. Bronze b. Gold c. Platinum d. Silverarrow_forwardUse the code shown in Figure 4-54 to answer Review Questions 13 through 16. If strLevel = “1” OrElse strLevel = “2” Then lblStatus.Text = “Bronze” ElseIf strLevel = “3” OrElse strLevel = “4” Then lblStatus.Text = “Silver” ElseIf strLevel = “5” Then lblStatus.Text = “Gold” Else lblStatus.Text = “Platinum” End If Figure 4-54 Code for Review Questions 13 through 16 What will the code in Figure 4-54 assign to the lblStatus control when the strLevel variable contains the string “5”? Bronze Gold Platinum Silverarrow_forwardAn expression can contain arithmetic, comparison, and logical operators. Indicate the order of precedence for the three types of operators by placing a number (1, 2, or 3) on the line to the left of the operator type. __________ Arithmetic __________ Logical __________ Comparisonarrow_forward
- DORM AND MEAL PLAN CALCULATOR A university has the following dormitories: Allen Hall $1,500 per semesterPike Hall $1,600 per semesterFarthing Hall $1,800 per semesterUniversity Suites $2,500 per semesterThe university also offers the following meal plans:7 meals per week $ 600 per semester14 meals per week $1,200 per semesterUnlimited meals $1,700 per semesterCreate an application with two forms. The main form should allow the user to select a dormitory and a meal plan. The application should show the total charges on the second form. For this assignment, you will create two forms (each form is an object). On the first form you will have two list boxes. One will display the Dormitories and the other one will display the Meal Plans. The user will select one Dorm and one meal plan. The user will then click a button the will open up a second form and show the results. I would suggest that you store the Dormitories is a two dimensional array for name and cost. I would suggest that you…arrow_forward3. Create a Multiplication Table application as shown in the figure below. Be sure that the text box accepts only a positive number and Backspace. | Multiplication Table Number: 12 Display Multiplication table: 12 1 12 12 2 24 Exit 12 * 3 = 36 12 * 4 = 48 12 *5 = 60 12 *6 = 72 12 7 84 12 8 96 12 9 108 12 * 10 = 120arrow_forwardSelect the correct option for the question shown below.arrow_forward
- Evaluate the following expression: 6 / 2 * 3 + 4.arrow_forwardAn employee’s current pay rate appears in the txtCurrentRate control. Write an assignment statement that increases the current pay rate by 10 and then assigns the result to the lblNewRate control.arrow_forwardThe difference between check box and radio button controls is that only one check box in a group can be checked at the same time only one radio button in a group can be checked at the same time you can only use the Checked property to check whether a check box is checked you can’t have just one radio button on a formarrow_forward
- The application displays a shipping charge that is based on the total price entered by the user, as shown in Figure 4-64. Start the application and then test it by clicking the Display shipping button. Notice that the Shipping charge box contains $13, which is not correct. Now, test the application using the following total prices: 100, 501, 1500, 500.75, 30, 1000.33, and 2000. Here too, notice that the application does not always display the correct shipping charge. (More specifically, the shipping charge for two of the seven total prices is incorrect.) Open the Code Editor window and correct the errors in the code. Save the solution and then start and test the application.arrow_forwardYou can modify the tab order by changing a control’s _______ property.arrow_forwardThis is for Visual Basic I and is not in a textbook. Create a Windows Form application. Use the following names for the project and solution, respectively: NFL Teams Project and NFL Teams Solution. Add any 6 NFL teams to a list box. When the user clicks a team in the list box, the list box’s SelectedIndexChanged procedure should display the State that the NFL Team is from in a label control. Example "Altanta Falcons" display Georgia, in the label. Look back at Chapter 5 for examples of list boxes. I need some help understanding it. My teacher gave this to me as a example question.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 Learning
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Control Structure in Data Structure - Data Structures - Computer Science Class 12; Author: Ekeeda;https://www.youtube.com/watch?v=9FTw2pXLhv4;License: Standard YouTube License, CC-BY