Help with a super simple program

Discussion in 'iOS Programming' started by brsboarder, Nov 19, 2015.

  1. brsboarder macrumors 6502a

    Feb 16, 2004
    I have no programming experience but am wondering how I can create a simple app.

    I basically want to be able to input 3 variable called:
    and put them in this formula to reveal a number:
    (1.196 x STE) + (0.059 x QTc) - (0.326 x RAV4)

    Any simple way to do this? I use this formula on a very regular basis and it would be very nice if I could just input the numbers like I do into the excel file I made
  2. grandM macrumors 65816


    Oct 14, 2013
    You need 4 textFields + 1 button to calculate
    You connect them to your controller using ctrl + drag (4 outlets & 1 action)
    the action will perform the calculation using the text of the first 3 textFields which you should convert to a double
    the result you fill the text property of the last textField with
  3. dejo, Nov 19, 2015
    Last edited: Nov 19, 2015

    dejo Moderator


    Staff Member

    Sep 2, 2004
    The Centennial State
    What is your goal in this? Are you just wanting an app that gives you the result? Or are you wanting to learn some iOS programming as well? If it's the former, you can probably find a pre-existing app that can calculate this for you. If it's the later, be prepared to spend a bit of time becoming comfortable with the fundamentals of iOS programming before even a simple program like yours seems attainable.
  4. chown33 Moderator

    Staff Member

    Aug 9, 2009
    The calculation is easy enough, and the UI is simple enough, that a simple HTML web page with a little JavaScript could easily accomplish this.

    Put the resulting web page on any public server, such as an Amazon AWS page, and bookmark it in your browser.

    There are also several programming languages for iOS on the App Store (Python, Basic, etc.). One of those could easily do this calculation.
  5. AxoNeuron macrumors 65816


    Apr 22, 2012
    The Left Coast
    The easiest solution would be to hire a grad student to do this for you. Not making the app, that would be too interesting. Instead, have the graduate student perform this calculation as often as you want, and if they can't keep up with you, yell at them.
  6. AxoNeuron macrumors 65816


    Apr 22, 2012
    The Left Coast
    Threw together a pretty simple project that does what you want. Though if you're really interested in iOS development I would suggest only using it as a rough guide. Maybe try to add new things to it, like images, or figure out how to get the result to show the answer to more decimal places.

    Attached Files:

Share This Page

5 November 19, 2015