Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #9934
| Newsgroups | comp.lang.java.programmer |
|---|---|
| From | Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> |
| Subject | Re: mod calculation |
| References | <c884824e-9b4a-4df5-8d4a-3dddd6e41bea@d37g2000prg.googlegroups.com> <h7SdnWHCRqnZZSLTnZ2dnUVZ_qqdnZ2d@earthlink.com> <72e972d6-cb28-4e1c-93fb-cc58ee56673e@p7g2000pre.googlegroups.com> |
| Message-ID | <slrnjc09k8.fvg.avl@gamma.logic.tuwien.ac.at> (permalink) |
| Date | 2011-11-13 20:20 +0000 |
Chad <cdalten@gmail.com> wrote: > On Nov 13, 9:02 am, Patricia Shanahan <p...@acm.org> wrote: >> On 11/13/2011 8:20 AM, Chad wrote: >> > 37259 9819 >> > 46363 22666 >> > 46161 79934 >> > 5693 31416 >> > 91459 8272 >> > 72792 9493 >> > 83603 8372 >> > 77842 64629 >> > 84792 747 >> > 1299 178 >> > And then calculate anyNewArrival and serviceTime based on the >> > following formulas... >> > //read data1 and data2 from the file >> > anyNewArrival = (((data1%100)+1)<=50); >> > serviceTime = (data2%5)+1); If you got your assignment on paper, have another close look on the paper, whether the "50" could have been really "60". If that's the case, that might explain it.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
mod calculation Chad <cdalten@gmail.com> - 2011-11-13 08:20 -0800
Re: mod calculation Roedy Green <see_website@mindprod.com.invalid> - 2011-11-13 08:56 -0800
Re: mod calculation Chad <cdalten@gmail.com> - 2011-11-13 09:26 -0800
Re: mod calculation Steve Sobol <sjsobol@JustThe.net> - 2011-11-13 13:08 -0800
Re: mod calculation Chad <cdalten@gmail.com> - 2011-11-13 13:12 -0800
Re: mod calculation Patricia Shanahan <pats@acm.org> - 2011-11-13 13:49 -0800
Re: mod calculation Patricia Shanahan <pats@acm.org> - 2011-11-13 09:02 -0800
Re: mod calculation Chad <cdalten@gmail.com> - 2011-11-13 09:09 -0800
Re: mod calculation Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-11-13 20:20 +0000
Re: mod calculation Roedy Green <see_website@mindprod.com.invalid> - 2011-11-14 09:55 -0800
Re: mod calculation Patricia Shanahan <pats@acm.org> - 2011-11-15 13:05 -0800
Re: mod calculation Gene Wirchenko <genew@ocis.net> - 2011-11-15 14:17 -0800
Re: mod calculation Roedy Green <see_website@mindprod.com.invalid> - 2011-11-17 07:23 -0800
Re: mod calculation Peter Duniho <NpOeStPeAdM@NnOwSlPiAnMk.com> - 2011-11-17 07:51 -0800
Re: mod calculation Lew <lewbloch@gmail.com> - 2011-11-17 09:35 -0800
Re: mod calculation Gene Wirchenko <genew@ocis.net> - 2011-11-17 10:10 -0800
Re: mod calculation Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-11-17 19:09 +0000
Re: mod calculation Patricia Shanahan <pats@acm.org> - 2011-11-17 14:17 -0800
Re: mod calculation Arne Vajhøj <arne@vajhoej.dk> - 2011-11-19 21:11 -0500
Re: mod calculation Roedy Green <see_website@mindprod.com.invalid> - 2011-11-18 20:35 -0800
Re: mod calculation Arne Vajhøj <arne@vajhoej.dk> - 2011-11-19 21:13 -0500
Re: mod calculation Gene Wirchenko <genew@ocis.net> - 2011-11-19 23:47 -0800
Re: mod calculation Roedy Green <see_website@mindprod.com.invalid> - 2011-11-18 20:54 -0800
Re: mod calculation Lew <lewbloch@gmail.com> - 2011-11-19 08:34 -0800
Re: mod calculation Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-11-19 21:16 +0000
Re: mod calculation Lew <lewbloch@gmail.com> - 2011-11-19 16:11 -0800
Re: mod calculation Arne Vajhøj <arne@vajhoej.dk> - 2011-11-19 21:13 -0500
Re: mod calculation Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-11-20 08:45 +0000
Re: mod calculation Lew <lewbloch@gmail.com> - 2011-11-20 08:12 -0800
Re: mod calculation Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-11-20 19:42 +0000
Re: mod calculation spk <jhic@speak.invalid> - 2011-11-20 23:18 -0400
Re: mod calculation thoolen <th00len@th0lenbot.thorium> - 2011-11-21 02:11 -0500
Re: mod calculation Roedy Green <see_website@mindprod.com.invalid> - 2011-11-19 13:40 -0800
csiph-web