Create a program that includes the following requirements: create a

In C# only :

Create a program that includes the following requirements: Create a CoffeeOrder class  

Private class members for:

order number

ingredient

constant double PRICEOFCOFFEE = 1.95

constant double price additives for cream and sugar, cream and artificial sugar, milk and sugar, milk and artificial sugar at.25, .40, .30, .40 respectively.

double order price

other class variables as needed

Public class methods:

a method to get the data for each individual CoffeeOrder object in the array of objects instantiated in Main.

the CoffeeOrder get data method will present a menu that looks like the following:

You are ordering a fine cup of coffee. What would you like in your coffee?

1. Black

2. Cream & Sugar, add 25 cents

3. Cream & Artificial Sweetener, add 40 cents

4. Milk & Sugar, add 30 cents

5. Milk & Artificial Sweetener, add 40 cents

Please enter your selection from 1 to 5:

Pass the counter into the get data method by reference from Main. The get data method will implement a sentinel while loop that will take an uppercase Y character entry regardless of whether y or Y is entered. In the loop, present the menu, take and convert the selection and evaluate the selection based on the ingredient additive combination entered. Based on the additive combination you will determine the total price of the cup for the current coffee object by adding the indicated additive constant to the PRICEOFCOFFEE constant. If the selection was 1 then black coffee was selected and you assign the PRICEOFCOFFEE value to the total price for a cup. The while loop will continue to take new coffee object orders until an N or n is entered. Within the selection statements you will first set the order number class variable equal to the object array index counter passed into the method from Main. If an incorrect selection is made remember to prompt the user regarding the incorrect coffee selection and present the selection menu again.

A display data method that will display the order number (make sure you display the order number + 1), the total order price, “This is what you requested to be put in your cup of coffee: “. Implement a selection structure to display the additives or black coffee as shown in the output example.

In Main:

Instantiate an array of 10 coffee order objects

set the x array index to zero and the counter that will track the number of orders taken up to 10 and the loop sentinel variable to Y

call the class method that will fill the CoffeeOrders array

a sentinel loop with a sentinel variable that will be initialized to character Y and a conditional that will continue while the sentinel is not equal to ‘N’ or ‘n’

in the while loop while the sentinel is equal to Y, instantiate the coffee order object and assign it to the current coffee order array element

call the current array element objects’ get data method, passing the counter that keeps track of the number of orders up to 10, by reference

update the counter, update the x array index

prompt the user to enter a y or Y for another cup of coffee (another coffee object) and when an n or N is entered terminate the loop.

