Search:

Type: Posts; User: wiz23

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: Sorting list

    by wiz23
    Replies
    2
    Views
    1,021

    Sorting list

    I am currently working on a sorting list and I want to find the min, half and max from the sorted list. I have already sorted the list as follows:


    #include <iostream>
    #include <iomanip>
    ...
  2. Thread: Alignment

    by wiz23
    Replies
    9
    Views
    1,470

    I still having trouble getting the right...

    I still having trouble getting the right alignment on the outfile text file, the expected output should look like this:

    s4569 Barnett, Linda D 44.80 F
    s5333 Reefs, Christopher D...
  3. Thread: Alignment

    by wiz23
    Replies
    9
    Views
    1,470

    Thankx guys, I now know the left justified but...

    Thankx guys, I now know the left justified but what about showing the D in the 28 space part?
  4. Thread: Alignment

    by wiz23
    Replies
    9
    Views
    1,470

    Alignment

    I currently got this 2 lines on the outfile text file:

    s1012 Bennet, Anne D 56.20 P
    s3343 Johnson, Samuel D 68.60 Cr
    I want to display "D" on the 28 column(space) in both lines....
  5. Replies
    6
    Views
    1,037

    Oh OK, thanx. I can see them in a better layout.

    Oh OK, thanx. I can see them in a better layout.
  6. Replies
    6
    Views
    1,037

    I use Notepad to see the text file.

    I use Notepad to see the text file.
  7. Replies
    6
    Views
    1,037

    Writing to text file

    When OutFile to a text file, why does it display in a straight line even though I have set << endl; at the end?
  8. Thread: Average score

    by wiz23
    Replies
    22
    Views
    4,056

    I want to calculate the actual average score from...

    I want to calculate the actual average score from these two input test files, one is called StudentsDay.txt and the other one is called StudentsEvening.txt
    StudentsDay.txt look like this:


    Code:...
  9. Thread: Average score

    by wiz23
    Replies
    22
    Views
    4,056

    TotalAverage + AverageDay = TotalAverage;...

    TotalAverage + AverageDay = TotalAverage;
    TotalAverage + AverageEvening = TotalAverage;
  10. Thread: Average score

    by wiz23
    Replies
    22
    Views
    4,056

    I only got 6 students 3 from day and 3 from...

    I only got 6 students 3 from day and 3 from evening. So is it like this:


    #include <fstream>
    #include <iomanip>
    #include <string>
    using namespace std;

    int main()
    {
  11. Thread: Average score

    by wiz23
    Replies
    22
    Views
    4,056

    TotalAverage = 50; TotalAverage + 60 =...

    TotalAverage = 50;
    TotalAverage + 60 = TotalAverage;
  12. Thread: Average score

    by wiz23
    Replies
    22
    Views
    4,056

    float TotalAverage = 60;

    float TotalAverage = 60;
  13. Thread: Average score

    by wiz23
    Replies
    22
    Views
    4,056

    So I put float TotalAverage = 0; Then change...

    So I put float
    TotalAverage = 0;
    Then change what?
  14. Thread: Average score

    by wiz23
    Replies
    22
    Views
    4,056

    I'm sorry if I done it wrong but the variable...

    I'm sorry if I done it wrong but the variable that has the average student score in it are AverageDay and AverageEvening.


    #include <fstream>
    #include <iomanip>
    #include <string>
    using...
  15. Thread: Average score

    by wiz23
    Replies
    22
    Views
    4,056

    Is it this? ...

    Is it this?


    inFileDay>>score1>>score2>>score3>>score4>>score5;

    AverageDay=static_cast<double>(score1+score2+score3+score4+score5)/5.0;

    outFile<<AverageDay<<" ";
    ...
  16. Thread: Average score

    by wiz23
    Replies
    22
    Views
    4,056

    Average score

    I want to calculate the actual average score from these two input test files, one is called StudentsDay.txt and the other one is called StudentsEvening.txt
    StudentsDay.txt look like this:

    s1012...
  17. Replies
    46
    Views
    5,173

    Just one thing, I also need the grade at the end.

    Just one thing, I also need the grade at the end.
  18. Replies
    46
    Views
    5,173

    Thanx, but how can it recognise whether the...

    Thanx, but how can it recognise whether the maximum and minimum score student is from day or evening. Because the expected output should look like this:
    For maximum:

    s1236 Bridges, Tony D 82.20 ...
  19. Replies
    46
    Views
    5,173

    I just only need one maximum which is the 93.80,...

    I just only need one maximum which is the 93.80, along with the studentId and name so do I just put the outFile studentID <<surname << givenname << D/E << 93.80 << grade <<endl;

    Does 93.80...
  20. Replies
    46
    Views
    5,173

    I need this to get it work, I have tried many...

    I need this to get it work, I have tried many different combination but no luck. What is the best way to show the max and min score?
  21. Replies
    46
    Views
    5,173

    How can I fix this?

    How can I fix this?
  22. Replies
    46
    Views
    5,173

    So how can I make it work to display max and min...

    So how can I make it work to display max and min score?
  23. Replies
    46
    Views
    5,173

    The maximum and minimum should look this once is...

    The maximum and minimum should look this once is done, for maximum:

    s1236 Bridges, Tony D 82.20 D

    For minimum:

    s1012 Bennet, Anne D 56.20 P

    Here is all my code,
  24. Replies
    46
    Views
    5,173

    Can somebody check this code as I need to output...

    Can somebody check this code as I need to output the maximum and minimum average score:


    while (!inFileDay.eof() )
    {
    int score1, score2, score3, score4, score5;
    int...
  25. Replies
    46
    Views
    5,173

    Maximum and Minimum score

    I am trying to find the maximum and minimum average score from the student in both day and evening from the text files.
    Now I want to find the maximum average from day then find the maximum from...
Results 1 to 25 of 48
Page 1 of 2 1 2