Search:

Type: Posts; User: BeldenML

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    17
    Views
    9,132

    Thanks so much everyone!! The following code...

    Thanks so much everyone!! The following code worked perfectly! I was trying to use the static char as mentioned earlier today because I was thinking that was an issue as well but it still would not...
  2. Replies
    17
    Views
    9,132

    right but thats what im asking help on. I know...

    right but thats what im asking help on. I know that thats not the correct printf statement. Also I know that the other printf statement in the function is not supposed to be there but thats what I...
  3. Replies
    17
    Views
    9,132

    I tried putting in that printf state but my...

    I tried putting in that printf state but my output is still (null)


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

    char *int_to_binary(int);
    char b[80];
    int main(void)
    { ...
  4. Replies
    17
    Views
    9,132

    Converting Decimal to Binary

    Hello all,

    This is my project..
    "Write a function to return the binary representation of the number x as a character string. For example : if x = 17 is passed to the function the return value...
  5. Replies
    19
    Views
    5,320

    ok well Im finished and everything works! Thanks...

    ok well Im finished and everything works! Thanks for the help everyone..heres the code! Does spacing and everything look ok?



    #include <stdio.h>
    /*

    int isperfect(int x)
    {
    int...
  6. Replies
    19
    Views
    5,320

    Hey Salem, wow I have no idea what I was...

    Hey Salem, wow I have no idea what I was thinking. I think I was in kind of a daze last night from the long day. I swear calc 3, diff eq, physics, logic design, and this class are just burning me...
  7. Replies
    19
    Views
    5,320

    That will yield this... 6+ 6+ 28+ 28+ 28+...

    That will yield this...

    6+
    6+
    28+
    28+
    28+
    28+
    496+
    496+
  8. Replies
    19
    Views
    5,320

    Ok so paste it in my main () after It finds "if...

    Ok so paste it in my main () after It finds "if isperfect(a)"? and then add a printf statement to print the total? Im not quite understanding. I know you say just cut and paste but its not so...
  9. Replies
    19
    Views
    5,320

    Thanks anduril for the tip. Can you explain...

    Thanks anduril for the tip. Can you explain further the "dumb" way you suggested? We dont learn about arrays until next week so I dont want to write the code using an array. How would I reuse the...
  10. Replies
    19
    Views
    5,320

    Hi salem thanks so much for the response! ...

    Hi salem thanks so much for the response! However, we have not covered arrays yet so I cannot use them. Even though from your comments and also grumpys it looks like that would be the proper way to...
  11. Replies
    19
    Views
    5,320

    Ok well this is what I did and it yields the...

    Ok well this is what I did and it yields the correct output I need but I know there is a better way. All I need is put what I want in the print f statement. So again if someone could help me find a...
  12. Replies
    19
    Views
    5,320

    Im not sure how to store the factors?...

    Im not sure how to store the factors?...
  13. Replies
    19
    Views
    5,320

    ok grumpy nowhere in my question did I ask for...

    ok grumpy nowhere in my question did I ask for anyone to write code for me. Just was stuck and wanting some advice, which I appreciate. I have not learned arrays yet so that suggestion is out the...
  14. Replies
    19
    Views
    5,320

    Yes it does Salem but it only prints the number.

    Yes it does Salem but it only prints the number.
  15. Replies
    19
    Views
    5,320

    Perfect Numbers

    Hey everyone hope all is well! Its that time of the week again and Im stuck already! lol I think I have gotten far this time, but still cant get things right.

    The project calls for a program...
  16. Replies
    35
    Views
    7,139

    Yes! I think I finally have it working. I...

    Yes! I think I finally have it working. I changed my low if statement that it must be greater than zero. This is my final draft so let me know what you guys think!



    int main(void)
    {
    ...
  17. Replies
    35
    Views
    7,139

    ok here i changed low = 100 but Im having the...

    ok here i changed low = 100 but Im having the same problem where it is reading my exit negative number as the lowest number. Heres what I have now



    int main(void)
    {
    float i;
    int...
  18. Replies
    35
    Views
    7,139

    Oh i figured out why my avg was off. I needed to...

    Oh i figured out why my avg was off. I needed to place my sum statement after the break statement. Now I have avg, high, and sum working. I just need to figure out low.
  19. Replies
    35
    Views
    7,139

    but now my average isnt working and the lowest...

    but now my average isnt working and the lowest number its printing is the -1. I think I need to move some things around but not sure where...
  20. Replies
    35
    Views
    7,139

    This is what I have so far but its not working ...

    This is what I have so far but its not working




    int main(void)
    {
    float i;
    int num,sum, high, low, var;
  21. Replies
    35
    Views
    7,139

    oh ok I see! Im not sure how to write that code...

    oh ok I see! Im not sure how to write that code though. should I set high=0 and low=0 and then add another if statement saying



    if (num >= high)
    {
    num=high
    }
  22. Replies
    35
    Views
    7,139

    I thought I was saving the scores read as "int...

    I thought I was saving the scores read as "int num"? laserlight Im kind of confused now..
  23. Replies
    35
    Views
    7,139

    Tater what does the "Return 0" you added on line...

    Tater what does the "Return 0" you added on line 21 do again?
  24. Replies
    35
    Views
    7,139

    ok Im back on it! laserlight let me TRY to add it...

    ok Im back on it! laserlight let me TRY to add it into the loop and let me know if im on the right track..THANKS!
  25. Replies
    35
    Views
    7,139

    Hey guys the network at school I was logge dinto...

    Hey guys the network at school I was logge dinto and saving my code on is down. Im not sure why but either way its 1am and I need to get at least a few hrs of sleep. I will be right back at it in...
Results 1 to 25 of 39
Page 1 of 2 1 2