It looks like you're new here. If you want to get involved, click one of these buttons!

ddoublev
PerthPosts: **1**New Users Noob

Hi,

I am in need of urgent help, I work in the water industry and I am continually being contacted by people I work with to carry out calculations for them because they are too lazy to do the math.

I have identified that an app to calculate a result through a formula using three variables would do the job. I have been working at it for a while now and can't seem to get any of it to work.

Formula is pretty basic x=a*b/c

Can someone please help out with how the code should look? I do not intend to make any money etc from this app and it will look pretty basic. Only think it will be downloaded maybe 10-20 times

I am in need of urgent help, I work in the water industry and I am continually being contacted by people I work with to carry out calculations for them because they are too lazy to do the math.

I have identified that an app to calculate a result through a formula using three variables would do the job. I have been working at it for a while now and can't seem to get any of it to work.

Formula is pretty basic x=a*b/c

Can someone please help out with how the code should look? I do not intend to make any money etc from this app and it will look pretty basic. Only think it will be downloaded maybe 10-20 times

## Replies

3,547New Users@ @ @ @ @float x;

float a;

float b;

float c;

a = a variable or constant;

b = a second variable or constant;

c = a third variable or constant;

The formula in Objective C is same as what you already have... solve for x

x = a*b/c

632New Users@ @ @If you are impatient to start where you need to here in terms of learning, you might go and find some small sample code that already puts up a basic UI that you can interact with. Then make small modifications to to fit your needs. Likely much easier than starting from scratch with no experience and it is a very valid way to see how things work and fit together.

1,236Registered Users@ @ @ @9,112Tutorial Authors, Registered Users@ @ @ @ @ @ @Duncan C

WareTo

Animated GIF created with

, available for free in the app store.Face DancerI'm available for one-on-one help at CodeMentor