asz304
- 107
- 0
I appreciate your great effort for helping me in my last assignment, I compiled everything and they worked fine except for the example "C12". Thanks again
The discussion revolves around a programming assignment related to calculating the molar mass of organic molecules using C++. Participants are exploring how to effectively utilize arrays and control structures like switch statements in their code, while also addressing the conversion of input strings into numerical values representing molecular weights.
Participants generally agree on the importance of understanding the algorithm and the need for pseudocode before coding. However, there are differing views on the necessity and implementation of arrays, as well as the correct approach to defining and using variables for molecular weights.
Some participants note that the initial definitions of element weights as characters are incorrect, and there is confusion about the use of arrays and the structure of loops in the provided code. The discussion reflects a mix of understanding and uncertainty regarding programming concepts and chemistry principles.
This discussion may be useful for students learning C++ programming, particularly those working on assignments that involve chemistry concepts and require the manipulation of strings and arrays.