check if the array of coffee objects index equals 10, set the sentinal value to N to exit the loop (you can only create and assign 10 coffee objects to the array of objects

Internal Documentation

The class will contain the following methods: getData and displaydata as specified above. You are creating an array to hold 10 coffee objects. Each time you take an order in Main you have to instantiate that object and assign it to the appropriate array element. Remember that you can only create 10 coffee objects. The counter you pass by reference from Main to the get data method is used by the class method to set the order number for the get data method. Analyze the suggested inputs and outputs to gain further information about how the processes are run and how incorrect inputs are handled.

Possible output might look like this:

You are ordering a fine cup of coffee. What would you like in your coffee?

1. Black
2. Cream & Sugar, add 25 cents
3. Cream & Artificial Sweetener, add 40 cents
4. Milk & Sugar, add 30 cents
5. Milk & Artificial Sweetener, add 40 cents

Please enter your selection from 1 to 5: 1

Do you want to order another cup of coffee? y

You are ordering a fine cup of coffee. What would you like in your coffee?

1. Black
2. Cream & Sugar, add 25 cents
3. Cream & Artificial Sweetener, add 40 cents
4. Milk & Sugar, add 30 cents
5. Milk & Artificial Sweetener, add 40 cents

Please enter your selection from 1 to 5: 3

Do you want to order another cup of coffee? Y

You are ordering a fine cup of coffee. What would you like in your coffee?

1. Black
2. Cream & Sugar, add 25 cents
3. Cream & Artificial Sweetener, add 40 cents
4. Milk & Sugar, add 30 cents
5. Milk & Artificial Sweetener, add 40 cents

Please enter your selection from 1 to 5: 8
You entered an incorrect selection, please try again.

You are ordering a fine cup of coffee. What would you like in your coffee?

1. Black
2. Cream & Sugar, add 25 cents
3. Cream & Artificial Sweetener, add 40 cents
4. Milk & Sugar, add 30 cents
5. Milk & Artificial Sweetener, add 40 cents

Please enter your selection from 1 to 5: 4

Do you want to order another cup of coffee? y

You are ordering a fine cup of coffee. What would you like in your coffee?

1. Black
2. Cream & Sugar, add 25 cents
3. Cream & Artificial Sweetener, add 40 cents
4. Milk & Sugar, add 30 cents
5. Milk & Artificial Sweetener, add 40 cents

Please enter your selection from 1 to 5: 5

Do you want to order another cup of coffee? N

Order Number: 1 Amount of Order: 1.95
This is what you requested to be put in your cup of coffee:
Black and nothing else

Order Number: 2 Amount of Order: 2.35
This is what you requested to be put in your cup of coffee:
Cream & Artificial Sweetener

Order Number: 3 Amount of Order: 2.25
This is what you requested to be put in your cup of coffee:
Milk & Sugar

Order Number: 4 Amount of Order: 2.35
This is what you requested to be put in your cup of coffee:
Milk & Artificial Sweetener)

Press any key to continue . . .

Calculate your paper price
Pages (550 words)
Approximate price: -

Why Choose Us

Quality Papers

We value our clients. For this reason, we ensure that each paper is written carefully as per the instructions provided by the client. Our editing team also checks all the papers to ensure that they have been completed as per the expectations.

Professional Academic Writers

Over the years, our Acme Homework has managed to secure the most qualified, reliable and experienced team of writers. The company has also ensured continued training and development of the team members to ensure that it keep up with the rising Academic Trends.

Affordable Prices

Our prices are fairly priced in such a way that ensures affordability. Additionally, you can get a free price quotation by clicking on the "Place Order" button.

On-Time delivery

We pay strict attention on deadlines. For this reason, we ensure that all papers are submitted earlier, even before the deadline indicated by the customer. For this reason, the client can go through the work and review everything.

100% Originality

At Buy An Essay, all papers are plagiarism-free as they are written from scratch. We have taken strict measures to ensure that there is no similarity on all papers and that citations are included as per the standards set.

Customer Support 24/7

Our support team is readily available to provide any guidance/help on our platform at any time of the day/night. Feel free to contact us via the Chat window or support email: support@acmehomework.com.

Try it now!

Calculate the price of your order

We'll send you the first draft for approval by at
Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

Buy An Essay has stood as the world’s leading custom essay writing services providers. Once you enter all the details in the order form under the place order button, the rest is up to us.

Essays

Essay Writing Services

At Buy An Essay, we prioritize on all aspects that bring about a good grade such as impeccable grammar, proper structure, zero-plagiarism and conformance to guidelines. Our experienced team of writers will help you completed your essays and other assignments.

Admissions

Admission and Business Papers

Be assured that you’ll definitely get accepted to the Master’s level program at any university once you enter all the details in the order form. We won’t leave you here; we will also help you secure a good position in your aspired workplace by creating an outstanding resume or portfolio once you place an order.

Editing

Editing and Proofreading

Our skilled editing and writing team will help you restructure you paper, paraphrase, correct grammar and replace plagiarized sections on your paper just on time. The service is geared toward eliminating any mistakes and rather enhancing better quality.

Coursework

Technical papers

We have writers in almost all fields including the most technical fields. You don’t have to worry about the complexity of your paper. Simply enter as much details as possible in the place order section.