Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: ProtectOurFreedom
My first FORTRAN program calculated & printed all prime #s up to 10,000.

My second one was actually useful to me: In the game of Risk, which I played often with others in the back of our HS Math Lab, there are rules for attrition of armies depending on the values of the dice thrown and whether you're an attacker or defender. If I and my opponent each had huge armies facing each other in adjacent countries, and I knew eventually there'd be a battle between us, my question was: Is it better to wait for him to attack me, or better if I'm the attacker?

There was no web to search in 1970, and I hadn't yet learned the math tools (combinatorics) to solve it on paper, so I wrote a FORTRAN program to use random #s to simulate 1000 throws of the dice - attacker has 3 dice, defender has 2, all ties won by defender. (Results: attacker lost ~85 armies for each 100 lost by defender).

But I'd already used BASIC for a couple of years before that for more than just fun & games. I wrote programs to number-crunch statistics like chi-squared for Biology labs.

72 posted on 01/23/2024 10:04:19 AM PST by CardCarryingMember.VastRightWC (Unity? Of course! I pledge to respect your President as much as you respected mine the past 4 years.)
[ Post Reply | Private Reply | To 1 | View Replies ]


To: CardCarryingMember.VastRightWC

That reminds me of fifth or sixth grade before we had learned algebra and we had math word problems. You had to somehow intuitively solve them by inspection and brute-force trial and error. In your head and on paper without a computer.


73 posted on 01/23/2024 10:08:19 AM PST by ProtectOurFreedom (“Occupy your mind with good thoughts or your enemy will fill them with bad ones.” ~ Thomas More)
[ Post Reply | Private Reply | To 72 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson