Computer Science --- Haas --- MathClassAverage

A certain math teacher (Not Mr. Haas) determines his students averages as follows.

Write a Javascript program to find the average as described above.

Your program must prompt the user to enter the 5 grades.

Note: The grades can be entered in any order.

You are NOT allowed to use the JavaScript Math.max or Math.min functions for this project.

Example:
Computer> Enter grade 1:
User> 90
Computer> Enter grade 2:
User> 83
Computer> Enter grade 3:
User> 78
Computer> Enter grade 4:
User> 92
Computer> Enter grade 5:
User> 85
Computer> Your average is: 88.4%