assignment: calculator
In this assignment you will be making a simple calculator, using instructions from the book, RealBasic for Dummies. The book is old, but the instructions are mostly correct. The windows look different now, but you still can change the properties of each window and control manually in the window view.
When you finish the assignment, and your calculator works, you can try some of the following:
Replace "integer" with "double" everywhere it appears. This will allow you to work with decimal numbers.
Add in multiplication, division, etc. You can do this with separate buttons, or with a popup menu.
What would it take to make a button based calculator? Start one (as a separate project) if you can. You probably won't be able to finish this.
When you are done, you should be able to use the following terms:
Control - The widgets you add to your screen, such as editfields, buttons and statictexts.
Property - Each control has a number of properties such as left, top, color, text etc that define how it will appear on the screen.
Variable - A place the computer program stores a single value while it makes a calculation. Variables can be of several types. Some of these are:
Integer - A numerical value without a decimal part.
Double - A numerical value with a decimal part.