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 6, Problem 23RQ
Program Description Answer

The statement dblSales = Math.Round(dblSales,2) rounds the contents of the “dblSales” variable to two decimal places.

Hence, the correct answer is option “A”.

Blurred answer
Students have asked these similar questions
Which of the following statements increments the decTotal variable’s value by the value stored in the decBonus variable? a. decBonus += decTotal b. decBonus =+ decTotal c. decTotal += decBonus d. decTotal =+ decBonus
Which of the following statements formats the contents of the dblNet variable with a dollar sign and two decimal places? a. lblNet.Text = dblNet.ToCurrency("C2") b. lblNet.Text = dblNet.ToString("C2") c. lblNet.Text = ToString(dblNet , "C2") d. lblNet.Text = dblNet.ToFormat("C2")
Which of the following conditions determines whether the number in the intNum variable is less than 0 or greater than 1000?a. intNum < 0 AndAlso intNum > 1000b. intNum < 0 OrElse intNum > 1000c. intNum < 0 AndAlso > 1000d. intNum < 0 OrElse > 1000
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
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,