Sydney coffee warehouse sell coffee beans to wholesalers and retailers. Currently the company sells only one type of beans called "Organic espresso blend". Coffee beans are packaged in a 1kg bag. If the quantity of the coffee bags purchased are higher, then the price is lower. Resellers attract a 20% discount on the total price.
Create a basic C# console application to calculate and display coffee beans sales for N customers who purchased coffee beans from Australian roasters. The prices of coffee beans bags are shown below
Quantity | Price (including tax) |
1-5 bags (each bag is 1kg) | $36 per bag |
6-15 bags | $34.5 per bag |
More than 15 bags | $32.7 per bag |
The application should ask the user to enter the customer name, the number of coffee bags, and yes or no to indicate whether the customer is a reseller. The reseller customers receive a 20% discount on their orders no matter how many coffee bags they purchase.
Assume that the quantity (number of coffee bags) is an integer type with the range between 1 and 200. An error message should be issued if a user enters a value beyond this range and the re-entering is required.
The program makes a calculation of the order and displays the result of customer details and the total price as shown below. The program should be kept running with entering the next set of input data.
Figure: see image.
After all N sets of input data are entered from the keyboard, your program will also display the information that includes the customer spending most, the customer spending least as shown in the below figure
Figure: see image.
The application should be user-friendly by displaying appropriate welcome, exit and error messages.