V
V
Valentine2018-10-21 15:43:54
SQLite
Valentine, 2018-10-21 15:43:54

How to implement the periodic table?

There is a database in which paths to text and video files are stored. Some information about chemical elements is stored in text files, experiments with them are filmed on video. That is, for example, in the H.txt file, the following text:

Hydrogene (from the Greek ύδρω - water and γεννάω - I give birth), which means "giving birth to water"
Hydrogen is widespread in nature, its content in the earth's crust (lithosphere and hydrosphere) is 1% by mass, and 16% by the number of atoms.

I am required to create an application in C #, as an IDE I will use Visual Studio.
The essence of the application: when you open the program, display the periodic table. If the user clicks on any element, display information about it from the corresponding text file in a new window.
How to implement it better? I suppose that we need some algorithm that, when launched, will arrange the element widgets in the form and bind values ​​​​from the database to them. Don't install them all manually.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2018-10-21
@val_gr

As already mentioned above, it will be very problematic to derive the algorithm for the formation of the Periodic Table. The location depends on the properties of the elements themselves (the number of unfilled electrons in the outer layer, the valency and charge of the nucleus). Selecting all this data to form a table is simply not efficient.
It is much more logical to make a table in which there will be row No., column No. and a file name with a description. In fact, the same periodic table in electronic form will allow you to select elements by rows, columns, or exact location.

T
TarzanPasha, 2018-10-21
@TarzanPasha

To come up with an algorithm, you must first understand the principle by which the periodic table was created. Hardly here there are chemists. But I think that it will be easier to manually arrange everything, because the algorithm will turn out to be quite complicated, taking into account all the possible rules and exceptions to the rules that are in the periodic table. I advise you not to bother with this, you will spend less time.

E
Elzik, 2020-11-23
@Elzik

As a result, it is not entirely clear whether it is necessary to do something like this with the visual part and interactivity, or just a table with elements and their chemical properties?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question