Initially it was a for loop, but that seemed too detached. A statement that says "do" seemed much more appropriate for the theme. Plus, it gives the impression that it may continue for a long time (until you see the conditional at the end), whereas a for loop spells out an exact number of steps up front. So I changed it.
At first I had the function set to int, so I needed a return statement. Then I thought void would better express the emotional investment of geekLove, as far as this context was concerned. The "return" then emphasized that, once the money was paid, it was time to leave.
And I grossly over-analyzed this when I wrote it. Did I mention that I'm a geek?
The cinematic quality and suspense for coding really isn't that good though. What is coming up next?.?.?.? OMG AN IF STATEMENT.
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
After perusing the posts/answers in this forum, I can realistically conclude that NONE of you know how many columns a Hollerith card contained nor do you know why a standard width for paper is 8.5 inches. You also may not be familiar with non-proportional fonts since Courier is passe' now. Those of us in the "coding" profession for more than twenty years had our styles dictated by the width of a sheet of fanfold paper in a thingy called a "line printer". Some of you may have seen one of these on display in the Smithsonian and not even recognized it as a printer. AH, for the good old days...amber 12" crt monitors, 320 x 200 graphics, card punch machines(anyone know what an 029 control card did?) and none of these gooey things that stick to your screen.
I seem to recall something about paper being made in roughly 9" x 12" size by hand and then trimmed to get straight edges but that may not be fully substantiated. As far as the rest of the world and the US being alike - they're metric and we aren't (although an inch was defined in 1866 as being 25.4mm). Ask anybody how to convert from gallons to liters and you'll probably get, "I'll get back to you on that." Actually, Reagan mandated that the government stop using the "standard 8" x 10 1/2" that the US government had used since Herbert Hoover's days and start using 8 1/2' x 11" which was the business standard and which most copy machines contained.
As you may have surmised, my post was made with tongue in cheek and I certainly did not expect anyone to take it seriously.
I remember a lot of things, since I've been coding since about 1979 or so. That's a long time, and I had numerous different "computers" like the TI-99/4A (anyone remember those?) and at one time an Atari 800 I believe. Back then the Commodore was the big deal for most people, but I just couldn't afford one! My buddy had one, but even though I was smarter than he was, he never let me touch it. I guess he didn't want the humiliation.. he he. My first "real" computer was in 1991, a 30386/DX running at 40 BIG mhz. I never owned a printer until about 15 years ago or so, so I really only worried about being able to read the code on the screen.
Well lets see id these old brain cells still work. A Hollerith card had 80 columns and an 029 control card was used to set up fields for data entry. The operator would read the control card through the keypunch and it would set the keypunch into numeric or alpha mode for the operator and also allow the operator to skip empty columns. Printers?...we lived and died by the printed word (program listings and memory dumps). Many a night I stood kicking the front panel on a 1911 printer as it printed out a memory dump because my program blew up. Ahhh the good old days...may they never come again. Like tom I was a programmer when programming wasn't even cool. Damn I feel old!
Larry - You must be older than dirt, too! My first computer was a MITS Altair put together as a kit! Long live 8008's. Then had a friend get the SWTP computer (SouthWest Technical Products) as a real kit - transistors, IC's, resistors, capacitors, switches - everything had to be soldered to PC boards and the wired together. It actually worked the first time! I started my programming career in 1976 using a hammer, chisel and stone slabs!
Of course, card sorters were the "computers" on all the TV shows back then.
Been there, done that. Been in this for 34 years and only started at 33.
I also dont know why people need fancy's like smileys to express themselves. Doesnt this work anymore
To answer the question. Any method, function or whatever should fit in 80 columns and not be longer than a A4 sheet of paper can hold. Anything wider or longer becomes difficult to read as a unit. Use macros for long expressions that repeat themselves.