This is all i have right now and i cant figure out how to go further..

Code:
     var numEntries;
                    var max;
                    var pt;                                       
                    
                    numEntries = Number(prompt("Number of entries to process?"));
                      
                    do {
...