Google Answers Logo
View Question
 
Q: Java Programming ( No Answer,   2 Comments )
Question  
Subject: Java Programming
Category: Computers > Programming
Asked by: math01-ga
List Price: $25.00
Posted: 06 Mar 2004 14:36 PST
Expires: 08 Mar 2004 01:14 PST
Question ID: 314128
I am trying to write a Java application to simulate a simple
calculator. The user interface for this application has two parts. At
the top is a one-line text box. The bottom consists of a bank of 15
buttons, formed as a 5 by 3 grid. The fifteen buttons includes the
digits 0-9, and four operations addition, subtraction, multiplication
and division, and an "enter" button.

The user enters numbers using the numeric buttons. Numbers are
terminated by either hitting enter, or hitting an operation button. An
operation is saved until the following number is entered, when the
result is calculated. For example, if the user enters

1 2 3 + 4 5 (enter) 

The result 168 should be displayed in the text box. The text box
should display the current number as it is entered, and the most
recent result when an operation is entered.

Request for Question Clarification by maniac-ga on 06 Mar 2004 18:50 PST
Hello Math01,

Are you looking for java source code to adapt to this problem or must
the code fully meet your needs? For example, I found a simple
application using JDK 1.2 and Swing to produce a calculator but the
number buttons are in a 3x4 grid (plus period and equals), has the
four functions (and clear) on the right, and exit, help and about on
the bottom. It does slightly more than you ask plus it needs to be
modified to match the layout you specified.

Also, it may be necessary to indicate what JDK (and optionally IDE)
you are using to make sure you get the code you need to build this
calculator. Please indicate that in your clarification.

  --Maniac

Clarification of Question by math01-ga on 07 Mar 2004 01:52 PST
Hi maniac-ga,

If you can post a code as specified, that will be great.

Regards
Answer  
There is no answer at this time.

Comments  
Subject: Re: Java Programming
From: mohamad83-ga on 06 Mar 2004 21:44 PST
 
Very simple pogram......you can write your own code :)
Subject: Re: Java Programming
From: math01-ga on 08 Mar 2004 01:13 PST
 
Well, I will have to withdraw my question since you are not interested
in my business.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy