Search:

Type: Posts; User: pavlora

Search: Search took 0.00 seconds.

  1. Nadroj, Thank you, it's finally working! ...

    Nadroj,

    Thank you, it's finally working!

    I've really appreciated all the time you've taken to help me and especially how patient you've been. I know I've been asking a lot of questions and I...
  2. Here is getScore: void getScore(float...

    Here is getScore:


    void getScore(float &tscore)
    {
    float score;

    cout << "Please enter a test score. ";
    cin >> score;
  3. Okay, after changing the doubles to floats, the...

    Okay, after changing the doubles to floats, the program no longer crashes when outputting the scores, but the numbers are still a problem.

    Here is a sample run:

    Please enter a test score. 4...
  4. Yes, I changed lowest to int in calcAverage. ...

    Yes, I changed lowest to int in calcAverage.

    Re: the thing that was suggested to fix the e notation (fixed manipulator) - the program crashes before outputting the numbers when I include this.
  5. Here's main: int main() { double...

    Here's main:


    int main()
    {
    double score1,
    score2,
    score3,
    score4,
    score5;
  6. Nadroj, I've made the corrections you've...

    Nadroj,

    I've made the corrections you've pointed out. Now findLowest consistently returns 5. Also, the program compiles, but crashes when it's going to output the test scores. When I remove fixed...
  7. I understand that but we haven't gotten that far...

    I understand that but we haven't gotten that far in my course.
  8. Nadroj, Okay, I can totally understand that....

    Nadroj,

    Okay, I can totally understand that. Thanks. I've done what you suggested, but somewhere along the way I made a mistake and I have two problems: 1.) findLowest always returns 2, and 2.)...
  9. Nadroj, Thanks for taking the time to respond...

    Nadroj,

    Thanks for taking the time to respond with such an in-depth post. Sorry about posting erroneous code - it had some things (the grd1) in it I was using to diagnose the problem with the e...
  10. King Mir, thanks for responding. I made the edit...

    King Mir, thanks for responding. I made the edit you suggested, but when I run the program it displays "The average of the four highest test scores is " and crashes. Any ideas?
  11. Lowest Score Drop - reference parameter variable, values, etc.

    Hey, everyone. I'm having a problem with a program and I'm hoping someone could help me out. The instructions are as follows:

    Write a program that calculates the average of a group of test scores,...
Results 1 to 11 of 11