Find Jobs
Hire Freelancers

My Java Homework, Easy

$30-5000 USD

Tamamlandı
İlan edilme: neredeyse 20 yıl önce

$30-5000 USD

Teslimde ödenir
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.
Proje No: 3199828

Proje hakkında

6 teklif
Uzaktan proje
Son aktiviteden bu yana geçen zaman 20 yıl önce

Biraz para mı kazanmak istiyorsunuz?

Freelancer'da teklif vermenin faydaları

Bütçenizi ve zaman çerçevenizi belirleyin
Çalışmanız için ödeme alın
Teklifinizin ana hatlarını belirleyin
Kaydolmak ve işlere teklif vermek ücretsizdir
Seçilen:
Kullanıcı Avatarı
See private message.
$9 USD 1 gün içinde
5,0 (39 değerlendirme)
3,5
3,5
6 freelancers are bidding on average $36 USD for this job
Kullanıcı Avatarı
See private message.
$42,50 USD 1 gün içinde
4,7 (62 değerlendirme)
5,2
5,2
Kullanıcı Avatarı
See private message.
$85 USD 1 gün içinde
4,3 (25 değerlendirme)
5,3
5,3
Kullanıcı Avatarı
See private message.
$51 USD 1 gün içinde
4,8 (19 değerlendirme)
3,4
3,4
Kullanıcı Avatarı
See private message.
$17 USD 1 gün içinde
4,8 (18 değerlendirme)
3,2
3,2
Kullanıcı Avatarı
See private message.
$12,75 USD 1 gün içinde
4,9 (6 değerlendirme)
1,8
1,8

Müşteri hakkında

   UNITED STATES bayrağı
United States
4,6
3
Ara 7, 2003 tarihinden bu yana üye

Müşteri Doğrulaması

Teşekkürler! Ücretsiz kredinizi talep etmeniz için size bir bağlantı gönderdik.
E-postanız gönderilirken bir şeyler yanlış gitti. Lütfen tekrar deneyin.
Kayıtlı Kullanıcı İlan Edlien Toplam İş
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Ön izleme yükleniyor
Coğrafik konum için izin verildi.
Giriş oturumunuzun süresi doldu ve çıkış yaptınız. Lütfen tekrar giriş yapın.