I'm just starting to learn C++ working on Unix machines. I really don't even know where to begin on a program so if anybody could do a couple to set me in the right direction maybe it will get me started.

I'm supposed to write a C++ code to solve these problems but i will just ask for a couple of them done just to give me and example to go by.

Problem 1:

m=(a+b+c+d+e)/5

Problem 2:

y=mx+b

Problem 3:

z=pr%q+w/x-y

Problem 4:

y=ax^2+bx+c

Values of Variables:

a=2; b=3; c=4; d=5; e=6; m=2; p=3; q=4; r=5; w=5; x=4; y=3

Thank you for any help you can give me, b/c i really don't know where to begin.