Programming with Microsoft Visual Basic 2017
8th Edition
ISBN: 9781337102124
Author: Diane Zak
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Expert Solution & Answer
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”.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Prompt the user to enter their dinner bill and the percentage they want to tip.
Calculate the tip and total bill.
Display a column of values aligned by the decimal place.
The rows should be diner cost, tip and total.
The Excel function =sin(A1) will calculate the sine of the value in cell A1. The value in cell A1 must be in degrees.
True?
False?
A formula with the cell reference B$2 is copied one cell to the right, what in the new cell reference
Chapter 6 Solutions
Programming with Microsoft Visual Basic 2017
Ch. 6 - Prob. 1RQCh. 6 - Prob. 2RQCh. 6 - Prob. 3RQCh. 6 - Prob. 6RQCh. 6 - Prob. 7RQCh. 6 - Prob. 8RQCh. 6 - Which of the following instructs a function to...Ch. 6 - Prob. 10RQCh. 6 - Which of the following is a valid header for a...Ch. 6 - Prob. 14RQ
Ch. 6 - The memory locations listed in a procedure...Ch. 6 - Prob. 16RQCh. 6 - Prob. 17RQCh. 6 - The items in a combo box belong to which...Ch. 6 - Prob. 19RQCh. 6 - Prob. 20RQCh. 6 - Prob. 21RQCh. 6 - Prob. 22RQCh. 6 - Prob. 23RQCh. 6 - Prob. 24RQCh. 6 - Prob. 25RQCh. 6 - Prob. 1ECh. 6 - Prob. 3ECh. 6 - The Donut Shoppe sells four varieties of...Ch. 6 - Prob. 8ECh. 6 - Prob. 11E
Knowledge Booster
Similar questions
- Which of the following statements is equivalent to the statement dblTotal = dblRate dblTotal? a. dblTotal = dblRate b. dblTotal = dblRate c. dblRate = dblTotal d. dblRate = dblTotalarrow_forwardDate Functions Which of the following statements about Date Serial numbers in Excel are TRUE? (Select three that apply) OPTIONS: Date Serial numbers are what powers Date Functions in Excel. Date Serial numbers are sequential, starting from 1 Data Serial numbers can only be used with the YEARFRACfunction. The Date Serial number of 1 corresponds to the date 1900-01-01arrow_forwardFor the code below can you varify the card number, card exp date, card cvv and address for example the card number should be 13 numbers if any more it should say "invalid" for the card exp date it should be like 12/35 if not then its invalid for card cvv it should only be 3 numbers and address should be like 11-11-11st as long as it has the "-" and "st" also when ever its invalid can you make it print on the bottom of the box like the example in the image below. thank you <!DOCTYPE html> <html> <head> <style> input { height: 25px; border-radius: 5px; } </style> <script> function validate() { if (!validateVal(document.getElementById("number").value)) { alert("Please Enter the number"); return; } var num = parseInt(document.getElementById("number").value); if (num < 1 || num > 9) { alert("Enter a number between 1 and 9(Including 1 and 9)"); return; } if (!validateVal(document.getElementById("name").value)) {…arrow_forward
- Which of the following statements for Tax_rate holds the value to 0.075? a. double tax_rate = 0.076; b. const Tax_Rate; c. const double Tax_rate; d. double Tax_Rate = 0.075;arrow_forwardWhich of the following statements invokes the GetDiscount function, passing it the contents of two Decimal variables named decSales and decRate? The statement should assign the function’s return value to the decDiscount variable. a. decDiscount = GetDiscount(ByVal decSales, ByVal decRate) b. GetDiscount(decSales, decRate, decDiscount) c. decDiscount = GetDiscount(decSales, decRate) d. None of the above.arrow_forwardWhich of the following statements is correct to display all the columns from the weather table but only for whose humidity is in the range of 40 to 65? O a. SELECT * FROM weather WHERE humidity IN (40 ,65); 1 O b. SELECT * FROM weather WHERE humidity NOT IN (40 AND 65); O c. SELECT * FROM weather WHERE humidity NOT BETWEEN 40 AND 65; O d. SELECT * FROM weather WHERE humidity BETWEEN 40 AND 65; Different employees joined a company on same date. You want to display the hire date and count of the employees in each hire date group. Query 1: Select hiredate, count(*) from employee group by hiredate; Query 2: Select hiredate , count(hiredate) from employee order by hiredate; Which among the above two queries is valid? a. Both Query1 and Query2 are invalid O b. Query1 is valid O c. Both Query 1 and Query2 are valid d. Query2 is valid If a table PRODUCT has 2 columns namely PRODUCTID, PRODUCTNAME and a table ORDER has 3 columns namely ORDERID, ORDERAMOUNT and PRODUCTID. Which column can join…arrow_forward
- If you can see my name and my surname pls use them as a value. Thank you.arrow_forwardWhich of the following statements will display all Female student names. such that older students appears first? a. Select full_name from students where gender=’F’ order by bd; b. Select full_name from students where gender =’F’ order by bd desc; c. Select full_name from students where gender =’M’ order by bd; d. Select full_name from students where gender =’M’ order by bd desc;arrow_forwardWhich of the following is invalid variable in R programming both b and c var_name2. var_name 2var_namearrow_forward
- 1. Declare the required variables, then ask user to enter employee’s full name, id and monthly salary from keyboard, then display the values like this: Employee's name is James Cook, employee's id is 34256, and employee's monthly salary is $4533.5arrow_forwardBased on the table below, what values would appear in the range D3:F5 when the contents of C3:C5 are autofilled rightward towards column F? 1 2 3 4 5 A Blank # 1 Blank # 2 Blank #3 Blank # 4 Blank # 5 Blank # 6 Blank # 7 Blank # 8 Blank # 9 8 Initial Values C3=C$2*3 C4=$C2*3 C5=$C$2*3 C 1 3 3 3 D 2 Blank # 1 Blank # 4 Blank #7 E 3 Blank # 2 Blank # 5 Blank # 8 4 Blank # 3 Blank # 6 Blank # 9 A/ F A A/ A N A 신 A A/arrow_forwardWhich of the following options represent a function that is entered in the highlighted cells to return the total value for a given item (AAA) and size (S)? A B 9 UNIT SOLD Size SOLD Price ($) 10 AAA 45 10 11 BBB M 21 20 12 AAA S 20 65 13 BBB M 41 40 14 15 Item Size TOTAL_Value 16 AAA 1750 a) =SUMPRODUCT((A10:A13=A16),(B10:B13=B16),C10:C13,D10:D13) O b) =SUMPRODUCT((A10:A13=A16)*(B10:B13=B16)+C10:C13,D10:D13) O c) =SUMPRODUCT((A10:A13=A16)*(B10:B13=B16)*C10:C13) d) =SUMPRODUCT((A10:A13=A16)*(B10:B13=B16)*C10:C13,D10:D13)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 LearningEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,
- COMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE L
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L