Search:

Type: Posts; User: Chinnie15

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,246

    Edit: Never mind. Found my mistake. Thank you...

    Edit: Never mind. Found my mistake.

    Thank you so much for your help! :)
  2. Replies
    4
    Views
    1,246

    Ugh, thanks. It's been a few weeks since we've...

    Ugh, thanks. It's been a few weeks since we've done this, and I thought I was remembering correctly. I'll go back and review my old programs/notes, and will be back if I have more issues. Thanks!
  3. Replies
    4
    Views
    1,246

    Problem making save function?

    Hello everyone. I am a little stuck on my project that I am working on. I am almost done, but this save file is the problem. I have to give the user an option to save what their results of the...
  4. Replies
    3
    Views
    1,605

    Thank you! :) I got it!

    Thank you! :) I got it!
  5. Replies
    3
    Views
    1,605

    Averaging numbers in a while loop?

    I had to write a program that opens a file, reads a list of doubles, and then averages them. The result SHOULD be 40 something (i don't remember exactly and don't have time to average them again...
  6. I got it!!! Thank you guys sooo much! :D Here...

    I got it!!! Thank you guys sooo much! :D

    Here is the finished code. I also went ahead and did the smallest number as well.



    # include <stdio.h>


    int main()
  7. Oh, I can do that? This is what it says in my...

    Oh, I can do that? This is what it says in my notes:



    Would this be considered a different scenario, though? That's the only reason I didn't try it.

    Thanks! :)
  8. It's a .txt file and it looks exactly like this:...

    It's a .txt file and it looks exactly like this:


    23 11 22 98 55 35 43 8 60 31 59 27 95 19 2 81 94 5 47 20

    Hmm, would I not use an array maybe? But, I also can't see declaring 20 different...
  9. Problem with getting largest number read from a file?

    Hello. I have a program that I have to write that reads 20 ints in from a file and then lists the greatest and smallest ones. For right now I'm just trying to make it run to get the largest number,...
  10. Replies
    5
    Views
    1,005

    Kentric: I didn't put an '&' because I was...

    Kentric:

    I didn't put an '&' because I was taught that you do not need one when you are working with arrays (both & and arrays point to a memory location).

    rags_to_riches:

    Thanks for your...
  11. Replies
    5
    Views
    1,005

    Segmentation Fault?

    Hello!

    I just completed writing a program to ask a user for 2 words, pass them into a function, and use strcmp to let the user know which word is larger (or if they are equal). The program...
  12. Replies
    4
    Views
    6,820

    Thank you! :) And yes, the reason I put the...

    Thank you! :) And yes, the reason I put the double parenthesis there is because the compiler wasn't happy. But, for some reason, I thought that would fix the problem too (I thought it was either use...
  13. Replies
    4
    Views
    6,820

    Days of the week program

    Hello!

    I am stuck on this program I have to write for the days of the week. The days of the week is in a string array, and the program asks the user for a number between 1 and 7. The program is...
  14. Replies
    5
    Views
    4,759

    Thank you guys!!! You put me on the right track....

    Thank you guys!!! You put me on the right track. I got it! :)



    # include <stdio.h>

    /*prototypes*/
    double find_average(double *array, double size);

    int main()
  15. Replies
    5
    Views
    4,759

    I am honestly not sure. I have only that model to...

    I am honestly not sure. I have only that model to go off of. In class, he said, "Oh, and here are a few models you can refer to later", and that was it. And, according to what was given, I thought...
  16. Replies
    5
    Views
    4,759

    Help finding average?

    Ok, I realize I just asked for help, but I am so confused right now. I have been working for the past hour on another problem (which is just an add on to the last one I posted about), and I know I am...
  17. Replies
    5
    Views
    1,475

    Yup, I got it! :) Thanks! It's working now!

    Yup, I got it! :) Thanks! It's working now!
  18. Replies
    5
    Views
    1,475

    Ick, didn't work. :( This is the output I am...

    Ick, didn't work. :( This is the output I am getting:

    The grades are:
    0.0,0.0,0.0,0.0,0.0,

    Thank you for your help! :)
  19. Replies
    5
    Views
    1,475

    Loop only printing zeros??

    I am writing a program for my programming class and I have run into a problem. I got the entire program completed/compiled, but for the output, it's printing only zeros?

    This is the HW problem:
    ...
  20. Replies
    2
    Views
    1,082

    Thank you! That's what I thought I had to do, but...

    Thank you! That's what I thought I had to do, but the way it was worded I thought it would be wrong. I've got it now! :)
  21. Replies
    2
    Views
    1,082

    Returning using a void??

    Hello!

    So, I am completely stuck on my last HW problem. This is the problem it gives to me:

    Change the printNumber method :


    Change the code INSIDE the method to have it RETURN the...
  22. Replies
    5
    Views
    8,576

    I got it! :D It's all coming out right, but...

    I got it! :D It's all coming out right, but hopefully the code makes sense.




    # include <stdio.h>
    # include <math.h>

    int main()
    {
  23. Replies
    5
    Views
    8,576

    Oops! Well, if it means anything I meant to...

    Oops! Well, if it means anything I meant to remove the first stated Pythagorean theorem after I put it in the if statement. I just forgot to remove it. But yeah, I did define it twice differently...
  24. Replies
    5
    Views
    8,576

    Right Triangle Program

    Hello again!

    I am having some trouble on this right triangle program I have to write for class. I have it written out, and it compiled/runs just fine. The problem is that it says everything is a...
  25. Replies
    7
    Views
    5,050

    Thanks! :) I'll remember that.

    Thanks! :) I'll remember that.
Results 1 to 25 of 28
Page 1 of 2 1 2