søndag 5. desember 2010

Vidar's Calculator!

Vidars data blog is going to be updated a little more often from now on. Slowly I'm learning ways to work python scripts.
I have now made a menu-driven calculator script, a piece of work done almost entirely without consulting books. It handles 6 different types of maths.For accounting addition I will have to set up another script, so only up to four numbers may be added at one time. Forcing the division to present the answer as a floating point number(i.e. with decimals) was also a challenge, that finally could be overcome. Python 2.7 prefers to give you answers in integers, thus applying the "remainder"-function in division, which for everyday calculations have little practical use.
I was fairly satisfied with this latest calculator script, I hope that the next time I deal with a maths script, it may even be with some graphics, either a program that draws graphs from number input, or even a calculator that looks like a calculator, but that will have to wait until I've learned more.

Ingen kommentarer:

Legg inn en kommentar