using the joption pane class learnt in class to get input from a user
Question
Using the JOption Pane class learnt in class to get input from a user and display the outputs,
solve the following problem:
A cookie recipe calls for the following ingredients:
1.5 cups of sugar
• 1 cup of butter
• 2.75 cups of flour
The recipe produces 48 cookies with these amounts of the ingredients. Write a program
that asks the user how many cookies he or she wants to make, and then displays the number
of cups of each ingredient needed for the specified number of cookies.
Note: No need to worry about the number format for this question (e.g. if you get a number like
0.4166666666663, then just leave it as it is.)