Created the user input for amount of salaries listed in an array and the unput for each listed salary