Skip to content

ndumezulu-ngwenya/Rust-Coding-Finance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rust-Coding-Finance

Find the greatest common divisor for a given array of integers.

Given the attached addresses.json file which contains an array of addresses, do the following:

a. Write a function to return a pretty print version of an Address in the format: Type: Line details - city - province/state - postal code – country.

b. Write a function to pretty print all the addresses in the attached file.

c. NA

d. Write a function to validate an Address.

i. A valid Address must consist of a numeric postal code, a country, and at least one Address line that is not blank or null.

ii. If the country is ZA, then a province is required as well.

e. For each Address in the attached file, determine if it is valid or not, and if not give an indication of what is invalid in a message format of your choice.

About

This JavaScript project manages addresses: it formats them neatly, validates their structure, and checks if they meet specified criteria, like having a numeric postal code and country.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages