Question: Write a C# program (A Console program) that prompts the user for the weight of the article, the zone to which it is going and
Write a C# program (A Console program) that prompts the user for the weight of the article, the zone to which it is going and whether it should go by air or it is local, and then print out the correct stamp. Test your program with the following scenario.
Create a C# Stamp class. Afterwards test your program with the scenario given below:
1. Create a Local stamp for an article weighing 2 oz. to zone 3.
2. Create an Air Mail stamp for an article weighing 2 oz. to zone 2.
3. Create a Local stamp for an article weighing oz. to zone 1.
4. Create a Local stamp for an article weighing 0.58 oz. to zone 1.
5. Create a Local stamp for an article weighing 0.56 oz. to zone 2.
6. Create an Air mail stamp for an article weighing 1.0 oz. to zone 1 All mail (Local and Air) is divided in to three zones.
If the weight of the mail is ounce or less, all local mail (in all three zones) must have a rate of $0.49. For the first ounce or less, for all three zones, all air mail must have a rate of $0.95. Any mail more than ounce is subjected to an additional charge. SAMPLE OUTPUT:
| weight | FIRST 1/2 ounce or less | For every next 1/2 ounce or less |
| zone | local air mail | local air mail |
| zone 1 | 0.49 0.95 | 0.49*.50 0.95*0.50 |
| zone 2 | 0.49 0.95 | 0.49*0.65 0.95*0.60 |
| zone 3 | 0.49 0.95 | 0.49*0.80 0.95*0.90 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
