Question: In C language Problem Statement Write a program that reads a file containing chemical element data and stores it in a searchable format that can
In C language



Problem Statement Write a program that reads a file containing chemical element data and stores it in a searchable format that can display the information on demand Input Data File Specifications The chemical element data is stored in a standard text file. There are two sections Header Section The first two lines of the file always contain the following: Line 1: Labels for each column in the file Line 2: Number of elements stored in the file Element Data Section Following the header is information about the elements * Each line represents a single element, with field values separated by commas (CSV format) * This is the order and meaning of each value in a line Atomic Number, Symbol, Name, Atomic Mass (u), Standard State, Density (g/cm3) Example: Sample input data file is on the left; its interpretation is on the right. 1 Labels 2 # elements 2 3 Element Data1 Atomic Number, .. Atomic Number, , Density (g/cm*3) 2 1,H, Hydrogen,1.00794(4),gas,8.99E-05 2,He,Helium,4.002602(2),gas,1.79E-04 Atomic Number1 Symbol Name Atomic Mass ? 1.00794(4) Standard State gas Density + Hydrogen +8.99E-05 4 Element Data 2 Note: The label text is too long to show in its entirety here, so the Atomic Number2 Symbol Name Atomic Mass4.002602(2) Standard State gas Density "indicates that some labels have been omitted ? Helium + 1.79E-04
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
