Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Java The following phone shipping cost and information will apply: zip codes wit

ID: 3592539 • Letter: J

Question

Java

The following phone shipping cost and information will apply:

zip codes within 325XX - free shipping

Continental United States - 5.00 shipping cost.

zip codes for Alaska (995xx - 999xx) or Hawaii (967xx - 968xx) - 10.00 shipping fee.

Regular Expressions

Zip code input should be ONLY 5 DIGITS.

Phone numbers must be in the form (xxx) xxx-xxxx.

Must Use the Regular Expressions to test the zip code and phone number. Use User Defined Exception that will require the user to enter zip or phone in correct format before continuing.

Customer Information must include: Customer's name, address (street, city, state, zip), phone number,customerID number.

I just need help searching for the zip code and the phone number using the regex library. Should i Use a switch statement for the 325xx, alaska and hawaii zip codes? This will be part of a larger project and I am having trouble deciding what to put in the class heading (I think thats what its called) the public class() section.

Explanation / Answer

zip codes within 325XX - free shipping

Continental United States - 5.00 shipping cost.

zip codes for Alaska (995xx - 999xx) or Hawaii (967xx - 968xx) - 10.00 shipping fee.

Regular Expressions

Zip code input should be ONLY 5 DIGITS.

Phone numbers must be in the form (xxx) xxx-xxxx.

Must Use the Regular Expressions to test the zip code and phone number. Use User Defined Exception that will require the user to enter zip or phone in correct format before continuing.

Customer Information must include: Customer's name, address (street, city, state, zip), phone number,customerID number.

I just need help searching for the zip code and the phone number using the regex library. Should i Use a switch statement for the 325xx, alaska and hawaii zip codes? This will be part of a larger project and I am having trouble deciding what to put in the class heading (I think thats what its called) the public class() section.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote