Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C# Application Write a C# program (A Console program) that prompts the user for the weight of the article, the zone to which it is

C# Application

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:

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 22nd European Conference Adbis 2018 Budapest Hungary September 2 5 2018 Proceedings Lncs 11019

Authors: Andras Benczur ,Bernhard Thalheim ,Tomas Horvath

1st Edition

3319983970, 978-3319983974

More Books

Students also viewed these Databases questions

Question

Write down the circumstances in which you led.

Answered: 1 week ago