New Semester
Started
Get
50% OFF
Study Help!
--h --m --s
Claim Now
Question Answers
Textbooks
Find textbooks, questions and answers
Oops, something went wrong!
Change your search query and then try again
S
Books
FREE
Study Help
Expert Questions
Accounting
General Management
Mathematics
Finance
Organizational Behaviour
Law
Physics
Operating System
Management Leadership
Sociology
Programming
Marketing
Database
Computer Network
Economics
Textbooks Solutions
Accounting
Managerial Accounting
Management Leadership
Cost Accounting
Statistics
Business Law
Corporate Finance
Finance
Economics
Auditing
Tutors
Online Tutors
Find a Tutor
Hire a Tutor
Become a Tutor
AI Tutor
AI Study Planner
NEW
Sell Books
Search
Search
Sign In
Register
study help
computer science
programming with microsoft visual basic 2015
Programming With Microsoft Visual Basic 2015 7th Edition Diane Zak - Solutions
In this exercise, you modify the Savings Account application from this lesson. Use Windows to make a copy of the Savings Solution folder. Rename the copy Savings Solution-Intermediate. Open the Savings Solution (Savings Solution.sln) file contained in the Savings Solution-Intermediate folder. In
Which of the following statements pauses program execution for one second?a. System.Threading.Thread.Pause(1000)b. System.Threading.Thread.Pause(1)c. System.Threading.Thread.Sleep(1000)d. System.Threading.Thread.Sleep(100)
Create an application, using the following names for the solution and project, respectively: President Solution and President Project. Save the application in the VB2015\ Chap06 folder. Add the names of five U.S. presidents of your choosing to a list box. When the user clicks a name in the list
Write a Visual Basic Do clause that processes the loop instructions as long as the value in the strName variable is not “Done” (in any case). Use the While keyword. Then rewrite the Do clause using the Until keyword.
How many times will the MessageBox.Show method in the following code be processed? Dim intCount As Integer Do While intCount > 4 MessageBox.Show("Hello") intCount += 1 Loopa. Zerob. Onec. Fourd. Five
In this exercise, you modify the Clock application from this lesson. Use Windows to make a copy of the Clock Solution folder. Rename the copy Clock Solution Intermediate. Open the Clock Solution (Clock Solution.sln) file contained in the Clock Solution-Intermediate folder. In the btnStart_Click
In this exercise, you modify the application from Exercise 2. Use Windows to make a copy of the Zip Solution folder. Rename the copy Modified Zip Solution. Open the Zip Solution (Zip Solution.sln) file contained in the Modified Zip Solution folder. Modify the list box’s SelectedValueChanged
Write a Visual Basic Loop clause that processes the loop instructions as long as the value in the strContinue variable is either Y or y. Use the While keyword. Then rewrite the Loop clause using the Until keyword.
In this exercise, you modify the Savings Account application from this lesson. Use Windows to make a copy of the Savings Solution folder. Rename the copy Savings Solution-Introductory. Open the Savings Solution (Savings Solution.sln) file contained in the Savings Solution-Introductory folder. In
In this exercise, you create an application that displays the ZIP code (or codes) corresponding to the city name selected in a list box. The city names and ZIP codes are shown in Figure 6-51. Create the application, using the following names for the solution and project, respectively: Zip Solution
Write a Visual Basic Do clause that stops the loop when the value in the intOrdered variable is greater than the value in the intOnHand variable. Use the Until keyword. Then rewrite the Do clause using the While keyword.
Which of the following statements can be used to code a loop whose instructions you want processed 10 times?a. Do...Loopb. For...Nextc. Either a or b
In this exercise, you modify the Clock application from this lesson. Use Windows to make a copy of the Clock Solution folder. Rename the copy Clock Solution Introductory. Open the Clock Solution (Clock Solution.sln) file contained in the Clock Solution-Introductory folder. Open the Code Editor
In this exercise, you modify the Monthly Payment application from this lesson. Use Windows to make a copy of the Payment Solution folder. Rename the copy Payment Solution-DoLoop. Open the Payment Solution (Payment Solution.sln) file contained in the Payment Solution-DoLoop folder. Change both
Write a Visual Basic Do clause that processes the loop instructions as long as the value in the intNum variable is less than or equal to the number 100. Use the While keyword. Then rewrite the Do clause using the Until keyword.
Which of the following clauses stops the loop when the value in the intPopulation variable is less than the number 5000?a. Do While intPopulation >= 5000b. Do Until intPopulation < 5000c. Loop While intPopulation >= 5000d. All of the above
Open the Golf Solution (Golf Solution.sln) file contained in the VB2015\Chap04\Golf Solution-Ex18 folder. Test the application using the data shown in Exercise 17’s Figure 5-39. Modify the code to produce the correct results.Data From Exercise 17: Membership status member member nonmember Day
Open the Golf Solution (Golf Solution.sln) file contained in the VB2015\Chap04\Golf Solution-Ex17 folder. Test the application using the data shown in Figure 5-39. Modify the code to produce the correct results. Membership status member member nonmember Day information weekday weekend weekday
Open the VB2015\Chap05\Canton Solution\Canton Solution (Canton Solution.sln) file. Canton Ltd. sells economic development software to cities around the country. The company is having its annual users’ forum next month. The price per person depends on the number of people a user registers. The
Explain the meaning of the term desk-checking.
Open the VB2015\Chap05\Jetters Solution\Jetters Solution (Jetters Solution.sln) file. The txtPrice control should accept only numbers, the period, and the Backspace key; code the appropriate procedure. The txtQuantity control should accept only numbers and the Backspace key; code the appropriate
List the four errors commonly made when writing selection structures. Which errors produce the correct results but in a less efficient way?
In this exercise, you modify the Carillo application from Exercise 13. Use Windows to make a copy of the Carillo Solution folder. Rename the copy Modified Carillo Solution. Open the Carillo Solution (Carillo Solution.sln) file contained in the Modified Carillo Solution folder. In the btnCalc_Click
What will the code in Figure 5-30 assign to the strStatus variable when the intLevel variable contains the number 1?a. Bronzeb. Goldc. Platinumd. Silver Select Case intLevel Case 1, 2 strStatus = "Bronze" Case 3 To 5 strStatus - "Silver" Case 6, 7 strStatus = "Gold" Case Else strStatus "Platinum"
Open the VB2015\Chap05\Carillo Solution\Carillo Solution (Carillo Solution.sln) file. The txtSales control should accept only numbers, the period, and the Backspace key; code the appropriate procedure. The btnCalc_Click procedure calculates a 3.5% commission when the annual sales are greater than
What will the code in Figure 5-30 assign to the strStatus variable when the intLevel variable contains the number 7?a. Bronzeb. Goldc. Platinumd. Silver Select Case intLevel Case 1, 2 strStatus = "Bronze" Case 3 To 5 strStatus - "Silver" Case 6, 7 strStatus = "Gold" Case Else strStatus "Platinum"
Open the VB2015\Chap05\Bonus Solution\Bonus Solution (Bonus Solution.sln) file. Use the Select Case statement to finish coding the Calculate button’s Click event procedure. Use the partial flowchart shown in Figure 5-38 as a guide. Test the application appropriately. code 1, 2, 3, 4, 5 7,8, 9, 10
What will the code in Figure 5-30 assign to the strStatus variable when the intLevel variable contains the number 8?a. Bronzeb. Goldc. Platinumd. Silver Select Case intLevel Case 1, 2 strStatus = "Bronze" Case 3 To 5 strStatus - "Silver" Case 6, 7 strStatus = "Gold" Case Else strStatus "Platinum"
The purpose of this exercise is to demonstrate the importance of testing an application thoroughly. Open the VB2015\Chap05\Debug Solution\Debug Solution (Debug Solution.sln) file. The application displays a shipping charge that is based on the total price entered by the user, as shown in Figure
Does the algorithm in Figure 5-37 produce the same results as the solution shown in Figure 5-5 in this lesson? If not, why not?Figure 5-37 Algorithm for Exercise 11 1. shoot the basketball 2. if the basketball did not go through the hoop say "Missed it!" else if the basketball hit the rim say "So
What will the code in Figure 5-30 assign to the strStatus variable when the intLevel variable contains the number 4?a. Bronzeb. Goldc. Platinumd. Silver Select Case intLevel Case 1, 2 strStatus = "Bronze" Case 3 To 5 strStatus - "Silver" Case 6, 7 strStatus = "Gold" Case Else strStatus "Platinum"
This exercise will show you how to generate and display random numbers containing decimal places. Open the Random Double Solution (Random Double Solution.sln) file contained in the VB2015\Chap05\Random Double Solution folder.a. Open the Code Editor window. You can use the Random.NextDouble method
If the blnSenior variable contains the Boolean value False, then the Not blnSenior condition will evaluate to______________________.a. Trueb. False
Does the algorithm in Figure 5-36 produce the same results as the solution shown in Figure 5-5 in this lesson? If not, why not?Figure 5-36 Algorithm for Exercise 1 1. shoot the basketball 2. if the basketball hit the rim say "So close" else if the basketball went through the hoop say "I did it!"
Which of the following Case clauses is valid in a Select Case statement whose selectorExpression is an Integer variable named intCode?a. Case Is > 7b. Case 3, 5c. Case 1 To 4d. All of the above
In this exercise, you create an application for Sunnyside Products. The application displays the price of an order based on the number of units ordered and the customer’s status (either wholesaler or retailer). The price per unit is shown in Figure 5-76. Create an application, using the following
Which of the following events occurs when a check box is clicked?a. Checkb. Checkedc. CheckedChanged. CheckedChanged
Does the algorithm in Figure 5-35 produce the same results as the solution shown in Figure 5-4 in this lesson? If not, why not?Figure 5-35Figure 5-4 1. shoot the basketball 2. if the basketball did not go through the hoop say “Missed it!" else say 1 did it!" if Maleek was either inside or on the
Create an application, using the following names for the solution and project, respectively: Marshall Solution and Marshall Project. Save the application in the VB2015\ Chap05 folder. Create the interface shown in Figure 5-75. Each salesperson at Marshall Sales Corporation receives a commission
Create an application, using the following names for the solution and project, respectively: Songs Solution and Songs Project. Save the application in the VB2015\Chap05 folder.a. Create the interface shown in Figure 5-59. The four radio buttons contain song titles. The Artist Name button’s Click
Which of the following If clauses will evaluate to True when the Bonus check box is selected?a. If chkBonus.Check = True Thenb. If chkBonus.Checked Thenc. If chkBonus.Selected = True Thend. If chkBonus.Selected Then
Does the algorithm in Figure 5-34 produce the same results as the solution shown in Figure 5-4 in this lesson? If not, why not?
What will the code in Figure 5-29 assign to the lblStatus control when the strLevel variable contains the string “3”?a. Bronzeb. Goldc. Platinumd. Silver If strLevel = "1" OrElse strLevel = "2" Then 1b1status. Text "Bronze" ElseIf strlevel = "3" OrElse strLevel = "4" Then 1b1status.Text =
Create an application, using the following names for the solution and project, respectively: Kerry Cable Solution and Kerry Cable Project. Save the application in the VB2015\Chap05 folder. Kerry Cable Company wants you to create an application that displays a customer’s monthly cable bill, which
Shopper Stoppers wants you to create an application that displays the number of reward points a customer earns each month. The reward points are based on the customer’s membership type and total monthly purchase amount, as shown in Figure 5-58. Use the following names for the solution and
Open the Movie Ticket Solution (Movie Ticket Solution.sln) file contained in the VB2015\Chap05\Movie Ticket Solution folder. If necessary, open the designer window. Use the If...Then...Else statement to code the If...Then...Else button’s Click event procedure. Use the Select Case statement to
What will the code in Figure 5-29 assign to the lblStatus control when the strLevel variable contains the string “10”?a. Bronzeb. Goldc. Platinumd. Silver If strLevel = "1" OrElse strLevel = "2" Then 1b1status. Text "Bronze" ElseIf strlevel = "3" OrElse strLevel = "4" Then 1b1status.Text =
Create an application, using the following names for the solution and project, respectively: MacroTech Solution and MacroTech Project. Save the application in the VB2015\Chap05 folder. Create the interface shown in Figure 5-73. MacroTech sells a software package that is available in three editions.
In this exercise, you modify the Treeline Resort application from this lesson. Use Windows to make a copy of the Treeline Solution folder. Rename the copy Modified Treeline Solution. Open the Treeline Solution (Treeline Solution.sln) file contained in the Modified Treeline Solution folder.a.
Rewrite the code from Exercise 5 using the Select Case statement.Data From Exercise 5Write the Visual Basic code that displays the message “Use the Kanton room” when the number of seminar participants is at least 75. When the number is 40 through 74, display the message “Use the Harris
What will the code in Figure 5-29 assign to the lblStatus control when the strLevel variable contains the string “5”?a. Bronzeb. Goldc. Platinumd. Silver If strLevel = "1" OrElse strLevel = "2" Then 1b1status. Text "Bronze" ElseIf strlevel = "3" OrElse strLevel = "4" Then 1b1status.Text =
In this exercise, you modify the application from Exercise 5. Use Windows to make a copy of the Guessing Game Solution folder. Rename the copy Modified Guessing Game Solution. Open the Guessing Game Solution (Guessing Game Solution.sln) file contained in the Modified Guessing Game Solution folder.
Willow Hill Athletic Club offers personal training sessions to its members. The sessions are either 30 or 60 minutes in length, and members can sign up to meet either two or three times per week. The application’s interface is shown in Figure 5-57. Each 30-minute session costs $17.50; each
Write the Visual Basic code that displays the message “Use the Kanton room” when the number of seminar participants is at least 75. When the number is 40 through 74, display the message “Use the Harris room”. When the number is 10 through 39, display the message “Use the small conference
What will the code in Figure 5-29 assign to the lblStatus control when the strLevel variable contains the string “2”?a. Bronzeb. Goldc. Platinumd. Silver If strLevel = "1" OrElse strLevel = "2" Then 1b1status. Text "Bronze" ElseIf strlevel = "3" OrElse strLevel = "4" Then 1b1status.Text =
Create an application, using the following names for the solution and project, respectively: Guessing Game Solution and Guessing Game Project. Save the application in the VB2015\Chap05 folder. The application should generate a random integer from 1 through 30, inclusive. It then should give the
If the txtAge control is empty, the blnIsOk = Integer.TryParse(txtAge. Text, intAge) statement will store ____________________ in the intAge variable and also assign ____________________ to the blnIsOk variable.a. 0, Trueb. 0, Falsec. False, the empty stringd. The empty string, False
In this exercise, you code an application that allows the user to select one radio button from each of two groups: an English group and a Spanish group. Open the VB2015\ Chap05\Language Solution\Language Solution (Language Solution.sln) file. When a radio button is selected, its CheckedChanged
Write the Visual Basic code for the algorithm shown in Figure 5-10 in this lesson. The car classification (either S for standard or L for luxury) is stored, in uppercase, in a variable named strClass. The club membership information (either M for member or N for nonmember) is stored, in uppercase,
What will the code in Figure 5-28 assign to the dblRate variable when the dblSales variable contains the number 1000?a. 0b. 0.05c. 0.1d. 0.15 If db1Sales
Create a Visual Basic Windows application. Use the following names for the solution and project, respectively: Concert Solution and Concert Project. Save the application in the VB2015\Chap05 folder. Create the interface shown in Figure 5-72. The three text boxes should be invisible when the
Which of the following statements generates a random integer from 1 to 25, inclusive?a. intNum = randGen.Next(1, 25)b. intNum = randGen.Next(1, 26)c. intNum = randGen(1, 25)d. intNum = randGen.NextNumber(1, 26)
In this exercise, you modify the Brazilian Tea application from Exercise 2. Use Windows to make a copy of the Tea Solution folder. Rename the copy Modified Tea Solution. Open the Tea Solution (Tea Solution.sln) file contained in the Modified Tea Solution folder. Use the Select Case statement
Which capitalization should be used for the text appearing in check boxes and radio buttons?a. Sentence capitalizationb. Book title capitalizationc. Either book title capitalization or sentence capitalization
What is wrong with the algorithm shown in Figure 5-33? 1. shoot the basketball 2. if the basketball went through the hoop say "I did it!" else if the basketball did not go through the hoop say "Missed it" end if end if
What will the code in Figure 5-28 assign to the dblRate variable when the dblSales variable contains the number 999.75?a. 0b. 0.05c. 0.1d. 0.15 If db1Sales
Create an application, using the following names for the solution and project, respectively: Zander Solution and Zander Project. Save the application in the VB2015\ Chap05 folder. Create the interface shown in Figure 5-71. The text box should accept only numbers, the period, and the Backspace key.
In this exercise, you create an application for Brazilian Tea, which sells both hot and iced tea in three different cup sizes. Use the following names for the solution and project, respectively: Tea Solution and Tea Project. Save the application in the VB2015\ Chap05 folder. The application’s
Caroline is at a store’s checkout counter. She’d like to pay for her purchase using either her credit card or her debit card, but preferably her credit card. However, she is not sure whether the store accepts either card. If the store doesn’t accept either card, she will need to pay cash for
What will the code in Figure 5-28 assign to the dblRate variable when the dblSales variable contains the number 0?a. 0b. 0.05c. 0.1d. 0.15 If db1Sales
Create an application, using the following names for the solution and project, respectively: Lottery Solution and Lottery Project. Save the application in the VB2015\ Chap05 folder. Create the interface shown in Figure 5-70. The image for the picture box is stored in the
Which of the following statements will hide the picCar control?a. picCar.Hideb. picCar.Hide = Truec. picCar.Invisible = Trued. picCar.Visible = False
In this exercise, you modify the Treeline Resort application from this lesson. Use Windows to make a copy of the Treeline Solution folder. Rename the copy Treeline Solution-Select Case. Open the Treeline Solution (Treeline Solution.sln) file contained in the Treeline Solution-Select Case folder. In
What will the code in Figure 5-28 assign to the dblRate variable when the dblSales variable contains the number 459.99?a. 0b. 0.05c. 0.1d. 0.15 If db1Sales
Open the VB2015\Chap05\Riley Solution\Riley Solution (Riley Solution.sln) file. The btnCalc_Click procedure should display the message “Please enter the price.” in a message box when the contents of the txtPrice control cannot be converted to a Double number. Otherwise, it should display the
If the txtPrice control contains the value 75, what value will the Decimal.TryParse(txtPrice.Text, decPrice) method return?a. Falseb. Truec. 75d. 75.00
In this exercise, you learn how to use a text box’s CharacterCasing property. Open the VB2015\Chap04\CharCase Solution\CharCase Solution (CharCase Solution.sln) file.a. Open the Code Editor window and study the code contained in the btnDisplay_Click procedure. The code compares the contents of
In this exercise, you modify the commission application from Exercise 17. Use Windows to make a copy of the Commission Solution folder. Rename the copy Modified Commission Solution. Open the Commission Solution (Commission Solution.sln) file contained in the Modified Commission Solution folder. The
Create an application that displays a salesperson’s monthly commission amount, given his or her monthly sales amount and commission ID. Salespeople who have one of the following commission IDs receive a 15% commission: A1, B2, C3. All other salespeople receive a 12% commission. Use the following
In this exercise, you modify the Sam’s Paper Shoppe application from Exercise 12. Use Windows to make a copy of the Sam Solution folder. Rename the copy Modified Sam Solution. Open the Sam Solution (Sam Solution.sln) file contained in the Modified Sam Solution folder. Change the code to give a
Create an application that determines whether a customer is entitled to free shipping when ordering from JimJoe’s Web site. JimJoe’s does not charge shipping on any order when the customer belongs to the JimJoe’s Free Shipping Club. It also doesn’t charge shipping for any order totaling
Create an application that determines whether a customer is entitled to free shipping when ordering from Savannah’s Web site. Savannah’s does not charge shipping when the customer uses his or her Savannah’s credit card to pay for an order totaling $100 or more. Customers who do not meet these
Open the VB2015\Chap04\Debug Solution\Debug Solution (Debug Solution.sln) file. Open the Code Editor window and review the existing code. The btnCalc_Click procedure should calculate a 5% commission when the code entered by the user is 1, 2, or 3 and, at the same time, the sales amount is greater
Create an application that displays a salesperson’s annual bonus amount, given his or her annual sales amount. The bonus rate is 10% when the sales amount is at least $25,000; otherwise, the bonus rate is 8%. Use the following names for the solution and project, respectively: Bonus Solution and
In this exercise, you learn how to specify the maximum number of characters that can be entered in a text box. Open the VB2015\Chap04\Zip Solution\Zip Solution (Zip Solution.sln) file. Click the txtZip control, and then search the Properties list for a property that allows you to specify the
Sam’s Paper Shoppe wants you to create an application that allows a salesclerk to enter an item’s price and the quantity purchased by a customer. When the quantity purchased is greater than 5, the customer is given a 15% discount. The application should display the total amount the customer
The expression 5 * 4 > 6 ˆ 2 AndAlso True OrElse False evaluates to _____________________.a. Trueb. False
Create an application, using the following names for the solution and project, respectively: Jerome Solution and Jerome Project. Save the application in the VB2015\ Chap04 folder. Create the interface shown in Figure 4-58. The Calculate button’s Click event procedure should add the item price to
In this exercise, you modify one of the Gross Pay Calculator applications from the lesson. Use Windows to make a copy of the Gross Solution-Dual folder. Rename the copy Modified Gross Solution-Dual. Open the Gross Solution (Gross Solution.sln) file contained in the Modified Gross Solution-Dual
The expression 5 * 4 > 6 ˆ 2 evaluates to _____________________.a. Trueb. False
In this exercise, you modify the wedding reception application from Exercise 9. The modified application will display the number of rectangular tables needed to seat the bridal party as well as the number of round tables required for the guests. Each rectangular table can accommodate a maximum of
In this exercise, you modify the Net Income or Loss application from the lesson. Use Windows to make a copy of the Net Solution folder. Rename the copy Modified Net Solution. Open the Net Solution (Net Solution.sln) file contained in the Modified Net Solution folder. Locate the btnCalc_Click
The expression 7 + 3 * 2 > 5 * 3 AndAlso True evaluates to _____________________.a. Trueb. False
Create an application that displays the number of round tables needed to seat only the guests at a wedding reception. (In other words, the bridal party does not need to be included in this calculation.) Each round table can accommodate a maximum of 8 guests. The interface should provide a text box
In this exercise, you modify one of the Gross Pay Calculator applications from the lesson. Use Windows to make a copy of the Gross Solution-Single folder. Rename the copy Modified Gross Solution-Single. Open the Gross Solution (Gross Solution.sln) file contained in the Modified Gross
The expression 8 >= 4 + 6 OrElse 5 > 6 AndAlso 4 < 7 evaluates to _____________________.a. Trueb. False
Patti Garcia owns two cars, referred to as Car 1 and Car 2. She wants to drive one of the cars to her vacation destination, but she’s not sure which one (if any) would cost her the least amount in gas. Use the following names for the solution and project, respectively: Car Solution and Car
A procedure should calculate a 2.5% commission when the strCommType variable contains the string “Prime” (in any case); otherwise, it should calculate a 2% commission. The commission is calculated by multiplying the commission rate by the contents of the dblSales variable. Display the
Write an If...Then...Else statement that displays the string “Cat” in the lblAnimal control when the strAnimal variable contains the letter “C” (in any case); otherwise, display the string “Dog”. Also draw the flowchart.
The expression 6 + 3 > 7 AndAlso 11 > 2 * 5 evaluates to _____________________.a. Trueb. False
Showing 1600 - 1700
of 1847
First
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Step by Step Answers