Programming Help
It's nice to have such tricks & tips in ubuntu.
But i want answers for following urgently Pleas.....
1)What according to you will be the most important innovation/invention in the next ten years? Provide appropriate reasoning for your conclusion.
*******************************************************************
2)
<H2 style="MARGIN: auto 0in">The Problem
You will be given an address in a string, you need to parse the address from the string and return the structure Address.
Signature:
Address parseAddress(String address)
Input:
String with address(e.g. “Lunkad Tower, 6th floor, \r\n Viman Nagar, \r\n Pune 411014")
Output:
The structure Address
public class Address
{
public string Street {get;set;}; // Lunkad Tower, 6th floor
public string Locality {get;set;}; // Viman Nagar
public string City {get;set;}; // Pune
public string State {get;set;}; // MH, Maharashtra
public string PostalCode {get;set;}; // 60611
public string Country {get;set;}; // e.g. India, IN
}
*********************************************
3)
Explain the following 2 regular expressions. Where would they be used? What potential problems do you foresee in using them? Also provide a sample input for each of the regular expressions.
1. [a-zA-Z]{5}\d{4}[a-zA-Z]{1}
2. ^[^<>&~\s^%A-Za-z\\][^A-Za-z%^\\<>]{1,25}$
***************************************************************
</H2>