how do you write a code that prompts the user for data points that are then put into an array