"quiet_lad" <
gavc...@gmail.com> wrote in message
news:85acf1b9-9524-4814...@ki5g2000pbb.googlegroups.com...
>
> [inSubject] post your solution to this problem
>
Why? Seriously.
And, why do you _constantly_ ask others to provide entire solutions to
programming problems? Much of the time, the solutions you ask for are
non-trivial and would require a huge amount of effort by someone else.
E.g., Linux in Forth, a GUI in Forth, a web browser an appserver in Forth,
database in Forth to replace Oracle... That's just under your recent alias.
Depending on my feelings and thoughts about you at the time, I can take that
a variety of ways and I have:
1) you're wanting others to do your work (or homework)
2) you've made up some problem where you don't really care about a solution,
i.e., contrived, but are wanting to spur conversation, competition, or
arguments, or conflict
3) it's something you'd like to have done, but can't or won't spend your
time to do it yourself
4) you're intentionally being a nuisance
FYI, most good programmers have a DIY attitude...
So, since this is c.l.f., why don't you post a partial Forth solution first?
Or, post what you've got so far... If nothing, state where you want to
start.
At a minimum, you've been around c.l.f. long enough to understand some
Forth. So, please, post a Forth word to compute "(point/(fg+(ft/2)))".
1) convert it to RPN
2) prefix a name
3) surround it by : and ;
4) enter values onto stack
5) execute word
6) display number
Is it correct? We're waiting ...
(I ask others to not post a solution.)
Do you even have a Forth installed?
If I was solving this problem, I wouldn't use Forth. Forth may be perfectly
fine for this, but Forth's not my first choice. Personally, I would select
from the following methods, in the listed order:
a) use a calculator, save the numeric result in a fixed-width, zero-padded
format followed by names etc in a text file, sort file, e.g., in DOS (x86)
b) paste into Excel, enter equation, sort all columns by computed column
c) write a C program to read a text file, compute the equation, emit ranked
results
d) similar to c) but in Javascript, because you can use it in a browser and
don't need Excel
e) use a calculator, write results down on paper, look at results
Solution e) should always work, but it will take you a few minutes. IMO,
that's perfectly fine for sports fans. Sports fans don't seem to have any
other serious time constraints at home or work...
Solution a) always works, but is not for those unskilled with DOS, or where
DOS is unavailable. Without coding a program, it's also the fastest
solution. Once a program is coded, the program will be the fastest
solution. But, coding the program will take more time upfront. So, given
the upfront time cost, coding a program is always the secondary option,
unless the task needs to be automated, i.e., work related.
Solution b) is probably the "best" general purpose solution for the "common
man," i.e., someone who has a computer or access to one. It's also probably
the second quickest non-programming solution. You should have a spreadsheet
on your home or work computer. If you don't have Excel, you can always try
OpenOffice for it's spreadsheet. If you don't have access to a computer at
home or work, you can ask your local library's computers have a spreadsheet
installed. Otherwise, it's solution e) for you.
Rod Pemberton