This is the assignment-Write a C#.NET (call it Lab7) that performs the following:
The program contains an array that holds 10 ZIP codes to which a company delivers. Prompt the user of the program to input a ZIP code and then display a message on screen that indicates whether the ZIP code is one to which the company delivers or not. Finally display all ZIP codes in the array in descending order.
and this is what i have so far but I am lost atm.
public class ZipCodes;
}
public static void Main ()
{
int [] zipCodes = {07017,07050,07018,07019,07003,07200,07306,07304,07302,07495};
int x;
string entryString;
int entryZipCode;
if(textBox1.Text == zipCode[x].ToString)
label2.Text = "We ship to that zip code";
ConsoleWrite.Line( " Sorry we currently do not ship items to this zipCode");
entryString = Console.ReadLine ();
}
}
Can anyone tell me what I am doing wrong? I am really confused about this.