Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Does any one know how to graph data in Andriod Studio or export the data to a te

ID: 640374 • Letter: D

Question

Does any one know how to graph data in Andriod Studio or export the data to a text File? The data is saved in a CSV File. I want to Graph/Export the original data and the new data after a Transform it.

The Below Code is taking the above X,Y,Z data and multiplying every thing by 2. So I want to know if andriod studio (Java Code) has an option to Graph or export the modified data to a text File.


public class MultiplyByTwo implements MetamorphicTransform {

    public List transform(List inputData)
    {      

        for(int i=0; i             float[] array = inputData.get(i);

            for(int j =0;j                 array[j] = array[j] *2;
            }
            inputData.set(i, array);
        }
        return inputData;


    }
}

StepServiceTest.java × accelerometer.csv × 1.2552512, 4. 8248715, 8.365072, -0.0392266, 3.9618864, 9.767424,0 0.088259846, 3.89324, 9.767424,0 0.088259846, 3.8245933, 9.767424,0 -0.088259846, 3.5794272, 9.767424,0 -0.12748645, 3.5794272, 9.767424,0 0.12748645, 3.5107806, 9.816457,0 0.12748645, 3.4421341, 9.86549,0 0.16671304, 3.3636808, 9.796844,0 -0.16671304, 3.1283212, 9.60071,0 0.37265268, 3.079288, 9.4241905,0 0.5393657, 3.079288, 9.355544,0 0.60801226, 3.079288, 9.286898,0 0.6766588, 3.079288, 9.0515375, 0 0.6766588, 3.079288, 8.973084,0 -0.7256921, 3.1381278, 8.796565,0 -0.7256921, 3.1871612, 8.747532,0 0.7256921, 3.2361944, 8.747532,0 0.7649187, 3.2361944, 8.796565,0 0.7649187, 3.2361944, 8.835792,0 0.69627213, 3.2361944, 8.894631,0 0.48052585, 3.2361944, 9.0515375,0 0.4314926, 3.2361944, 9.120184, 0 0.38245934, 3.2361944, 9.179024, 0 0.38245934, 3.2361944, 9.2378645,0 0.38245934, 3.1871612, 9.2378645,0 0.38245934, 3.1871612, 9.169217,0 0.44129923, 3.1871612, 8.933858,0 0.5001391, 3.1871612, 8.678885,0

Explanation / Answer

It is important that this does not generate a Excel file, but another format. You could use this to move data from one database to another (must be MS SQL in both cases).

Examples: Create a format file:

Bcp [TABLE_TO_EXPORT] format "[EXPORT_FILE]" -n -f "[ FORMAT_FILE]" -S [SERVER] -E -T -a 65535

Export all Data from a table:

bcp [TABLE_TO_EXPORT] out "[EXPORT_FILE]" -f "[FORMAT_FILE]" -S [SERVER] -E -T -a 65535

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote