1 / 1

Animation of PartyM

CupM. MugM. ratio. 0.0. volume. 250. PaperCupM. volume. 150. mthd stack. MugM. arg. amount. 0. ?. m1. ?. p1. this. this. PaperCupM. amount. 0. this. times. 0. this. this. this. this. 0.8. f. 5. 5. i. i. i. i. f. this. this. this. this. this.

alissa
Download Presentation

Animation of PartyM

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. CupM MugM ratio 0.0 volume 250 PaperCupM volume 150 mthd stack MugM . . . arg amount 0 ? m1 ? p1 this this PaperCupM amount 0 this times 0 this this this this 0.8 f 5 5 i i i i f this this this this this Animation of PartyM CupM.setRatio(Float.parseFloat(arg[0])); 0.8 ratio = f; m1 = new MugM(); p1 = new PaperCupM(); m1.fill(); amount = (int) (ratio * volume); p1.fill(); amount = (int) (ratio * volume); 195 200 times++; m1.drink(); drink(5); 115 120 amount -= i; p1.drink(); 1 drink(5); amount -= i;

More Related