ZIP code + 4 validation using graphs


Hello,

I have to create a graph based program that will
validate a zip code given an expression to match eg. ddddd - dddd,
where d is a digit 0 - 9. I am new to graphs and don't know how to
accomplish this. I'm trying to make graph class, and this is what I
have so far using my textbook as a guide. Any help would be
appreciated: Thank you.

class
graph{public: bool isEmpty() const; void createGraph(); void
ClearGraph(); void depthFirstTravesal(); graph( int size =
0); ~graphType();protected: int maxSize; int gSize;private: void
dft(int v, bool visited[]);};void graph::createGraph(){ int
index; string zip; int vertex; int adjace
Anyone evey written a function to validate for a canadian or US
zipcode being entered? I'm trying to see if I can find one already on
the web to mix up with a US zip code to make a single useful
function...
Web Development
Hey again,
Does anyone have any idea how to validate a US phone
number and zip code?
Help apprectiated, as always :)
Development Tools & Services

I have been trying to get javascript to work for this but no luck.
What I am needing is: I have a drop down box for a person to select
COUNTRY either US or Canadian. If it is US then I need a zip code box
to display and validate zip for US. If they select Canada I need the
same box to validate for Canadian zip code. Any ideas or help with
this would be very much appreciated. Can this be done in .asp? If not
I can send the javascript code that I can't get to work if that would
help.

<select name="COUNTRY" id="COUNTRY">
<option value="United States">United States</option>
<option value="Canada">Canada</option>
Development

Hello,

I have to create a graph based program that will
validate a zip code given an expression to match eg. ddddd - dddd,
where d is a digit 0 - 9. I am new to graphs and don't know how to
accomplish this. I'm trying to make graph class, and this is what I
have so far using my textbook as a guide. Any help would be
appreciated: Thank you.

class
graph{public: bool isEmpty() const; void createGraph(); void
ClearGraph(); void depthFirstTravesal(); graph( int size =
0); ~graphType();protected: int maxSize; int gSize;private: void
dft(int v, bool visited[]);};void graph::createGraph(){ int
index; string zip; int vertex; int adjace
C & C++ & C#

I'm quite new to regex and trying to write a regular expression
that matches the ZIP codes in each state, but having a hard time. As
an example, Alaska has ZIP codes between 99501 and
99950, but this doesn't work:



99(5|6|7|8|9)(0|1|2|3|4|5|6|7|8|9)(0|1|2|3|4|5|6|7|8|9)


because it also matches 99951. Anyone done this
already, or mind helping me out with at least the pattern for this? href="http://www.structnet.com/instructions/zip_min_max_by_state.html"
rel="nofollow">Here are the ZIP code ranges for each state.

Web Development

i am trying to find the zip codes within given radius using api but
getting error to do that please help how to do that.where i am doing
wrong. any help will be appreciated. here is my code.



<script type="text/javascript">
$(document).ready(function () {
$('#Zip').on('focusout', function () {
getZipCodes();
});

$('#Distance').change(function () {
getZipCodes();
});
});
function getZipCodes() {
var Options = "";
var list = "";
$.ajax(
{
url:
"http://www.zipcodeapi.com/rest/PU0IIBtaJyEq6RcPDCnph3vYXT9PYcFO7FwPhZ01yErEvEu9gRyyU4wSYFHWSmLZ/radius.json/"+$('#Zip').val()+"/"
+ $('#Distance').val() +"/mile",
dataType: "json",
type: "GET",
success: function (response) {
for (var i = 0; i < response.results.length;
i++) {
//Options += "<option '" +
response.results[i].zip + "'>" + response.results[i].distance +
"</option>";
//list.push(response.results[i].zip);
list += response.results[i].zip_code + ",";
}
list = list.substring(0, list.length - 1);
$('#ZipList').val(list);
console.log(list);
//$("#Distance").html(Options);
},
error: function () {
alert("failure");
}
});
}
</script>
Web Development

- Technology - Languages
+ Webmasters
+ Development
+ Development Tools
+ Internet
+ Mobile Programming
+ Linux
+ Unix
+ Apple
+ Ubuntu
+ Mobile & Tablets
+ Databases
+ Android
+ Network & Servers
+ Operating Systems
+ Coding
+ Design Software
+ Web Development
+ Game Development
+ Access
+ Excel
+ Web Design
+ Web Hosting
+ Web Site Reviews
+ Domain Name
+ Information Security
+ Software
+ Computers
+ Electronics
+ Hardware
+ Windows
+ PHP
+ ASP/ASP.Net
+ C/C++/C#
+ VB/VB.Net
+ JAVA
+ Javascript
+ Programming
Privacy Policy - Copyrights Notice - Feedback - Report Violation 2018 © BigHow