Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Must be written in C++ . Thank you. Problem 2 Overview: In this question you will write a program that reads a .csv file and

Must be written in C++ .

Thank you.

image text in transcribed

image text in transcribed

Problem 2 Overview: In this question you will write a program that reads a .csv file and stores the information in a list of structs. Each line of the file corresponds to a struct element in the list. Then you will allow the user to print the contents of the list. Specifics: 1. Your program should take a single command line argument: the name of a csv file to read in. a. This file needs to be stored in the same directory as your program. b. Each line in the file must follow the format ",KAGE>. 2. Reading from the file a. Each line of the file can be read using getline function. b. Parse each line using stringstream and convert each entry into its appropriate data type. USERNAME should be a string, GPA should be a float, and AGE should be an int. You can use the stoi, and stof functions to convert from strings to numbers

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

Graph Databases New Opportunities For Connected Data

Authors: Ian Robinson, Jim Webber, Emil Eifrem

2nd Edition

1491930896, 978-1491930892

More Books

Students also viewed these Databases questions