I have included in a zip file the lab and its source files. In it is an HTML page with all the documentation, all i need done is question #4 which I will post below just to verify which question. I need this done quickly
The original applet keeps track of how many colas are in the machine and indicates when there are no colas left by disabling the cola button. Extend this feature to all of the drinks.
The organization of the program is, perhaps, somewhat less logical than it should be. In particular, it might be better to have the `amount` instance variable be part of the `MoneyPanel` class, since that's where all the money-related buttons are. If we do that, though, the applet's `process...` methods will not have access to `amount.` That would mean that we would have to provide `MoneyPanel` with methods that get the amount and change the amount (adding some money in response to a coin insertion and subtracting some money in response to a sale). Do this, moving `amount` from `SodaPop` to `MoneyPanel` and adding two new methods, `int getAmount()` and `void changeAmount(int change)`, along with their appropriate calls in `SodaPop`.
Add another display, somewhat like the one on the right, that shows the current amount of money that has been fed into the soda machine. This will require some careful thought about design. Ideally, the display should be part of the `MoneyPanel` class, since it's logically related to the other parts of that class. However, making the new display a private part of the `MoneyPanel` class would introduce more complications than we want, if you consider the problems of communication to the display.
Instead of completely rewriting the `MoneyPanel` class, make a new class, `MoneyDisplay` that extends `TextField` and has a constructor and a method `void update(int money)` that causes it to display the amount given by the parameter. You can steal some of the code from `processReturnButton`. Add an instance of this class to the applet, along with the appropriate method calls. While you're making this modification, you might want to change some of the behavior of the old display, since some of its messages are now redundant.
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
Windows XP, Java compiler, Jpad, Edit plus, etc.