Answer to Question #229984 in C++ for YIZA

Question #229984

For this task you are asked to write a program that consists of a le recap.cpp and a

make le to compile and run it. You will need to include a blank data.txt le in your

submission as well. Your make fille must compile the executable as main. You are required to read this data, line by line, into a 2D dynamic array of strings.

The format of the line is as follows:

1,a,b,c,d

Each line starts with an ID, which is an int, and then will be followed by an unknown

number of strings separated by commas. Each string in the line is associated with the ID

of the line. Each line will have at least the ID and 1 item.

Once the items are stored in the array you need to print out the array in ascending order

based on the order IDs in the following format:

ID,a,b,c

An example of this output is as follows (for 2 orders):

3,toaster,iron

4,spanner,wrench,hammer

Terminate each line of output with a newline.

NB!!ONLY THE following libraries are allowed:

- iostream

- fstream

- string

- sstream


1
Expert's answer
2021-08-27T11:13:14-0400
Dear YIZA, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS