Need hints URGENT!!

I have been given a 5 assignments and if u guys can just give me the hints for it i would be grateful to u guys and i am a total noob on c++ i study in 11th grade and need to submit this assignment by monday all programs are to written in c++ language. thanks! here are the assgnments.


1]write a program in c++ to perform addition,subtraction,multiplication,division using simple function.

2]to find out and check even number os even or odd without returning values.

3]to find out reverse and sum of numbers using simple function with parameters and with returning values.

4]to perform swapping between 2 arrays with at least 5 elements in both arrays.

5]to find out sum of arrays elements for at least 10 elements.
Last edited on
Generally we out here on this board we don't do homework. We will help you if you post code but you need to learn how to do it on your own.
oh! please help....can i get hints for this please....
Last edited on
u are gonna give me hints or not?
Is that your real assignments description. It seems very vague.
Show us what you have and specify which functions or operations you are having troubles with.

We have no idea what level of understanding you already have of c++, without this kind of knowledge the best we can do is point you to the tutorials section:
http://cplusplus.com/doc/tutorial/

Here are some hints I suppose:
1. use the + - * / symbols for these operations
2. Use the % operator
3. Use num%10 to get the first digit. Use num/=10 to shift everything by a decimal.
4. temp = a[i]; a[i] = b[i]; b[i] = temp;
5. for (i = 0; i < size; i++) sum += a[i];

Stick this stuff in
1
2
3
4
5
int main()
{
    //Your code here
    return 0;
}


Edit: Also, why would you report Azagaros? What kind of response do you expect to get with "This is my homework, how do I do it?".
Last edited on
thanks a bunch!!! people sorry if i did anything wrong as i dont know how this forum works....now your hints are going to help me so much!

is there is any way to express my gratitude like order a pizza for u guys for all the trouble.
Topic archived. No new replies allowed.