Pearson eText for Starting Out With Visual Basic -- Instant Access (Pearson+)
8th Edition
ISBN: 9780137506019
Author: Tony Gaddis, Kip Irvine
Publisher: PEARSON+
expand_more
expand_more
format_list_bulleted
Expert Solution & Answer
Chapter 3.3, Problem 3.12CP
1.
Explanation of Solution
Result:
- When the statement “dblResult = 6 + 3 * 5” execute, multiplication occurs first and then addition performs...
2.
Explanation of Solution
Result:
- When the statement “dblResult = 12 / 2 – 4” execute, division occurs first and then subtraction performs...
3.
Explanation of Solution
Result:
- When the statement “dblResult = 2 + 7 * 3 – 6” execute, multiplication occurs first, and then addition or subtraction performs...
4.
Explanation of Solution
Result:
- When the statement “dblResult = (2 + 4) * 3” execute, operation inside the bracket occurs first, and then multiplication performs...
5.
Explanation of Solution
Result:
- When the statement “dblResult = 10 / 3” execute, “10” is divided by “3”...
6.
Explanation of Solution
Result:
- When the statement “dblResult = 6 ^ 2” execute, the value “6” to the power of “5” is taken...
Expert Solution & Answer
Trending nowThis is a popular solution!
Students have asked these similar questions
1. Create a simple Java application to manage student information.
The application should have a text-based interface. The application should prompt the user for the following
information: Full Name, Degree, and Points. The user should be able to continuously enter student data until
an exit key is pressed (se the algorithm below). After the student has entered the student data the application
should display all student data entered.
Algorithm
1 Ask if the user if wants to stop entering data
2 Do the following until the student wants to stop entering data
2.1 Prompt the user to enter data for a new student
2.2 Save the new student data
2.3 Ask if the user wants to stop entering data
2 Show all student data entered
3 Exit program
Identify the error in the code shown in Figure 5-85 and explain how to correct the code.
If dblCommission >= 2500 Then
Dim intBonus As Integer
intBonus
500
Else
intBonus
= 0
End If
For 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)) {…
Chapter 3 Solutions
Pearson eText for Starting Out With Visual Basic -- Instant Access (Pearson+)
Ch. 3.1 - What TextBox control property holds text entered...Ch. 3.1 - Prob. 3.2CPCh. 3.1 - Prob. 3.3CPCh. 3.1 - Prob. 3.4CPCh. 3.2 - Prob. 3.5CPCh. 3.2 - Write a variable declaration for an Integer...Ch. 3.2 - Which of the following variable names are written...Ch. 3.2 - Prob. 3.8CPCh. 3.2 - What default value is assigned to each of the...Ch. 3.2 - Write a Date literal for the following date and...
Ch. 3.2 - Prob. 3.11CPCh. 3.3 - Prob. 3.12CPCh. 3.3 - Prob. 3.13CPCh. 3.3 - Prob. 3.14CPCh. 3.3 - What will be the final value of dblResult in the...Ch. 3.3 - What will be the final value of dblResult in the...Ch. 3.4 - Prob. 3.17CPCh. 3.4 - Prob. 3.18CPCh. 3.4 - Prob. 3.19CPCh. 3.4 - Will the following statement execute or cause a...Ch. 3.4 - Prob. 3.21CPCh. 3.4 - Assuming that intNumber is an integer variable,...Ch. 3.4 - Prob. 3.23CPCh. 3.4 - How would the following strings be converted by...Ch. 3.5 - Prob. 3.25CPCh. 3.5 - For each of the following numeric formats,...Ch. 3.5 - Prob. 3.27CPCh. 3.5 - In the following table, fill in the expected...Ch. 3.5 - Prob. 3.29CPCh. 3.5 - Prob. 3.30CPCh. 3.6 - Prob. 3.31CPCh. 3.6 - Where do you declare class-level variables?Ch. 3.7 - Prob. 3.33CPCh. 3.7 - Prob. 3.34CPCh. 3.7 - What kind of code does the try block of a...Ch. 3.7 - Prob. 3.36CPCh. 3.7 - Prob. 3.37CPCh. 3.7 - Prob. 3.38CPCh. 3.8 - Prob. 3.39CPCh. 3.8 - Prob. 3.40CPCh. 3.8 - Prob. 3.41CPCh. 3.8 - Prob. 3.42CPCh. 3.8 - Write a programming statement that gives the focus...Ch. 3.8 - Prob. 3.44CPCh. 3.8 - Prob. 3.45CPCh. 3.8 - Prob. 3.46CPCh. 3.8 - When a GroupBox control is deleted, what happens...Ch. 3.8 - Prob. 3.48CPCh. 3.8 - Prob. 3.49CPCh. 3.9 - Prob. 3.50CPCh. 3.9 - Prob. 3.51CPCh. 3.9 - Prob. 3.52CPCh. 3.9 - What Visual Basic function would you use to get...Ch. 3.9 - Prob. 3.54CPCh. 3.11 - Prob. 3.55CPCh. 3.11 - Prob. 3.56CPCh. 3.11 - What is the purpose of single-stepping through an...Ch. 3 - Prob. 1FIBCh. 3 - _____ is a commonly used prefix for TextBox...Ch. 3 - Prob. 3FIBCh. 3 - Prob. 4FIBCh. 3 - Prob. 5FIBCh. 3 - Prob. 6FIBCh. 3 - Prob. 7FIBCh. 3 - When Option Strict is set to ______ only widening...Ch. 3 - A(n) _____ is a specialized routine that performs...Ch. 3 - The _____ function converts an expression to an...Ch. 3 - Prob. 11FIBCh. 3 - Prob. 12FIBCh. 3 - When two operators share an operand, the operator...Ch. 3 - Prob. 14FIBCh. 3 - Prob. 15FIBCh. 3 - Prob. 16FIBCh. 3 - Prob. 17FIBCh. 3 - Prob. 18FIBCh. 3 - Prob. 19FIBCh. 3 - Prob. 20FIBCh. 3 - A(n) ______ is a container for other controls that...Ch. 3 - Prob. 22FIBCh. 3 - Prob. 23FIBCh. 3 - Prob. 24FIBCh. 3 - T F: The TextBox controls Text property holds the...Ch. 3 - Prob. 2TFCh. 3 - T F: The string concatenation operator...Ch. 3 - T F: A local variable may be accessed by any other...Ch. 3 - T F: When a string variable is created in memory,...Ch. 3 - T F: A variables scope is the time during which...Ch. 3 - T F: A variable declared inside a procedure is...Ch. 3 - Prob. 8TFCh. 3 - T F: If the CInt function cannot convert its...Ch. 3 - T F: The multiplication operator has higher...Ch. 3 - T F: A named constants value can be changed by a...Ch. 3 - T F: Only controls capable of receiving input,...Ch. 3 - Prob. 13TFCh. 3 - Prob. 14TFCh. 3 - Prob. 15TFCh. 3 - Prob. 16TFCh. 3 - Prob. 17TFCh. 3 - Prob. 18TFCh. 3 - Prob. 19TFCh. 3 - Prob. 20TFCh. 3 - Prob. 21TFCh. 3 - T F: While single-stepping through an applications...Ch. 3 - Prob. 1MCCh. 3 - Prob. 2MCCh. 3 - You declare a named constant with which keyword?...Ch. 3 - Prob. 4MCCh. 3 - Prob. 5MCCh. 3 - Prob. 6MCCh. 3 - Prob. 7MCCh. 3 - Prob. 8MCCh. 3 - Prob. 9MCCh. 3 - Prob. 10MCCh. 3 - Prob. 11MCCh. 3 - Prob. 12MCCh. 3 - Prob. 1SACh. 3 - How do you clear the contents of a TextBox...Ch. 3 - Prob. 3SACh. 3 - Create variable names that would be appropriate...Ch. 3 - Why should you always make sure that a String...Ch. 3 - Prob. 6SACh. 3 - How would the following strings be converted by...Ch. 3 - Prob. 8SACh. 3 - Prob. 9SACh. 3 - Assuming that the variable dblTest contains the...Ch. 3 - What is the focus when referring to a running...Ch. 3 - Prob. 12SACh. 3 - Prob. 13SACh. 3 - Prob. 14SACh. 3 - Prob. 15SACh. 3 - Prob. 16SACh. 3 - Prob. 17SACh. 3 - Describe three ways to set a breakpoint in an...Ch. 3 - Should a programming language automatically insert...Ch. 3 - Prob. 2WDTCh. 3 - Prob. 3WDTCh. 3 - Prob. 4WDTCh. 3 - Prob. 5WDTCh. 3 - Prob. 6WDTCh. 3 - Prob. 7WDTCh. 3 - Prob. 8WDTCh. 3 - How can you get your application to execute a...Ch. 3 - Prob. 10WDTCh. 3 - Prob. 11WDTCh. 3 - Prob. 1FTECh. 3 - Open the Chap3\ Error2\ Error2 project from the...Ch. 3 - Open the Chap3\ Error3\ Error3 project from the...Ch. 3 - Create a flowchart that shows the necessary steps...Ch. 3 - Prob. 2AWCh. 3 - Prob. 3AWCh. 3 - Prob. 4AWCh. 3 - Convert the flowchart you constructed in Exercise...Ch. 3 - Prob. 6AWCh. 3 - Prob. 7AWCh. 3 - The Miles per Gallon Calculator Problem Create an...Ch. 3 - There are three seating categories at a high...Ch. 3 - Prob. 3PCCh. 3 - A movie theater only keeps a percentage of the...Ch. 3 - Room Charge Calculator Error Display In the Room...Ch. 3 - Prob. 6PCCh. 3 - The Upper West View Yacht club sponsors sailboat...Ch. 3 - Create an application that converts Celsius to...Ch. 3 - Create an application that converts U.S. dollar...Ch. 3 - A retail company must file a monthly sales tax...Ch. 3 - A county collects property taxes on the assessment...Ch. 3 - Joe's Pizza Palace needs an application to...Ch. 3 - Assuming there are no accidents or delays, the...Ch. 3 - Create a VB application that lets the user enter...Ch. 3 - Many financial experts advise that property owners...Ch. 3 - Assume that a bag of cookies holds 40 cookies. The...
Knowledge Booster
Similar questions
- 4- Write an application that displays the following patterns separately. 1 1 54321 12 12 5432 123 123 本率本* 543 1234 1234 * ** 54 12345 12345 **本本* 5.arrow_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_forwardThe purpose of this exercise is to demonstrate the importance of testing an application thoroughly. Open the FixIt Solution.sln file contained in the VB2017\Chap04\FixIt Solution folder. The application displays a shipping charge that is based on the total price entered by the user, as shown in Figure 4-64. Start the application and then test it by clicking the Display shipping button. Notice that the Shipping charge box contains $13, which is not correct. Now, test the application using the following total prices: 100, 501, 1500, 500.75, 30, 1000.33, and 2000. Here too, notice that the application does not always display the correct shipping charge. (More specifically, the shipping charge for two of the seven total prices is incorrect.) Open the Code Editor window and correct the errors in the code. Save the solution and then start and test the application.arrow_forward
- Each of the following files in the Chapter.08 folder of your downloadable student files has syntax and/or logical errors. In each case, determine the problem, and fix the program. After you correct the errors, save each file using the same filename preceded with Fixed. For example, DebugEight1.cs will become FixedDebugEight1.cs. a. DebugEight1.cs b. DebugEight2.cs c. DebugEight3.cs d. DebugEight4.csarrow_forwardEach of the following files in the Chapter.04 folder of your downloadable student files has syntax and/or logical errors. In each case, determine the problem, and fix the program. After you correct the errors, save each file using the same filename preceded with Fixed. For example, save DebugFour1.cs as FixedDebugFour1.cs. a. DebugFour1.cs b. DebugFour2.cs c. DebugFour3.cs d. DebugFour4.csarrow_forwardIn this exercise, you modify the Grade Calculator application from this chapter’s Apply lesson. Use Windows to make a copy of the Grade Solution folder. Rename the copy Grade Solution-Intermediate. Open the Grade Solution.sln file contained in the Grade Solution-Intermediate folder. Open the CourseGrade.vb file. The DetermineGrade method should accept an integer that represents the total number of points that can be earned in the course. (Currently, the total number of points is 200: 100 points per test.) For an A grade, the student must earn at least 90% of the total points. For a B, C, and D grade, the student must earn at least 80%, 70%, and 60%, respectively. If the student earns less than 60% of the total points, the grade is F. Make the appropriate modifications to the DetermineGrade method and then save the solution. Unlock the controls on the form. Add a label control and a text box to the form. Change the label control’s Text property to “&Maximum points:” (without the quotation marks). Change the text box’s name to txtMax. Lock the controls and then reset the tab order. Open the form’s Code Editor window. The txtMax control should accept only numbers and the Backspace key. Code the appropriate procedure. The grade should be cleared when the user makes a change to the contents of the txtMax control. Code the appropriate procedure. Modify the frmMain_Load procedure so that each list box displays numbers from 0 through 200. Locate the btnDisplay_Click procedure. If the txtMax control does not contain a value, display an appropriate message. The maximum number allowed in the txtMax control should be 400; if the control contains a number that is more than 400, display an appropriate message. The statement that calculates the grade should pass the maximum number of points to the studentGrade object’s DetermineGrade method. Make the necessary modifications to the procedure. Save the solution and then start and test the application.arrow_forward
- Function Name: comboLock Parameters: num1 – a positive integer representing the first digit in the combination num2 – a positive integer representing the second digit in the combination num3 – a positive integer representing the third digit in the combination num4 – a positive integer representing the fourth digit in the combination num5 – a positive integer representing the fifth digit in the combination Description: You own a combination lock that only opens when presented with the correct sequence of odd and even numbers that are less than 10. Write a function that takes in 5 integers. Check whether they are in this order: odd, even, odd, even, odd. If they are in the correct order and all below 10, then print the string “You opened the lock.” Otherwise, print “You are locked out.” Test Cases: >>>comboLock(9, 2, 5, 4, 1) You opened the lock. >>>comboLock(1, 8, 3, 6, 8) “You are locked out.” comboLock(2, 2, 5, 6, 4) “You are locked out.” >>>comboLock(9, 8,…arrow_forwardimport random # credits_amount = 100# welcome_msg() while True:# If-Statement to test if the player has more than 0 credits# Ask the player how much credits he wants to use#credits_played = credits_amount # If-Statement to to see if player has enough credits to play the amount# Removes the amount of credits being played from total credits# Returns outcome of the game and adds winnings to total credits # If-Statement to ask the player if they want to play again# If True: Restarts the game# Else: Display how much the player cashed out, and close the game# Else: Display the insufficient credits message and close# Else: Display the insufficient credits message and close can you pleasee help, these are the guidelines i just dont know how to execute themarrow_forwardYour Name - Week 3 PA Calculations & Unique Numbers Please enter an integer value: 100 Please enter an integer value: 23 Please enter an integer value: 123 Please enter an integer value: 123 Please enter an integer value: 456 Please enter an integer value: 546 Please enter an integer value: 456 Please enter an integer value: 100 Please enter an integer value: 32 Please enter an integer value: 23 The count of integers entered is: 10 The sum of integers entered is: 1982 The average of integers entered is: 198 The count of unique integers entered is: 6 The sum of unique integers entered is: 1280 The average of unique integers entered is: 213arrow_forward
- Professor Zak allows students to drop the four lowest scores on the ten 100-point quizzes given during the semester. Create the pseudo code for an application that accepts a student name and 10 quiz scores. Output the student’s name and total points for the student’s six highest-scoring quizzes. Modify the your pseudocode using the following flowchart, to display the student's mean and median scores on the six best quizzes.arrow_forwardWrite an application named OddNums that displays all the odd numbers from 1 through 99.arrow_forwardWhich is the correct syntax for an assertEqual statement that will return a successful message for the function shown below: function [vals] = mystery(vec) vals = vec(1:5); %3D endarrow_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 LearningLINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.Computer ScienceISBN:9781337569798Author:ECKERTPublisher:CENGAGE LProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage
- Microsoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:9781337569798
Author:ECKERT
Publisher:CENGAGE L
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT