Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
8th Edition
ISBN: 9781337102124
Author: Diane Zak
Publisher: Cengage Learning
bartleby

Concept explainers

Expert Solution & Answer
Book Icon
Chapter 3, Problem 18RQ
Program Description Answer

The following statement is used to display the number 1,200.76 if the variable decPay contains the number 1200.76:

lblPay.Text = decPay.ToString(“N2”)

Hence, correct answer is option “A”.

Blurred answer
Students have asked these similar questions
The strDue variable contains the string “$****75”. Which of the following statements removes the dollar sign and asterisks from the variable? a. strDue = strDue.Trim("$"c, "*"c) b. strDue = strDue.TrimStart("*"c, "$"c) c. strDue = strDue.TrimStart("$"c, "*"c) d. All of the above.
If the decPay variable contains the number 1200.76, which of the following statements displays the number as 1,200.76? a. lblPay.Text = decPay.ToString("N2") b. lblPay.Text = decPay.ToString("F2") c. lblPay.Text = decPay.ToString("D2") d. lblPay.Text = decPay.ToString("C2")
If the intNum variable contains the number 5, which of the following assigns the number 125 to the intCubed variable? a. intCubed = intNum ^ 3b. intCubed = intNum * intNum * intNum c. intCubed = intNum * intNum ^ 2d. all of the above

Chapter 3 Solutions

Programming with Microsoft Visual Basic 2017

Knowledge Booster
Background pattern image
Computer Science
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
Recommended textbooks for you
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning