Question: Show me the steps to solve Write a program called DeliveryCharges for the package delivery service in Exercise 4 . The program should again use
Show me the steps to solve Write a program called DeliveryCharges for the package delivery service in Exercise The program should again use an array that holds the zip codes of areas to which the company makes deliveries. Note that this array has been created for your and does not need to be changed. You will be using the zip codes and prices from the book Exercise "Delivery Charges" in this program.
string zips
;
double prices
;
A parallel array has also been created containing delivery charges that differ for each zip code.
Prompt a user to enter a zip code, and then display either a message indicating the price of delivery to that zip code or a message indicating that the company does not deliver to the requested zip code.
For example, if the zip code is in the delivery area, such as output Delivery to ok Delivery charge is $
If the zip code is not in the delivery area, such as output Sorry no delivery to
In order to prepend the $ to currency values, the program will need to use the CultureInfo.GetCultureInfo method. In order to do this, include the statement using System.Globalization; at the top of your program and format the output statements as follows: WriteLineThis is an example: value.ToStringC CultureInfo.GetCultureInfoenUS;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
