Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Code in C I want to write a program, that reads a very large csv file. I want the file to read the columns by

Code in C

I want to write a program, that reads a very large csv file. I want the file to read the columns by name and then print the entirety of the column . So I would like to print out the Unix Timestamp in the example down below for example. When it is printing the list I would like the code to go down the list one by one and print out the row numbers as well with it. When the code reaches the end of the row I would also like that to be printed.

Csv file:

Unix Timestamp,Date,Symbol,Open,High,Low,Close,Volume BTC,Volume USD 1605139200.0,2020-11-12,BTCUSD,15710.87,15731.73,15705.58,15710.01,1.655,26014.29 1605052800.0,2020-11-11,BTCUSD,15318,16000,15293.42,15710.87,1727.17,27111049.25 1604966400.0,2020-11-10,BTCUSD,15348.2,15479.49,15100,15318,1600.04,24521694.72 1604880000.0,2020-11-09,BTCUSD,15484.55,15850,14818,15348.2,2440.85,37356362.78 1604793600.0,2020-11-08,BTCUSD,14845.5,15672.1,14715.98,15484.55,987.72,15035324.13

Expected output print the first column:

1: 1605139200.0

2: 1605052800.0

3: 1604966400.0

4: 1604880000.0

5: 1604793600.0

end of the column

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

0805360476, 978-0805360479

More Books

Students also viewed these Databases questions

Question

4. Does cultural aptitude impact ones emotional intelligence?

Answered: 1 week ago