1 / 1

Animation of MyPartyI

MugI. PaperCupI. CupI. volume. volume. ratio. 0. 0. 0.0. ?. ?. arg. ?. m1. ?. p1. this. this. ?. this. 5. 5. i. i. PaperCupI. MugI. ?. ?. ?. ?. ?. this. this. this. amount. 0. ?. f. amount. 0. times. 0. ?. ?. ?. ?. ?. ?. ?. ?. ?. ?. ?. ?. this.

dougal
Download Presentation

Animation of MyPartyI

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. MugI PaperCupI CupI volume volume ratio 0 0 0.0 ? ? arg ? m1 ? p1 this this ? this 5 5 i i PaperCupI MugI ? ? ? ? ? this this this amount 0 ? f amount 0 times 0 ? ? ? ? ? ? ? ? ? ? ? ? this f this this this ? ? ? this this ? ? i i method stack String String[ ] “0.8” [0] Animation of MyPartyI CupI.setRatio( Float.parseFloat(arg[0])); CupI.setRatio( Float.parseFloat(arg[0])); 0.8 ratio = f; m1 = new MugI(); m1 = new MugI(); p1 = new PaperCupI(); p1 = new PaperCupI(); 250 m1.fill(); amount = (int)(ratio*volume); 150 p1.fill(); amount = (int)(ratio*volume); 0.8 times++; 195 200 m1.drink(); drink(5); amount -= i; 120 115 p1.drink(); 1 drink(5); amount -= i;

More Related