Page 1 of 1

Is it cheating to use php to do my history homework?

Posted: Tue Sep 27, 2011 7:24 pm
by JelvinJS7
I had a history assignment where we basically pretended that a single person has an infectious disease (bubonic plague, small pox, etc.) and infected one person w/ it the first day. The next day, they both infect someone, and so on.
Essentially, we had to fill out a chart for all the powers of 2, up to 30.
Well, I didn't feel like doing that on my calculator 30 times. And I've always wanted to use php for my homework. :idea: So I decided to take advantage of the calculator on php, and went to writecodeonline.com/php
<?php
for ($i=1;$i<=30;$i++){
     echo "Day {$i}: ", pow(2,$i), "<br />";
}
?>
Saved me a lot of time. :D ;) :lol: :geek:
This was to show how fast an epidemic can spread

Re: Is it cheating to use php to do my history homework?

Posted: Wed Sep 28, 2011 1:03 pm
by jacek
Nice work !

You could have also use Excel. ;)

Re: Is it cheating to use php to do my history homework?

Posted: Wed Sep 28, 2011 5:24 pm
by Kamal
jacek wrote:Nice work !

You could have also use Excel. ;)
That would take a lot more time than what he did :?

Re: Is it cheating to use php to do my history homework?

Posted: Wed Sep 28, 2011 5:48 pm
by DomC
Me likey!

You Sir are awesome!

Re: Is it cheating to use php to do my history homework?

Posted: Wed Sep 28, 2011 10:10 pm
by JelvinJS7
DomC wrote:Me likey!

You Sir are awesome!
Why thank you! (I Am the master if awesome randomness. ;) ) you're awesome for saying that. :)
jacek wrote:You could have also use Excel.
I don't really know how to use excel. Plus i was on my iPod.