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

Talk about anything in here.
Post Reply
JelvinJS7
Posts: 341
Joined: Thu May 12, 2011 8:40 pm

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

Post 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
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

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

Post by jacek »

Nice work !

You could have also use Excel. ;)
Image
User avatar
Kamal
Posts: 123
Joined: Fri May 06, 2011 10:45 am
Contact:

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

Post by Kamal »

jacek wrote:Nice work !

You could have also use Excel. ;)
That would take a lot more time than what he did :?
User avatar
DomC
Posts: 91
Joined: Mon Jul 18, 2011 1:58 pm

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

Post by DomC »

Me likey!

You Sir are awesome!
I can't think of anything witty to put here!

Check out some of my projects on GitHub: https://github.com/DomTC
JelvinJS7
Posts: 341
Joined: Thu May 12, 2011 8:40 pm

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

Post 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.
Post Reply