Question: In this exercise, you modify the Proper Case application from Exercise 6. If necessary, complete Exercise 6. Then, use Windows to make a copy of

In this exercise, you modify the Proper Case application from Exercise 6. If necessary, complete Exercise 6. Then, use Windows to make a copy of the Proper Case Solution folder. Rename the copy Proper Case Solution-Middle. Open the Proper Case Solution.sln file contained in the Proper Case Solution-Middle folder. Modify the application to allow the user to also enter his or her middle name or middle initial. The btnProper_Click procedure should display the full name, which might include a middle name or middle initial, in proper case. Save the solution and then start and test the application. (If the user enters “john smith” as the name, the application should display “John Smith”. If the user enters “john thomas smith”, the application should display “John Thomas Smith”. If the user enters “carol g. jones”, the application should display “Carol G. Jones”. If the user enters two spaces, “pam”, two spaces, “grace”, three spaces, “darwin”, and two spaces, the application should display “Pam Grace Darwin”.) 


Data from Exercise 6.

Open the Proper Case Solution.sln file contained in the VB2017\Chap07\Proper Case Solution folder. The interface provides a text box for entering a person’s first and last names. The btnProper_Click procedure should display the first and last names in the proper case. In other words, the first and last names should begin with an uppercase letter and the remaining letters in each name should be lowercase. If the user enters only one name, display the name in proper case. Be sure the btnProper_Click procedure works correctly if the user inadvertently enters more than one space between the first and last names. After displaying the name, the procedure should send the focus to the txtName control. Code the procedure. Save the solution and then start and test the application. (If the user enters “john smith” as the name, the application should display “John Smith”. If the user enters “carol” followed by three spaces and then “jones”, the application should display “Carol Jones”. If the user enters three spaces followed by “jack” and another three spaces, the application should display “Jack”.)

Step by Step Solution

3.44 Rating (163 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Microsoft Visual Studio Solution File Format Version 1200 Visual Studio 15 VisualStudioVers... 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_60b8c12285ac8_823594.pdf

180 KBs PDF File

Word file Icon

1814_60b8c12285ac8_823594.docx

120 KBs Word File

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