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 five-digit
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 pseudo-code provided in these
instructions. There is also an opportunity for extra-credit. Here you must code the Zip textbox enter
and text changed event handlers. To begin the assignment, download the partially completed Zip
solution folder (WK13 C7P 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 4210, and the last digit must be 2,3, or 4. 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 pseudo-code. 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 "4210"
, and the last character is 2,3 or 4 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 1 Reading and Course Materials. The
name of your assignment folder should be WK13 C7P "your last name" In the folder, place the .exe file
and an image of the Main Eqrom, vb file (pdf or .jpeg or .pgg). Zip the folder per the video and attach it
to the assignment then submit. ZIP application validates a five-digit Postal Zip Code entered by the user
Need help on this assignment for visual basic for

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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

Students Have Also Explored These Related Programming Questions!