Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    May 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Is this a Java situation?

    Hi:
    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:

    RAMP CALCULATOR

    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
    Thanks
    Marriver

  • #2
    Regular Coder
    Join Date
    Sep 2007
    Location
    AZ, USA
    Posts
    685
    Thanks
    6
    Thanked 46 Times in 46 Posts
    RE thread title: Could be java, but probably easier to accomplish with javascript.

  • #3
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,735
    Thanks
    202
    Thanked 2,508 Times in 2,486 Posts
    Java and Javascript are entirely different programming languages, in spite of the confusingly similar names.

  • #4
    Regular Coder brad211987's Avatar
    Join Date
    Sep 2005
    Location
    Ohio
    Posts
    631
    Thanks
    10
    Thanked 50 Times in 50 Posts
    What is the program for? It sounds like a school assignment. Do you have anything started yet?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •