Tuesday, February 16, 2010

SOFT6008 Class 12

I asked students to continue working on the bar chart exercise, but to make it work for any set of values. This means that the maximum value will most likely be 600 pixels and the other values will be scaled accordingly. This will invlove some maths.

I asked students when that was done to write a mobile phone call cost calulator beased on the number of minutes and texts a peron uses per month. The calculator should visialize the different phone company plans in a bar chart. Students might want to make use of the company colors or logos.

Some hazzards to be avoided:

Math.max is a useful function.

When is 1200 < 300? When they are strings! To force a string to be an integer use the parseInt function.

The fun never stops!

No comments: