C++ problem.

 

 

Problem:

A machine shop has two automatic milling machines. Machines’ operation output data is in XML format.   To improve the energy efficiency of the machines,  operation data of power consumption and time stamps for each operation need to be extracted from the XML file.   The extracted data will be calculated and then saved for analysis and comparison.

 

 

Find a solution in software for this problem.

 

I need to write a C++ program that extracts power consumption and time stamps data from a XML file and outputs it to another file. Output file should be properly formatted and labeled for analysis and comparison.

Here is the part in the XML file that the program supposes to extract:

 

<VoltAmpereReactiveTimeSeries dataItemId=”electric_61″ timestamp=”2014-07-08T18:14:17.716Z” name=”kvar_a” sequence=”121794208″ sampleCount=”25″>
3937 3938 3940 3944 3943 3943 3939 3937 3937 3931 3925 3921 3919 3920 3918 3918 3920 3922 3919 3915 3913 3910 3907 3904 3899
</VoltAmpereReactiveTimeSeries>
<VoltAmpereReactiveTimeSeries dataItemId=”electric_62″ timestamp=”2014-07-08T18:14:17.716Z” name=”kvar_b” sequence=”121794204″ sampleCount=”25″>
5805 5805 5807 5807 5806 5803 5801 5797 5794 5790 5786 5784 5781 5780 5777 5776 5779 5779 5784 5789 5794 5800 5803 5807 5808
</VoltAmpereReactiveTimeSeries>
<VoltAmpereReactiveTimeSeries dataItemId=”electric_63″ timestamp=”2014-07-08T18:14:17.716Z” name=”kvar_c” sequence=”121794206″ sampleCount=”25″>
7128 7134 7136 7136 7143 7141 7141 7141 7140 7143 7142 7144 7143 7147 7154 7155 7158 7159 7161 7162 7160 7163 7163 7166 7170
</VoltAmpereReactiveTimeSeries>
<WattageTimeSeries dataItemId=”electric_64″ timestamp=”2014-07-08T18:14:17.716Z” name=”kw_a” sequence=”121794207″ sampleCount=”25″>
19437 19430 19416 19414 19423 19429 19426 19420 19421 19435 19440 19425 19414 19409 19413 19420 19412 19407 19414 19423 19439 19440 19434 19441 19455
</WattageTimeSeries>
<WattageTimeSeries dataItemId=”electric_65″ timestamp=”2014-07-08T18:14:17.716Z” name=”kw_b” sequence=”121794209″ sampleCount=”25″>
8795 8792 8794 8801 8804 8800 8802 8805 8810 8810 8801 8793 8795 8798 8796 8790 8784 8789 8797 8798 8796 8797 8805 8815 8818
</WattageTimeSeries>
<WattageTimeSeries dataItemId=”electric_66″ timestamp=”2014-07-08T18:14:17.716Z” name=”kw_c” sequence=”121794205″ sampleCount=”25″>
12572 12579 12585 12584 12581 12591 12602 12602 12598 12596 12593 12601 12596 12588 12596 12599 12609 12616 12612 12618 12629 12636 12637 12629 12623
</WattageTimeSeries>

 

 

 

 
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code "Newclient" for a 15% Discount!

NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.