Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
8th Edition
ISBN: 9781337102124
Author: Diane Zak
Publisher: Cengage Learning
Expert Solution & Answer
Book Icon
Chapter 7, Problem 3RQ
Program Description Answer

The statement strAmount = strAmount.PadRight(9, “!”c) changes the contents of the strAmount variable from “678.95” to “678.95!!!”.

Hence, the correct answer is option “B”.

Blurred answer
Students have asked these similar questions
The strTotal variable contains the string “***75.67”. Write a statement that uses the TrimStart method to change the variable’s contents to “75.67”.
If the strWord variable contains the string “crispy”, which of the following statements assigns the letter s to the strLetter variable? a. strLetter = strWord.Substring(3) b. strLetter = strWord.Substring(3, 1) c. strLetter = strWord.Substring(4, 1) d. None of the above.
You have been hired by PetPals Veterinary Clinic to modify its Bill Calculator application.  Upon reviewing the application, you notice that all of the controls have their default names. You also notice that the Calculate button’s code uses the properties of controls in the calculation statements.   The total amount a customer owes for all of the services performed during an office visit may contain a decimal place. What data type is best for a variable that will store this value?   a.  String     b.  Double     c.  Integer     d.  Fraction
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning