Search:

Type: Posts; User: tysawyers13

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    4
    Views
    2,743

    Yes i understand, I did not mean to type that in...

    Yes i understand, I did not mean to type that in this forum.
  2. Replies
    4
    Views
    2,743

    I am just not entirely sure how to store the...

    I am just not entirely sure how to store the value of the getPascalsTriangle in a pointer to a pointer? As in the other thread he does not store it in a pointer.
  3. Replies
    4
    Views
    2,743

    C Programming Pascals Triangle

    I have to write a program to print pascals triangle and stores it in a pointer to a pointer , which I am not entirely sure how to do. I also have to write the file and read it, then create a binary...
  4. Replies
    5
    Views
    13,151

    It is working fine now, thank you very much!

    It is working fine now, thank you very much!
  5. Replies
    5
    Views
    13,151

    Okay, so everything is working but the above...

    Okay, so everything is working but the above average function. I put it in another function but it still won't give me the right answer.



    void aboveAverage(double average, int num_elements,...
  6. Replies
    5
    Views
    13,151

    Normalization Problem

    I must write a function that has a one dimensional double array and the number of values in the array as its arguments. Normalize the values. I must also print the maximum, minimum, average and...
  7. Replies
    63
    Views
    9,072

    Okay i am pretty sure I have it now, thanks a lot...

    Okay i am pretty sure I have it now, thanks a lot !
  8. Replies
    63
    Views
    9,072

    I mean if new door was equal to 0 then you lost.

    I mean if new door was equal to 0 then you lost.
  9. Replies
    63
    Views
    9,072

    So I must change the last if statement? I thought...

    So I must change the last if statement? I thought that if new door would be equal to 1 then it should be true?\


    if (choice==1)
    newdoor = choice;
    else if (choice==2)
    ...
  10. Replies
    63
    Views
    9,072

    Yes i have changed that, but now I get a winning...

    Yes i have changed that, but now I get a winning answer an unlikely amount of times?
  11. Replies
    63
    Views
    9,072

    How would I get the program to find the only...

    How would I get the program to find the only remaining door if the prize is in the door you choose before the first door is opened?
  12. Replies
    63
    Views
    9,072

    Actually i get that if you change your door you...

    Actually i get that if you change your door you always win.
  13. Replies
    63
    Views
    9,072

    Yes that makes a lot of sense, don't know why I...

    Yes that makes a lot of sense, don't know why I did that.. But now when I run the program I always get the result of winning? Is there something wrong with my random number generator then?
  14. Replies
    63
    Views
    9,072

    #include #include void...

    #include <stdio.h>
    #include <stdlib.h>


    void game()


    {
    int door[3]={0,0,0};
    int choice, i, newdoor, originaldoor, openeddoor, randomnumber;
  15. Replies
    63
    Views
    9,072

    Okay so i have fixed all those errors but I still...

    Okay so i have fixed all those errors but I still do not get correct results. I also did not get any errors or warnings for my earlier code.
  16. Replies
    63
    Views
    9,072

    I have fixed that but it is still not working...

    I have fixed that but it is still not working properly



    #include <stdio.h>
    #include <stdlib.h>


    int game()
  17. Replies
    63
    Views
    9,072

    I am pretty sure there is still a problem with...

    I am pretty sure there is still a problem with the random number though
  18. Replies
    63
    Views
    9,072

    This is what I have now, I am still working on...

    This is what I have now, I am still working on the final part of the loop:


    #include <stdio.h>
    #include <stdlib.h>


    int game()
  19. Replies
    63
    Views
    9,072

    I was told that "door[randomnumber] = 1; " would...

    I was told that "door[randomnumber] = 1; " would randomly put the prize behind the door..
  20. Replies
    63
    Views
    9,072

    Okay, now i just don't know how to open a random...

    Okay, now i just don't know how to open a random door..
  21. Replies
    63
    Views
    9,072

    Okay, so if you have the prize in the original...

    Okay, so if you have the prize in the original door you picked there would be 2 doors to open?
  22. Replies
    63
    Views
    9,072

    Again I have basic knowledge of programming, so...

    Again I have basic knowledge of programming, so this is very difficult for me and I know that this code is incorrect.
  23. Replies
    63
    Views
    9,072

    Okay, so I still do not understand how to tell if...

    Okay, so I still do not understand how to tell if there are two doors available or how to get the program to open a door but this is what I have



    #include <stdio.h>
    #include <stdlib.h>

    ...
  24. Replies
    63
    Views
    9,072

    That is the part I am confused about, deciding...

    That is the part I am confused about, deciding which door to open.
  25. Replies
    63
    Views
    9,072

    Scratch the printf statement on line 17.

    Scratch the printf statement on line 17.
Results 1 to 25 of 30
Page 1 of 2 1 2