Calculator
Posted: Wed Apr 30, 2008 6:58 pm
Hiya,
For my A Level coursework we had practice on making programs before we started on the assessment tasks and one of them was a calculator: add/divide/subtract/multiply two text fields together and put the answer into an answer field.
But now I want to create another calculator much like the Windows' or Mac calculator: click buttons and it puts the numbers on one line (an a decimal point too), press a function button (+ / * -), the screen clears using the put empty command and stores it in memory by using the command like where ##### is whatever has been inputted, then input more characters, then '=' putting the answer in the same field.
I tried creating it but I don't know how to get text to appear on one line.
If I had help with the code for one number, a function, the next number and the answer that'd be great
Thanks
Omar
For my A Level coursework we had practice on making programs before we started on the assessment tasks and one of them was a calculator: add/divide/subtract/multiply two text fields together and put the answer into an answer field.
But now I want to create another calculator much like the Windows' or Mac calculator: click buttons and it puts the numbers on one line (an a decimal point too), press a function button (+ / * -), the screen clears using the put empty command and stores it in memory by using the command like
Code: Select all
put ####### into MemoryStore
I tried creating it but I don't know how to get text to appear on one line.
If I had help with the code for one number, a function, the next number and the answer that'd be great

Thanks
Omar
