Text: Create an Ice Cream Shop
In the ice cream shop, customers can order only 1-3 scoops. The customer can also choose from a number of flavors: coffee, vanilla, or strawberry. Enter the number of scoops and the requested ice cream flavor using JTextField or JOptionPane. Use named constants for the scoop price. The price for a scoop in this store is different for different flavors: $2.37 for a scoop of strawberry, $2 for vanilla, and $2.52 for coffee. Use a switch statement for dealing with flavors. Flavors of ice cream are represented by strings such as coffee, vanilla, cappuccino, etc. Write a method drawIceCream that displays a picture of the ordered ice cream in the color matching the requested flavor and the requested number of scoops. You can draw a cone (using the class Polygon) or a cup. Display the receipt in the application window. The receipt must include:
• Name of your ice cream shop written in an interesting font or a shop logo
• Requested flavor
• Requested number of scoops
• Total price with the $ sign in front
Include the following:
1. A customer can make a selection of either a cup or a cone.
2. Input validation for the requested flavor (if an unavailable flavor has been chosen/entered, allow re-entering the flavor).
3. Include input validation (if the number of entered scoops is more than 3 or less than 1), the application should display an error message: "Incorrect value. Please re-enter the number of scoops (Enter 1-3)".
4. Use the Decimal Format class to always display 2 decimals.