EBK 3N3-EBK: PROGRAMMING W/MICROSOFT VI
8th Edition
ISBN: 9780176920159
Author: ZAK
Publisher: VST
expand_more
expand_more
format_list_bulleted
Concept explainers
Expert Solution & Answer
Chapter 4, Problem 2MQ7
Explanation of Solution
Select…Case structure:
- The Select Case is used to specify the multiple alternative choices in a structure.
- The Select Case statement starts with the Select Case keyword, which is followed by the condition, and ends with the End Select clause.
- The list of Case clauses will be represented between Select Case and End Select clause.
- The Select Case structure contains Case Else clause, and it must be the last clause in the list of statements. It is optional.
The syntax of the Select Case statement is as follows:
Select Case selectorExpression
[Case expressionList1
instructions for the first Case]
[Case expressionList2
�...
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
If the intCode variable is used as the selectorExpression in a Select Case statement, which of the following is a valid Case clause? a. Case 1, 2, 3 b. Case "1", "2", "3" c. Case 1 Through 3 d. All of the above.
Write an If clause that determines whether the strFinished variable contains the letter Y.
Write a multiple-alternative selection structure that determines the appropriate discount rate based on a promotion code entered by the user. The user’s entry is stored in the intPromoCode variable. The valid promotion codes are 1, 2, 3, and 4. The corresponding discount rates are 2%, 5%, 10%, and 25%, respectively. Assign the discount rate (converted to decimal) to the decRate variable. If the user enters an invalid promotion code, assign the number 0 to the decRate variable. Use the If/ElseIf/Else form of the If... Then...Else statement.
Chapter 4 Solutions
EBK 3N3-EBK: PROGRAMMING W/MICROSOFT VI
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
- If a condition contains a range of values, the test data should include which of the following? a. the minimum value in the range b. the maximum value in the range c. a value within the range d. all of the abovearrow_forwardWrite a Case clause that specifies all numbers less than 0.arrow_forwardWhich of the following clauses will stop the loop when the value in the intPopulation variable is less than the number 5000? a. Do While intPopulation >= 5000 b. Do Until intPopulation < 5000 c. Loop While intPopulation >= 5000 d. All of the above.arrow_forward
- Which of the following Case clauses is valid in a Select Case statement whose selectorExpression is an Integer variable named intAge? a. Case Is > 21 b. Case 21, 65 c. Case 1 To 10 d. All of the above.arrow_forwardWrite a statement that assigns the InputBox function’s return value to the strItem variable. The text “Item Name” should appear in the dialog box’s title bar. The “Enter the item:” message should appear inside the dialog box. The input area should be empty.arrow_forwardIn the receiving procedure’s header, you use the keyword __________to indicate that a variable is being passed by reference.arrow_forward
- 7. Which of the following declares a named constant having the Double data type? a) Const db1RATE As Double = 0.09 b) Const db1RATE As Double c) Constant dblRATE = 0.09 d) Both a and b. 8. If Option Strict is set to On, which of the following statements assigns the sum of two Integer variables to the Text property of the IblTotal control? a) lb1Total.Text = (intN1 + intN2).TOString b) lb1Tota1.Text = intN1. ToString + intN2. ToString c) lb1Total.Text intN1 + intN2.ToString %3D d) lb1Total. Text ToString(intN1 + intN2) %3D 9. Which of the following statements prevents data loss due to implicit type conversions? a) Option Convert Off b) Option Explicit On c) Option Implicit Off d) Option Strict On 10.If the decPay variable contains the number 1200.76, which of the following statements displays the number as 1,200.76? a) lb1Pay.Text = decPay. ToString("N2") b) lb1Pay. Text = decPay. ToString("F2") c) lblPay. Text = decPay. ToString("D2") d) lb1Pay. Text = decPay. ToString("C2") 11.If…arrow_forwardComputer Science The user should enter his/her latest math course. If that course meets the computer science BAS requirements, congratulate the user. If the highest math course taken is not enough, recommend the next math course to take. - If the user input either of these math course (MATH &146MATH &148MATH &151MATH &152MATH &163 ) congratulate the user - if the user input either of this math course (MATH 081MATH 084MATH 085MATH 097MATH 098MATH 099MATH &107MATH 116MATH &141MATH &142) recommend the next math course to take in order. Html/Javascriptarrow_forwardFor closing a form the code can be Select one: a. Me.Close b. Form.exit c. Form.close d. Me.exit Clear my choicearrow_forward
- The memory locations listed in a procedure header’s parameterList have procedure scope and are removed from the computer’s main memory when the procedure ends. a. True b. Falsearrow_forwardWrite a selection statement that will display 'CS Honors Eligible' on screen if a student's GPA is 3.5 or greater and they have completed over 60 hours.arrow_forwardWhere are procedure-level variables declared?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 LearningProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage