3 - Javascript:Control Statements II - Assignment

One interesting application of comuters is the drawing of graphs and bar charts (sometimes called histograms). Write a script that randomly chooses five numbers betweein 1 and 30. For each number, output text that displays a line containing the same number of adjacent asterisks, a space, and the number itself.

For example, if your program chooses the number 5, it should out put text that displays "***** 5".

This due by the beginning of class in week 4.

I'll have a jump drive you can save it to, or you can email me the page.

30 points.

Table of Contents