I have to draw the figure I showed as an example. I took care of reading data from the user, but I could not generate the algorithm to create the expected figure. instructio