Chapter 7: Problem 34
Suppose a file contains bond energies and bond lengths for covalent bonds in the following format: $$ \begin{array}{ccc} \begin{array}{c} \text { Single, double, } \\ \text { or triple bond } \end{array} & \begin{array}{c} \text { Bond energy } \\ (\mathrm{kJ} / \mathrm{mol}) \end{array} & \begin{array}{c} \text { Bond length } \\ (\mathrm{nm}) \end{array} \\ \mathrm{ClC} & 370 & 0.154 \\ \mathrm{ClC} & 680 & 0.13 \\ \mathrm{C} \| \mathrm{C} & 890 & 0.12 \\ \mathrm{ClH} & 435 & 0.11 \\ \mathrm{ClN} & 305 & 0.15 \\ \mathrm{ClO} & 360 & 0.14 \\ \mathrm{C|F} & 450 & 0.14 \\ \mathrm{ClCl} & 340 & 0.18 \\ \mathrm{O|H} & 500 & 0.10 \\ \mathrm{O|O} & 220 & 0.15 \end{array} $$ $$ \begin{array}{ccc} \begin{array}{c} \text { Single, double, } \\ \text { or triple bond } \end{array} & \begin{array}{c} \text { Bond energy } \\ (\mathrm{kJ} / \mathrm{mol}) \end{array} & \begin{array}{c} \text { Bond length } \\ (\text { nm }) \end{array} \\ \text { O|Si } & 375 & 0.16 \\ \text { N|H } & 430 & 0.10 \\ \text { N|O } & 250 & 0.12 \\ \text { F|F } & 160 & 0.14 \\ \text { HIH } & 435 & 0.074 \end{array} $$ Write a program that accepts data from one column and returns the corresponding data from the other columns in the stored file. If input data matches different rows, then return all matching row data. For example, a bond length input of \(0.12\) should return triple bond \(\mathrm{Cl} \| \mathrm{C}\) and bond cnergy \(890 \mathrm{kj} / \mathrm{mol}\) and single bond \(\mathrm{N} / \mathrm{O}\) and bond energy \(250 \mathrm{~kJ} / \mathrm{mol}\).
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.