Question: Need help on this assignment for visual basic for the assignment the program needs to be aIn this assignment you will complete the Zip application.
Need help on this assignment for visual basic for the assignment the program needs to be aIn this assignment you will complete the Zip application.
The ZIP application validates a fivedigit
Postal Zip Code entered by the user. The GUI and most of the coding is complete. For the assignment,
you will code the click event handler for the Validate button from pseudocode provided in these
instructions. There is also an opportunity for extracredit. Here you must code the Zip textbox enter
and text changed event handlers. To begin the assignment, download the partially completed Zip
solution folder WK CP Zip Starter.zip from the Blackboard assignment, unzip the solution folder
and then modify it per the instructions in this document.
Validate Button Click event handler
The btnyalidate Click procedure should validate the ZIP code entered by the user. To be valid, the
first four digits in the ZIP code must be and the last digit must be or Use one selection
structure IF statement along with the Like operator to validate the ZIP code. Display the "Valid"
message if the ZIP code is valid; otherwise, display the "Not Valid" message. After displaying the
message, the procedure should send the focus to the txtziz control, thereby placing the cursor in the
Zip textbox. Begin by creating the btnValidate click event handler, then in the event handler
create the visual basic statements that implement the following pseudocode. NOTE: you
must use only one IF statement and the LIKE operator
Trim the leading and trailing spaces from the zip entered by the user
if first four characters of the zip are
and the last character is or then
display "Valid Zip" in the status label lblstatus
else
display "Invalid Zip" in the status label dblstatus
endif
Put the focus in the zip textbox txatzin
Zip Textbox Enter event optional extra credit
Create an Enter event handler for the Zip textbox control. In that event handler, select all the text in
the textbox. A textbox Enter event occurs when the user tabs or back tabs into the Zip textbox.
Zip Textbox TextChanged event optional extra credit
Create an TextChanged event handler for the Zip textbox control. In that event handler, clear the Zip
status label. A textbox JextChanged event occurs when the user changes the text in the Zip textbox.
Upon completion of the code changes required by the assignment, you must test the application to
make sure it works properly. Start the application then, at a minimum use the following table of test
cases to test the Zip application.
Create a programming assignment folder per the video in Week Reading and Course Materials. The
name of your assignment folder should be WK CP "your last name" In the folder, place the exe file
and an image of the Main Eqrom, vb file pdf or jpeg or Zip the folder per the video and attach it
to the assignment then submit. ZIP application validates a fivedigit Postal Zip Code entered by the user
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
