View Full Version : Is this a Java situation?

05-19-2008, 11:56 PM
I am really a beginner.
I would appreciate if somebody can post for me the coding for a calculator:

It has to be able to perform a simple arithmetic function, it has to have windows to enter the information and a "calculate" and "reset" buttons.

The calculator should have this display:


Enter rise ( a window to input information in inches)

Calculate Reset

Length for 1: 12 (a window showing the results)
Formula= rise/ 1

Length for 2:12 (a window showing the results)
Formula= rise/2

Length for 3:12 (a window showing the results)
Formula = rise/3

If the person enter the rise, then the result should show up in the 3 length windows.

This is a very simple calculator but... i do not know how to do the coding. Hope somebody would be able to help me

05-20-2008, 12:43 AM
RE thread title: Could be java, but probably easier to accomplish with javascript.

Philip M
05-20-2008, 07:46 AM
Java and Javascript are entirely different programming languages, in spite of the confusingly similar names.

05-20-2008, 08:47 PM
What is the program for? It sounds like a school assignment. Do you have anything started yet?