1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Pavlova-9 [17]
3 years ago
6

Creating an application for an ice cream shop. Create an interface named Flavor. Create three subclasses Lemon, Mint, and Chocol

ate. Create a class named Cone that has a single member variable named scoops of type List with a generic argument of Flavor. Initialize the scoops member variable to an object of one of the two list classes discussed during the lecture. Add a method named add with a single parameter of type Flavor named scoop. This will add the scoop object to the scoops list.
Create a class named IceCreamShop. The class has a single member variable of type Map named orders. Initialize this map to an instance of type HashMap. This map is used to track customer orders. It maps a customer name of type String to an instance of Cone. The map is modified by the following methods:

Add a method orderScoop(String customer, Flavor flavor). This method first checks if thereâs already an order for the given customer in the map. If the map does not have an entry with the customer name, a new entry is put into the map with a new Cone object. If the map already contains an entry, it gets the cone value from the map. Then it adds a new flavor to the cone. Note: Thereâs no need to put the cone back into the map because the map uses a reference to the cone object.

Add a method completeOrder(String customer). This method will return the cone for the given customer and remove the entry from the map.
Computers and Technology
1 answer:
Tpy6a [65]3 years ago
6 0

Answer:

I don't know for sure what the answer is but I hope you can find someone that can give you the answer sorry!

Explanation:

You might be interested in
What permissions are needed in order to use a work online that is in the public domain?
Maurinko [17]
<h2 /><h2>⇒Written  \: permission  \: from \\  the  \: creator</h2>

The term “public domain” refers to creative materials that are not protected by intellectual property laws such as copyright, trademark, or patent laws. ... Anyone can use a public domain work without obtaining permission, but no one can ever own it.

5 0
3 years ago
An asterisk (*) following a cell reference in a formula is the arithmetic operator that directs excel to perform the division op
lubasha [3.4K]
You are correct there. the * operand tells Excel to multiple the two cells or variables.
7 0
4 years ago
Which component comprises the central processing unit?
lbvjy [14]
I believe it is Control unit..
Hope this helps!
3 0
4 years ago
Which of these statements correctly defines source code?
Ksju [112]

Answer:

B.  code written in a high-level language

Explanation:

8 0
4 years ago
A(n) ________ cable carries all audio and video information from devices to a connected tv.
MrRissso [65]
An AudioVisual cable, otherwise referred to as AV cable
4 0
4 years ago
Other questions:
  • To display a pop-up form for a control, such as account number in a datasheet create a user interface (UI) macro that is associa
    12·1 answer
  • The specific gravity of gold is 19.3. Write a MATLAB program that will ask the user to input the mass of a cube of solid gold in
    12·1 answer
  • When the continue statement is encountered in a loop, all the statements in the body of the loop that appear after it are ignore
    5·1 answer
  • Finish the code where it says //YOUR CODE HERE
    11·1 answer
  • A location in space is called?
    6·2 answers
  • . The NFiPA 704 system uses a numerical value between _____ and _____ to indicate the level of hazard for that particular chemic
    7·1 answer
  • Write a short note on Magnetic tape as a secondary storage device​
    6·1 answer
  • What is the main difference between inserting header/footer in excel and word?​
    14·1 answer
  • 31. Explain what the program does. Write out the output 20 PRINT "Hellooo00000000000, world!" 30 PRINT "I'm learning about comma
    7·1 answer
  • Label the parts of the plated salad.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!