In C#, Write a program named CheckZips that is used by a package delivery service to check delivery areas. The program contains an array that holds the 10 zip codes of areas to which the company makes deliveries. (Note that this array is created for you and does not need to be changed.) Prompt a user to enter a zip code, and display a message indicating whether the zip code is in the company’s delivery area. For example if the user enters a zip code in the array, such as 60007, the output should be Delivery to 60007 ok. If the user enters a zip code not in the array, such as 60008, the output should be Sorry - no delivery to 6000
In C#, Write a
The program contains an array that holds the 10 zip codes of areas to which the company makes deliveries. (Note that this array is created for you and does not need to be changed.)
Prompt a user to enter a zip code, and display a message indicating whether the zip code is in the company’s delivery area.
For example if the user enters a zip code in the array, such as 60007, the output should be Delivery to 60007 ok.
If the user enters a zip code not in the array, such as 60008, the output should be Sorry - no delivery to 60008.
C#
A component-oriented, object-oriented programming language is C#. C# is a natural language for creating and utilising software components because it has language elements that directly support these ideas. Since its inception, C# has gained functionality to accommodate changing workloads and new methods of software development.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images