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
Textbook Question
Chapter 7, Problem 2RQ
Which of the following statements changes the contents of the strWord variable from “led” to “lead”?
- a. strWord = strWord.AddTo(2, "a")
- b. strWord = strWord.Insert(2, "a")
- c. strWord = strWord.Insert(3, "a")
- d. strWord = strWord.Into(3, "a"c)
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Create two variables (v1, v2). First and second ones should be your name---surname (string) and faculty number (integer), respectively.a) Combine v1 and v2 by using “+” operator and obtain new variable (v3) which should be string.b) Calculate length of the v3. Use print command to indicate the result.c) Find first, third and last elements of v3. Use print command to indicate the results.d) Print v1, length of v3 times with loop. You are free to choose loop type.
Q1:
A: Put (T) or (F) and correct the false for the following
1. A constant is a space in memory filled with data.
2. Variable name can be repeated for other values.
3. Textbox is used for input only.
Browse the web to locate the lyrics to the song “The Twelve Days of Christmas.” The song contains a list of gifts received
for the holiday. The list is collective so that as each “day” passes, a new verse contains all the words of the previous verse,
plus a new item. Write an application that displays the words to the song starting with any day the user enters.
(Hint: Use a switch statement with cases in descending day order and without any break statements so that the lyrics for
any day repeat all the lyrics for previous days.)
Chapter 7 Solutions
Programming with Microsoft Visual Basic 2017
Ch. 7 - Which of the following statements changes the...Ch. 7 - Prob. 3RQCh. 7 - Prob. 6RQCh. 7 - Prob. 7RQCh. 7 - Prob. 11RQCh. 7 - Prob. 12RQCh. 7 - Prob. 14RQCh. 7 - Which of the following expressions evaluates to...Ch. 7 - Which of the following statements declares an...Ch. 7 - Which of the following statements generates a...
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
- Which delimiter will be selected to change the text 'Happy#go#lucky' in to column? a. tab b. semicolon c. other d. spacearrow_forwardWhich of the following statements generates a random integer from 1 to 25 (including 25)? a. intNum = randGen.Next(1, 25) b. intNum = randGen.Next(1, 26) c. intNum = randGen(1, 25) d. intNum = randGen.NextNumber(1, 26)arrow_forward3.) Create a subroutine called WherePutMe that asks the user for a row number and column letter then places the 2,2 position of a selection into that cell. (HINT: Make sure that you select a selection before running the sub!) HINT: If x is an integer and is equal to 7 and y is a string and equal to "B". you can place z into cell B7 by: Range(y & x) = z. Hope this helps.arrow_forward
- Write an application that displays the factorial for every integer value from 1 to 10. A factorial of a number is the product of that number multiplied by each positive -integer lower than it. For example, 4 factorial is 4 * 3 * 2 * 1, or 24. Save the file as Factorials.cpp.arrow_forwardVBA PROBLEM: Create a code where every time that only cell B1 is changed, create a new tab and that this tab is renamed with the value that is entered in B1 and the other cells, that is, B2: B11 have the same values that are entered in the Sheet1. The values of A1: A11 must always remain the same. Like in the examples below (image 1 and 2).arrow_forwardIn the postincrement; the value is incremented by 1 and use the new value in the next expression in which it resides. Select one: True Falsearrow_forward
- The photo talley.jpg is opened for you and saved into the variable photo. You munt edit the image so there is NO blue color is remaining in the photo variable. This is to be done with indexing. Once the blue color has been taken out., use inshow to view the newly edited image. Script o C Reset I MATLAB Documentation read in the photo using imread 2 photo = imread(talley.jpg"); imshow(photo); Ndisplaying the original image 4figure();X the photo will blue renoved will be shown in a different figure 5* take the blue out of the photo X use imshow to view the new, edited photoarrow_forwardswitch_player(): we will allow the players to choose their own names, but for our purposes, it is easier to think of them as number (0 and 1, for indexing purposes). We will display their names to them on the screen, but in the background, we will keep track of them based on their number. This function should take 1 argument, an integer (either 0 or 1) representing the player and should return the opposite integer (1 if 0 is entered and 0 if 1 is entered). This is a simple function, but it will make our code cleaner later. Use your constants! Using Thonnyarrow_forwardNonearrow_forward
- Which of the following is a wrong code. Select one: a. All the above b. texbox3.text = val(textbox1.text) + Val(texbox2.text) c. textbox3.text = val(textbox1.text) * val(textbox2.text) d. textbox3.value = val(textbox1.text) + val(textbox2.text)arrow_forwardCreate an application that random 2 integers from 0 to 100. If a%b==0 print a/b, else rerollarrow_forwardWhat will the following code display?try:x = float('abc123')print('The conversion is complete.')except IOError:print('This code caused an IOError.')except ValueError:print('This code caused a ValueError.')print('The end.')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 LearningMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Linux - Tutorial for Beginners in 13 MINUTES! [ UPDATED ]; Author: bai;https://www.youtube.com/watch?v=BMGixkvJ-6w;License: Standard YouTube License, CC-BY
What is Linux?; Author: Techquickie;https://www.youtube.com/watch?v=zA3vmx0GaO8;License: Standard YouTube License, CC-BY
Introduction to Linux and Basic Linux Commands for Beginners; Author: sakitech;https://www.youtube.com/watch?v=IVquJh3DXUA;License: Standard Youtube License