User Profile

Collapse

Profile Sidebar

Collapse
namcintosh
namcintosh
Last Activity: May 2 '07, 08:18 PM
Joined: Apr 5 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • namcintosh
    started a topic A Word of Thanks
    in C

    A Word of Thanks

    I just wanted to thank all of those who helped me out with my programs. Thanks to you guys and my strong determination, I got a B out of my computer programming course--and I'm not even a computer science major! My instructor said that I was an excellent student. You all didn't give me all of the answers, but you pushed me to learn on my own.

    Thanks, again for all of your help!!!
    See more | Go to post

  • namcintosh
    replied to Finding the lowest score
    in C
    It's been solved.

    Thanks so much for all of your help you guys....
    See more | Go to post

    Leave a comment:


  • namcintosh
    replied to Finding the lowest score
    in C
    I am still having problems:-(

    I am following you all's suggestions, and it's still coming out to be 125.
    See more | Go to post

    Leave a comment:


  • namcintosh
    replied to Finding the lowest score
    in C
    This is what I did:

    Code:
    void getscore(int&, int&, int&, int&, int&);
    int findLowest (int, int, int, int, int);
    void calcAverage (int, int, int, int, int, int, int);
    int main()
    {
            int average=0, score1=0, score2=0, score3=0, score4=0, score5=0, small=0;
    
            getscore (score1, score2, score3, score4, score5);
            calcAverage (average, score1, score2,
    ...
    See more | Go to post

    Leave a comment:


  • namcintosh
    replied to Finding the lowest score
    in C
    I hate to sound like a complete martian, but can you please explain to me what each line means???...
    See more | Go to post

    Leave a comment:


  • namcintosh
    replied to Finding the lowest score
    in C
    Yes, it was, and I still ran crazy. Run my program, please and you will see what I mean....
    See more | Go to post

    Leave a comment:


  • namcintosh
    replied to Finding the lowest score
    in C
    What do u mean, how did I add the caller...
    See more | Go to post

    Leave a comment:


  • namcintosh
    replied to Finding the lowest score
    in C
    I tried that, and the same thing happened.

    Actually, here are the instructions:
    void calcAverage()-should calculate and display the average of the four highest scores. This function should be called just once by main and should be passed the five scores.

    int findLowest()-should find and return the lowest of the five scores passed to it. It should be called by the calcAverage, who uses the function to determine...
    See more | Go to post

    Leave a comment:


  • namcintosh
    replied to Finding the lowest score
    in C
    I'm finding small in my findLowest() function...
    See more | Go to post

    Leave a comment:


  • namcintosh
    replied to Finding the lowest score
    in C
    I tried that, and this is what happened:

    Code:
    int main()
    {
            int average = 0, score1, score2, score3, score4, score5, small;
    
            getscore (score1, score2, score3, score4, score5);
            calcAverage (average, score1, score2, score3, score4, score5, small);
            getch();
            return 0;
    }
    Enter first score: 100
    Enter second score: 100
    Enter third
    ...
    See more | Go to post

    Leave a comment:


  • namcintosh
    replied to Finding the lowest score
    in C
    Uh- oh, I think I ran into a problem:

    When I entered the values 100, 100, 100, 100, 100, it gave me an average of 125. Why did that happen???...
    See more | Go to post

    Leave a comment:


  • namcintosh
    replied to Finding the lowest score
    in C
    Alright, then, here is my program.

    I've already ran the program, but I still want you to run int and see what you think of it.


    Code:
    #include <iostream>
    #include <conio>
    using namespace std;
    
    //Function prototype
    void getscore(int&, int&, int&, int&, int&);
    int findLowest (int, int, int, int, int, int);
    void calcAverage (int, int, int,
    ...
    See more | Go to post
    Last edited by namcintosh; Apr 24 '07, 03:56 PM. Reason: Correction

    Leave a comment:


  • namcintosh
    replied to Finding the lowest score
    in C
    Okay, this is what I came up with:


    Code:
    void getscore(int&, int&, int&, int&, int&);
    int findLowest (int, int, int, int, int, int);
    [B]void calcAverage (int)[/B]
    int main()
    {
            int average, score1, score2, score3, score4, score5;
    
            getscore (score1, score2, score3, score4, score5);
            calcAverage (average)
            getch();
    ...
    See more | Go to post

    Leave a comment:


  • namcintosh
    replied to Finding the lowest score
    in C
    Ok, but now I am having problems with the void calcAverage() function. This function should calculate and display the average of the four highest test scores. It should also be called just once by main, and should be passed the five scores.

    Now, here s my program so far:

    Code:
    #include <iostream>
    #include <conio>
    using namespace std;
    
    //Function prototype
    void getscore(int&,
    ...
    See more | Go to post

    Leave a comment:


  • namcintosh
    replied to Finding the lowest score
    in C
    Okay, thanks!...
    See more | Go to post

    Leave a comment:


  • namcintosh
    replied to Finding the lowest score
    in C
    OK, so how can I get it to return a value...
    See more | Go to post

    Leave a comment:


  • namcintosh
    replied to Finding the lowest score
    in C
    Oh, why Savage, please let me know. I am very interested. :-)...
    See more | Go to post

    Leave a comment:


  • namcintosh
    replied to Finding the lowest score
    in C
    Oh. I though that at first all I could do was just declare LOW to be a large number and then do the if/else if statements to test it out. But I guess it didn't work because all of the numbers are smaller than 1000....
    See more | Go to post

    Leave a comment:


  • namcintosh
    replied to Finding the lowest score
    in C
    You have one more what

    Is there any way that I can use it doing the if/else if statements...
    See more | Go to post

    Leave a comment:


  • namcintosh
    replied to Finding the lowest score
    in C
    Why are there four scores instead of five??? There should be five scores
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...