# Thread: progrmming in C

1. ## progrmming in C

i need ur help...wut should i do in my progrmmin methods for dis kind of questions

Rahim's gross salary is input through the keyboard. his EPF (employee provident fund) is calculated at 11% of his gross salary, and his SOCSO is calculated at 8% of his gross salary. right a program to calculate his net salary (take home salary). EPF and SOCSO should be subtracted/deducted from gross salary to calculated net salary.

2. Originally Posted by zeetaQ53
i need ur help...wut should i do in my progrmmin methods for dis kind of questions

Rahim's gross salary is input through the keyboard. his EPF (employee provident fund) is calculated at 11% of his gross salary, and his SOCSO is calculated at 8% of his gross salary. right a program to calculate his net salary (take home salary). EPF and SOCSO should be subtracted/deducted from gross salary to calculated net salary.
right, so right it

3. Originally Posted by zeetaQ53
i need ur help...wut should i do in my progrmmin methods for dis kind of questions

Rahim's gross salary is input through the keyboard. his EPF (employee provident fund) is calculated at 11% of his gross salary, and his SOCSO is calculated at 8% of his gross salary. right a program to calculate his net salary (take home salary). EPF and SOCSO should be subtracted/deducted from gross salary to calculated net salary.
huarghhhh

4. i dun no how to do it :P

5. im still new learning progrmmin

6. Originally Posted by zeetaQ53
im still new learning progrmmin
Oh!

...

Well read up on that tutorial and go from there.

7. im still new learning progrmmin
Yes, that is why Tux0r told you to read this -

Cprogramming.com Tutorial: Introduction to C

After that, think about the problem and ways to approach it. What all do you think you need to do to solve it ? Write some pseudo-code on paper, Start with simple user input, after that tackle the more advanced stuff.

8. ## how bout dis?m i correct or wrong?n wut would it present?

Code:
```

main()
{
int c1, c2, c3, c4, c5, code;
char A, B, C, D, E;
printf ("Enter codes in 5 countries: ");
scanf ("%d %d %d %d %d", &c1, &c2, &c3, &c4, &c5);
if (A)
printf ("code=Argentina");
else if (B)
printf ("code=Brazil");
else if (C)
else if (D)
printf ("code=Denmark");
else (E)
printf ("code=England");
}```

9. how bout dis?m i correct or wrong?n wut would it present?
Do you have a compiler ?

10. no...i dun hav...

11. no...i dun hav..
In that case, I recommend you read this first -

Cprogramming.com: How to Get Started with C++

You cant start programming without even knowing what it is. Also, it would help if you bought a c book so that you know what your doing.

Heres the compiler I use, try installing it once you think you are ready -

http://www.microsoft.com/express/vc/

12. Originally Posted by zeetaQ53
no...i dun hav...
Then get Visual C++ 2008 Express Edition or Fortran, C, C++ for Windows (probably not)

13. squirrels?

14. mr.spidey...hehe da compiler dat u recommend ...is it free?

Popular pages Recent additions