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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need a calculator help!

    Hi:
    I am really a beginner. I have some php knowledge.

    I would appreciate if somebody can post for me the programming 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
    Master Coder mlseim's Avatar
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,389
    Thanks
    8
    Thanked 1,077 Times in 1,068 Posts
    This would be a better looking program with Javascripting.
    You could even have some graphical animation.

    If you have to use PHP (because it's a homework project),
    try to code some yourself and show us what you've done.

    There are so many tutorials about PHP (use Google to search).

    Let us know if Javascripting can be used ...
    Like I say, in this case, it would be really beneficial to use Javascripting.


  •  

    Posting Permissions

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