Search:

Type: Posts; User: brianjoo

Search: Search took 0.00 seconds.

  1. Ah i see. Thank you very much for your time.

    Ah i see. Thank you very much for your time.
  2. oh i see. This is one of my hw assignments and it...

    oh i see. This is one of my hw assignments and it stated that recursion was mandatory. Imo i think a for loop would make this process much easier, but i can't do that.
  3. because 6 is even*

    because 6 is even*
  4. Sorry i meant to ask why i was getting zero as my...

    Sorry i meant to ask why i was getting zero as my answer. Yea i understand that it should be 10, but where did i go wrong? I understand why i get 0 for my very first num, because 10 is even; however,...
  5. Recursive function that returns the sum of all prime numbers from 2-n.

    When i use 6 as my n, i get 0, which makes sense to me.;however, why do i get 6 for my final result? Why does it not do 0+5+...etc..?


    //source.c file
    #include "Header.h"
    unsigned int...
  6. I should have caught that. Thank you very much.

    I should have caught that. Thank you very much.
  7. How do i assign pointers to specific array values?

    Am i assigning the pointers incorrectly?
    for (c = 0; c < 5; c++)

    printf("%d\n", array[c]);
    *p1 == array[0];
    *p2 == array[1];
    *p3 == array[2];
    *p4 == array[3];
    *p5 == array[4];...
  8. Replies
    10
    Views
    2,234

    I have not learned about array; however, your...

    I have not learned about array; however, your answer has helped me. I can not believe i forgot about that. Thank you very much.
  9. Replies
    10
    Views
    2,234

    not sure what i am doing wrong.

    The requirement for this project is
    1)double calculate_deviation (double number, double mean) - Determines the deviation of number from the mean and returns the result. The deviation may be...
  10. Character encoding: encoded_character = 10 + (plaintext_character - 'a') + 'A'

    This is my code so far

    char encoded_character = NULL, plaintext_character = NULL;




    //3.1 Get encoded_character and plaintext_character from user
    printf("Please input your plaintext...
  11. Thanks

    Yea it worked, but the volume of a cylinder does not include .333333. But if it did, inputing .3333333 instead of (1/3) works, so thanks.
  12. Volume of a cylinder: volume_cylinder = PI * radius2 * height

    /*Name:Brian
    Date:9/3/17
    First Project


    */
Results 1 to 12 of 12