# Programming

How do I declare how many boxes there are and how much per box with this information.....
Write an IceCreamStation class in Java. An ice cream station sells ice cream cones, but needs to buy ice cream (by the pint) and cones (by the box) to make the ice cream cones. A box of cones contains 20 10 cones and has a fixed price of \$2.50 per box; a pint of ice cream also has a fixed price of \$3.25 per pint. To make an ice cream cone, you need a single cone and 1/4 of a pint of ice cream. The price of an ice cream cone is not fixed and is indicated during a sale.

An ice cream station should be able to monitor its inventory: how many cones it has left as well as how much ice cream it has left. In addition, it should keep track of how many ice cream cones it has sold so far and how much money it has on hand. When an ice cream station is created, start it off with \$100.00.

You will need to implement the following methods for the IceCreamStation class:

* buyCones: buys cones by the box; number of boxes is indicated as a parameter
* buyIceCream: buys ice cream by the pint; number of pints is indicated as a parameter
* sellIceCreamCones: sells ice cream cones; both the number of ice cream cones and the unit price are indicated as parameters
* getConesLeft: returns the number of cones left
* getIceCreamLeft: returns the amount of ice cream left (in pints)
* getNumIceCreamConesSold: returns the number of ice cream cones sold
* getCashOnHand: returns the cash the station has on hand (in dollars)

1. 👍 0
2. 👎 0
3. 👁 96
1. EAT PEENIS

1. 👍 0
2. 👎 0
posted by Ms Sue

## Similar Questions

1. ### math

Flora’s class collected 236 books. They are placing the books in boxes. If each box holds 8 books, how many boxes can they fill? if there are books left over, what portion of the last box will be filled? 30 full boxes 29 full

asked by Anonymous on May 6, 2013
2. ### science plz correct me

Which of the following boxes would have the strongest gravitational pull on a third object positioned at an equal distance from both boxes? Box A: 100 g Box B: 10,000 g A. box b because it has more mass B. box a because it has

asked by cat on November 1, 2016
3. ### Science last question

Which of the following boxes would have the strongest gravitational pull on a third object positioned at an equal distance from both boxes? Box A: 100 g Box B: 10,000 g A. box b because it has more mass B. box a because it has

asked by Anne on April 16, 2015
4. ### Science 7

Which of the following boxes would have the strongest gravitational pull on a third object positioned at an equal distance from both boxes? Box A: 100 g Box B: 10,000 g A. box b because it has more mass B. box a because it has

asked by cat on November 1, 2016
5. ### math

I need help please help me. There's a chart that has to have 16boxes. It has to be 4 by 4. Lable boxes that are vertical top to bottom 1,2,3,4 and boxes that are horizontal left to right A,B,C,D. Box 1A has to be 28,Box 1C has to

asked by hena(online) on December 13, 2011
6. ### Physics

The drawing shows two boxes resting on frictionless ramps. One box is relatively light and sits on a steep ramp. The other box is heavier and rests on a ramp that is less steep. The boxes are released from rest at A and allowed to

asked by Steve on October 2, 2014
7. ### physics

The drawing shows two boxes resting on frictionless ramps. One box is relatively light and sits on a steep ramp. The other box is heavier and rests on a ramp that is less steep. The boxes are released from rest at A and allowed to

asked by greg on October 28, 2012
8. ### physics

The drawing shows two boxes resting on frictionless ramps. One box is relatively light and sits on a steep ramp. The other box is heavier and rests on a ramp that is less steep. The boxes are released from rest at A and allowed to

asked by carol on October 24, 2012
9. ### algebra

A shipping clerk wishes to determine the weights of each of the 4 boxes. Each box weighs a different integer amount less than 70 kg. Unfortunately, the only scales available measure weights in excess of 70 kg. The clerk therefore

asked by Jackie on February 23, 2012
10. ### computers-html/javascript

when working in notepad, i need to use pop-up boxes (alert, confirm,etc). When a user presses ok more boxes come up. however if the user presses cancel i want them to go back to the homepage (thus stopping the other boxes from

asked by amanda on March 3, 2007
11. ### physics

Boxes A and B are connected to each end of a light vertical rope. A constant upward force F = 80.0 N is applied to box A. Starting from rest, box B descends 12.0 m in 4.00 s. The tension in the rope connecting the two boxes is

asked by Kayla on March 1, 2016

More Similar Questions