Question: In this exercise, you modify the Check Digit application from this chapters Apply lesson. Use Windows to make a copy of the Check Digit Solution

In this exercise, you modify the Check Digit application from this chapter’s Apply lesson. Use Windows to make a copy of the Check Digit Solution folder. Rename the copy Check Digit Solution-Hyphens. Open the Check Digit Solution.sln file contained in the Check Digit Solution-Hyphens folder. 

a. Modify the txtIsbn_KeyPress procedure to allow the user to also enter hyphens. 

b. Before verifying the length of the ISBN entered by the user, the btnAssign_Click procedure should assign the ISBN (without any hyphens) to the strIsbn variable. Make the appropriate modifications to the procedure. 

c. When displaying the ISBN in the lblFinalIsbn control, the btnAssign_Click procedure should insert a hyphen after the third number, the fourth number, the seventh number, and the twelfth number (for example, 978-1-337-10212-4). Make the appropriate modifications to the procedure. 

d. Save the solution and then start and test the application. (If the user enters 978-1-285-86026, with or without the hyphens, the btnAssign_Click procedure should display 978-1-285-86026-8.) 

Step by Step Solution

3.47 Rating (170 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Name Check Digit Project Purpose Assign a check digit to an ISBN Programmer on Option Explicit On Option Strict On Option Infer Off Public Class frmMa... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (2 attachments)

PDF file Icon

1814_60b8c12285678_823575.pdf

180 KBs PDF File

Word file Icon

1814_60b8c12285678_823575.docx

120 KBs Word File

Students Have Also Explored These Related Programming Microsoft Visual Basic Questions!