Recent content by UNG

  1. U

    C, compiler - write a table from a program

    I have another question and managed to answer it, as it seems like it is working correctly. Th program below is designed to state whether the integer entered is an Even or Odd number. I just thought there might be a better and more proffesional way of writting it? Here it is...
  2. U

    C, compiler - write a table from a program

    Ah cool, I understand now. Thanks once again ! Also I tried running the program without the "void" in between the brackets "int main( )" and it seemed to work fine, what is the reason for this?
  3. U

    C, compiler - write a table from a program

    Thanks very much for your help! I have been changing parts in the program to get a better understanding of how it works. I see that you added in maths header and how the "<= 10" part is there to decide on how many numbers (increasing from 0) are required in the table, as the numbers must be...
  4. U

    C, compiler - write a table from a program

    Okay so what is the carriage return? Would that be the last part of the program to finish it? http://rafb.net/p/sCyV4l30.nln.html
  5. U

    Coulomb's Law and charged particles

    Thanks very much for your help! I think I fully understand that question now and have now managed to get the same answers. Thanks
  6. U

    Coulomb's Law and charged particles

    The direction of the charge that number 2 exerts on 3 will be downwards torwards the left because charge 3 is positive and charge 2 is negative. ? The answers I get now from replacing 90 with 0 are, F3x = 0 + - 0.025 + -143.84 x10^-3 so does this mean that -0.025 will become a +...
  7. U

    Coulomb's Law and charged particles

    The answer is different since I did the Q4 and Q3. It must be the signs. F3x = (8.99 x10^9) x (200 x 10^-9) x (100 x 10^-9) / 0.05^2 x cos 90 i + (8.99 x10^9) x (200 x 10^-9) x ( -100 x 10^-9) / 0.0707^2 x cos 45 i + (8.99 x10^9) x (200 x 10^-9) x ( -200 x 10^-9) / 0.05^2 x...
  8. U

    Magnitude and Direction of Electric Field - Question

    okay so that means you could choose your angle, for instance 180 degrees and put it in the formula
  9. U

    Magnitude and Direction of Electric Field - Question

    But there is no angle given to calculate it?
  10. U

    Magnitude and Direction of Electric Field - Question

    Could I also find the x -component from the formula, \vec{E} = \frac{1}{4 \pi \epsilon _0} \int \frac{\lambda(\vec{r}^{\prime}) ds^{\prime}}{R^2}
  11. U

    Coulomb's Law and charged particles

    Well from the calculations it would make sense to add in a third part into the formula. Something like this ? \sum{\vec{F}_{3_{x}}} = {\left(\frac{{k_{e}}{|q_{3}|}{|q_{1}|}}{{{r}_{31}}^{2}}\right)}{cos{\theta_{31}}}{\hat{i}} +...
  12. U

    Magnitude and Direction of Electric Field - Question

    With the formula, L = angle x 3.14 x R / 180
  13. U

    C, compiler - write a table from a program

    Yes I have it here now. It automaticaly calculates the square and cube roots of the first number typed in. However the first number you type appears in the table as well and will not let me type in more numbers for the next line. A loop in the program is needed here ...
  14. U

    Magnitude and Direction of Electric Field - Question

    Um no I don really understand the examples in the textbooks.
  15. U

    Coulomb's Law and charged particles

    I see so I got the same answers, but mixed up the signs you say? Which means that the total componets added together (Net Force) is wrong and should be a minus answer. Therefore Net Force = - 21.5 x10^3 ?
Back
Top