1 / 1

Animation of PartyL

MugL. PaperCupL. volume. 250. volume. 150. ratio. 0.0. ratio. 0.0. mthd stack. MugL. arg. amount. 0. ?. m1. ?. p1. PaperCupL. amount. 0. this. times. 0. this. this. this. this. 20. i. i. this. this. 0.8. 0.8. f. f. 20. i. i. f. f. this. this. this.

josiah
Download Presentation

Animation of PartyL

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. MugL PaperCupL volume 250 volume 150 ratio 0.0 ratio 0.0 mthd stack MugL . . . arg amount 0 ? m1 ? p1 PaperCupL amount 0 this times 0 this this this this 20 i i this this 0.8 0.8 f f 20 i i f f this this this this this Animation of PartyL MugL.setRatio(Float.parseFloat(arg[0])); ratio = f; PaperCupL.setRatio(Float.parseFloat(arg[0])); 0.8 ratio = f; m1 = new MugL(); p1 = new PaperCupL(); m1.fill(); 0.8 amount = (int) (ratio * volume); p1.fill(); amount = (int) (ratio * volume); 180 200 times++; m1.drink(); drink(20); 100 120 amount -= i; 1 p1.drink(); drink(20); amount -= i;

More Related