IceCreamCone Project ...I'm so confused, I don't even know where to start
create a driver class that uses IncredibleIceCreamClass. Your driver class must meet the following minimum criteria:
1. Your driver must create at least three ice cream cones.
2. You must create at least two separate objects of type IncredibleIceCreamClass.
3. At least one of your objects must be used twice to create two different types of ice cream cone.
4. Your driver class must be named IncredibleIceCreamCone
public void powerOn() // sets the machine ready to serve the selected ice cream
public void powerOff() // set the machine in the off/default state
public void setSize (int) // selects the size to serve, 0 (small) through 3 (huge)
public String getSize() // returns the current serving size
public void setFlavor (int) // selects the flavor, 0 (chocolate), 1 (vanilla), 2 (swirl), 3 (strawberry)
public String getFlavor() // returns the current flavor selection
public void setSprinkles(boolean) // turns the sprinkles option on or off
public boolean getSprinkles() // returns the current state of the sprinkles option
public String serve () // returns the prepared ice cream cone
it should look like this:
C:\Users\evan\java\p3>java IncredibleIceCreamCone
Here is your medium strawberry ice cream cone with sprinkles. It's delicious!
Here is your huge chocolate ice cream cone. It's delicious!
Here is your large swirl ice cream cone with sprinkles. It's delicious!
I have the IncredibleIceCreamClass.class file...if you need it
Re: IceCreamCone Project ...I'm so confused, I don't even know where to start
Quote:
I have the IncredibleIceCreamClass.class file...if you need it
I don't need it. This is not my homework.
But if you have a question you may want to post the class file.
..then, you may also want to post your question too. This is not a homework service.
Re: IceCreamCone Project ...I'm so confused, I don't even know where to start
Sky82, the term is over and final grades submitted, so I reckon you'll not check back in here. I hope you also reached out to me and were able to gain an understanding of this project.
I'm always mildly surprised to find posts on these projects. Every term, I change project names to something that doesn't otherwise pop up in Google searches, and I post a link to students showing how previous students fail by blatantly trying to get their homework done for them in programming forums (like the excellent javaprogrammingforums.com). The project names are thus always easy to find in a search, and it's surprising to me just how surprising it is to students that I actually lurk around Java programming forums. All I ask is that students try me first, and then make cries for help in the void second.
-- Andy, your friendly neighborhood CS1 and CS2 instructor.
andrew dot seely at faculty.umuc.edu.