For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > September 2005 > Chemistry: Empirical and Molecular fomula?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Chemistry: Empirical and Molecular fomula?
Jon Pettersen

2005-09-26, 6:55 pm

Hi.

I have just started to look at Perl Running version Active Perl
5.8.7.813 on Windows XP. I am trying to program a script/program ( to
run in command prompt)to calculate empirical and molecular formulas .
Percentage of f.ex C and H is given and the empirical formula is printed
on the screen. Formula weight is going to be used for the molecular
formula and the reult is of course printed on the screen. It would be
nice if the symbols and atom weight could be entered from the keyboard
to be able to calculate different types but actually if someone could
show me a script that fixes the calcultaion with C and H I would be
quite happy. I can not find anything in the Perl books I have that
"shows me the way" to solve this. Would be nice if it is done as easy as
possible or I will not understand a thing of how it is done ;-)

Feelingsostupid.
Chris Devers

2005-09-26, 6:55 pm

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com