开发者

Programming challenges related to chemistry [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or ex开发者_StackOverflow中文版pertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.

I'm looking for interesting programming puzzles, problems or challenges suitable for a class of chemistry majors learning C as their first programming language. Do you have any recommendations?


Project Euler is pretty good. They have some simple challenges that may be suitable.

These won't really do much to teach them C, though. Text books are much better for that.

Additionally, you could have them write a program to balance chemical reaction equations. That would be good for I/O and simple math.


Given a text file with a whole bunch of pressure/temperature/mole count as input, and using the ideal gas law equation, output the values of the volume for the gases and output the entire set of data (P,V,T and n) into a nicely formatted output file.

Should cover file i/o, basic function usage, and string formatting. Has the potential to cover arrays and stucts as well.


David, tasks that come to my mind would be:

  • calculation of the number/topology of isomers of hydrocarbons (cyclic and acyclic, saturated and unsturated)
  • numerical integration of optical spectra (absorption and fluorescence)
  • kinetical models
  • deconvolution of experimental data
  • modelling of thermodynamical cycles and their efficiencies


This seems a really vague question but assuming I'm a chemistry student that is learning C I would like to write programs that allows me to define molecules and compounds starting from simple elements.

I really don't know how to explain it, but maybe define your struct for a nitrogen atom, one for oxigen atom and have a way to bind it to produce water.. or maybe mixing to different substances too see what will come out programmatically..


You can try pex4fun. It allows you to learn algorithms in C# (which is close enough to C). pex4fun provides read-to-use classes and also engaging coding duels that turn learning into a game.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