Question: Create JavaScript Code to read a Comma Separated Value (CSV) text file (it will have a .txt extension). See the testData.txt file in this module.

Create JavaScript Code to read a Comma Separated Value (CSV) text file (it will have a .txt extension). See the testData.txt file in this module. There are three attributes: Row, Name, Grade, and 10 records.

Create a function named processData that will take the file and put it into a multidimensional array named userData.

Write the contents of the array to a web page.

Compute and write to the web page the average score for the grade attribute, you can write a function for this if you wish.

Add student and assignment comments at the top of the code file.

Add informative comments to the code.

Row, Name, Grade 1, Aaron, 3.5 2, Betty, 3.6 3, Charlie, 3.6 4, Debbie, 3.5 5, Eddie, 3.2 6, Farrah, 3.1 7, George, 3.0 8, Haley, 3.0 9, Ira, 3.0 10, Juliet, 3.1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!