Help with Arrays - Need Help with inFiles & outFiles

"""The history teacher at your school needs help in grading a True/False test. The students' IDs and test answers are stored in a file. The first entry in the file contains answers to the test in the form:

TFFTFFTTTTFFTFTFTFTT

Every other entry in the file is the student ID, followed by a blank, followed by the student's responses. For example, the entry...

ABC54301 TFTFTFTT TFTFTFFTTFT

indicates that the student ID is ABC54301 and the answer to question 1 is True, the answer to question 2 is False, and so on. This student did not answer question 9. The exam has 20 questions, and the class has more than 150 students. Each correct answer is awarded two points, each wrong answer gets one point deducted, and no answer gets zero points. Write a program that processes the test data. The output should be the student's ID, followed by the answers, followed by the test score, followed by the test grade.
Assume the following grade scale: 90%-100%, A; 80%-89.99%, B; 70%-79.99%, C; 60%-69.99%, D; 0%-59.99%, F."""

The question above is what I am dealing with.
I have copy and pasted my coding below.
I have the entire coding written up, and I have my text document with the answer key & student answers as well.
I am using xCode to write this program.

Can someone please tell me how to properly apply text documents, so the program can read it? I have dragged & dropped the text document into the left-side bar of xCode, hoping that would fix the case. But, I do not understand why my code is not operating correctly.
Any pointers? I will be refreshing this page frequently.
Thank you for the help!!!
Last edited on
ps; I'm not looking for the flat-out answer.
I just need pointed in the right direction.
I've been working on this for about 8 hours now.
Last edited on
please use code tags, it is very hard to read without them :)

EDIT: when i work on projects that require in and out files, making functions really helps organize the program and helps you find mistakes. Try splitting the program into main, Readfile and WriteFile. Once you put the code into tags id be glad to help you.
Last edited on
THANKS for offering the help! :)
Last edited on
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#include <iostream>
#include <fstream>
#include <string>
#include <stdlib.h>

using namespace std;

int main() 
{
    string id;
    char answers [20]; 
    char studentID [9];
    char response; 
    char fileName [25];
    int testScore;
    
    cout << "\nThis program will take the teacher's correct test answers" << endl;
    cout << "As well as the 150 students answers, and grade the tests.\n" << endl;
    
    cout << "Enter the input file name: ";
    cin >> fileName;
    
    ifstream inFile; 
    inFile.open ("grades.txt");
    
    ofstream outFile;
    outFile.open ("output.txt");
    
    cout << "\n      ID                    Answers %  Grade";
    
    for (int i=0; i<20; i++)
        inFile >> answers [i];
    
    while ( ( inFile >> id) != NULL)
    {
        cout << "\n" << id << " ";
        
        inFile.get(response);
        
        testScore = 0;
        
        for (int i = 0; i < 20; i++)
        {
            inFile.get (response);
            
            cout << " " << response;
            
            if (response == ' ')
                testScore += 0;
            else
                if (response == answers [i])
                    testScore += 2;
                else
                    testScore += -1;
        }
        
        cout << "   " << testScore << "  ";
        
        double p = testScore * 2.5;
        
        if (p >= 90)
            cout << 'A';
        else
            if (p >=80)
                cout << 'B';
            else
                if (p >=70)
                    cout << 'C';
                else
                    if (p >=60)
                        cout << 'D';
                    else
                        cout << 'F';
    }
    
    inFile.close();
    outFile.close();
    return 0;
}


Sry for the noob mistake. ^_^;
Please help me fix this application and get it running!!!
I'm eager to learn, and have a few hours until it is needed.
I will be by my computer all night with coffee.
Last edited on
Since I resubmitted my Coding..
I figured I would resubmit my "grades.txt" document as well!
This time, with the EDIT feature...

This first line is the Answer Key.
The second line is empty.
The 3rd to 153rd line are Student IDs & Test Answers.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
TFFTFFTTTTFFTFTFTFTT

ABC54301 TFTFTFTT TFTFTFFTTFT
ABC59310 FTTFTFTTFTTFTTTFTFTT
ABC39583 FTTFTFTTFTFFFTFTTFTF
ABC38493 FTFTTFTFTFTTF TFFTTT
ABC10394 FTTFTFTFFTFTFTTFTTFT
ABC10006 FTFTFFFTFFTFTFTFFTFT
ABC10007 FTFTFFTFTFTTTTFFTTFT
ABC38558 FTFTTFTFFTFFFTFTFTFF
ABC10439 FTTTFTFTFTFTTFTFTFFT
ABC10010 FTTFTFFFFTFTTTFTFTFT
ABC10011 FTFFTFTTFTFTFFFTFTFT
ABC10512 FTFFTTTFTFTTTFTFTFTF
ABC10013 FFTTFTFTFFFTFTFFTFTT
ABC10014 FTTFTTFTFTTTFTFTTFTT
ABC10415 FTTFTTFTTFTTTTTFTFTF
ABC10016 FTTTFTFTTFFTFTTFTFTT
ABC10017 FTTFTTFTTFTTFTFTTFTT
ABC10018 FTFTTFTTFTFTTFTFTTTF
ABC10019 FTFTTFTTTFTFTTFFTTTF
ABC10020 FTTFTFTTFTFTTFFTFTFT
ABC10021 FTFFTTTFTTFTFFTTTTFT
ABC10022 FTTFTFTFTTFTFTFTTTFT
ABC10023 FTFTFTFTFTTFTFTFTFTT
ABC10024 FTTTFTTFTFTFTFTTFTFT
ABC11025 FTTFTTFTFFFTFTTFTFTF
ABC10026 FTTFTFTFTTTFTFTFTFTT
ABC10027 FTFTTFTFTTFTFTFTTTFT
ABC10028 FTTFTTFTTFTFTTTFTFTT
ABC10029 TFTTFTTFTTFTTFTFTTTF
ABC10030 TFTTFTTFTFTTFTFTTFTF
ABC10031 FTTFTFTFTFTFTFFTTFTF
ABC10032 FTTFFTTFTFTTFTFTFTFT
ABC10033 FTTFTFTTFTFTTFTFTTFT
ABC10034 TFTFTFFFTFTFTFTTFTFT
ABC10035 FTTFTTFTTFTFTFTTFTTT
ABC10036 TFTFTFTTTFTTFTTFTFTT
ABC10037 TFTFFTTFTFTTFTFFTTFT
ABC10038 FTTFTTFTTFTFTFTTFTFT
ABC10039 TTFTFTTFTTFTFFTTFTFT
ABC10040 FTFTTFTTFTFTFFTFFTTF
ABC10041 FTFFTFTTFTFTFFFTFTFT
ABC10542 FTFFTTTFTFTTTFTFTFTF
ABC10143 FFTTFTFTFFFTFTFFTFTT
ABC10044 FTTFTTFTFTTTFTFTTFTT
ABC10445 FTTFTTFTTFTTTTTFTFTF
ABC10046 FTTTFTFTTFFTFTTFTFTT
ABC10047 FTTFTTFTTFTTFTFTTFTT
ABC10048 FTFTTFTTFTFTTFTFTTTF
ABC10049 FTFTTFTTTFTFTTFFTTTF
ABC10050 TFTTFTTFTFTTFTFTFTFT
ABC10051 TFTTFTFTFTFTFTFTFTFT
ABC10552 FTFFTTTFTFTTTFTFTFTF
ABC10053 FFTTFTFTFFFTFTFFTFTT
ABC10054 FTTFTTFTFTTTFTFTTFTT
ABC10455 FTTFTTFTTFTTTTTFTFTF
ABC10056 FTTTFTFTTFFTFTTFTFTT
ABC10057 FTTFTTFTTFTTFTFTTFTT
ABC10058 FTFTTFTTFTFTTFTFTTTF
ABC10059 FTFTTFTTTFTFTTFFTTTF
ABC10060 FTTFTFTTFTFTTFFTFTFT
ABC10061 FTFFTTTFTTFTFFTTTTFT
ABC10062 FTTFTFTFTTFTFTFTTTFT
ABC10063 FTFTFTFTFTTFTFTFTFTT
ABC10064 FTTTFTTFTFTFTFTTFTFT
ABC11065 FTTFTTFTFFFTFTTFTFTF
ABC10066 FTTFTFTFTTTFTFTFTFTT
ABC10067 FTFTTFTFTTFTFTFTTTFT
ABC10068 FTTFTTFTTFTFTTTFTFTT
ABC10069 TFTTFTTFTTFTTFTFTTTF
ABC10070 FTFTTFTTFTTFTFTFTFTF
ABC10071 FTFTFFFTFTTFTFTTTTFT
ABC10072 FFTTTFTTFTFTFTFTFTFF
ABC10073 FTTFTTFTFTFTFTTFTFTT
ABC10074 FTTFTFTTFFTTTFTFFTFT
ABC10075 FTFTTTFTFTFTFTFTFTFT
ABC54376 TFTFTFTT TFTFTFFTTFT
ABC59377 FTTFTFTTFTTFTTTFTFTT
ABC39578 FTTFTFTTFTFFFTFTTFTF
ABC38479 FTFTTFTFTFTTF TFFTTT
ABC10380 FTTFTFTFFTFTFTTFTTFT
ABC10081 FTFTFFFTFFTFTFTFFTFT
ABC10082 FTFTFFTFTFTTTTFFTTFT
ABC38583 FTFTTFTFFTFFFTFTFTFF
ABC10484 FTTTFTFTFTFTTFTFTFFT
ABC10085 FTTFTFFFFTFTTTFTFTFT
ABC10086 FTFFTFTTFTFTFFFTFTFT
ABC10587 FTFFTTTFTFTTTFTFTFTF
ABC10088 FFTTFTFTFFFTFTFFTFTT
ABC10089 FTTFTTFTFTTTFTFTTFTT
ABC10490 FTTFTTFTTFTTTTTFTFTF
ABC10091 FTTTFTFTTFFTFTTFTFTT
ABC10092 FTTFTTFTTFTTFTFTTFTT
ABC10093 FTFTTFTTFTFTTFTFTTTF
ABC10094 FTFTTFTTTFTFTTFFTTTF
ABC10095 FTTFTFTTFTFTTFFTFTFT
ABC10096 FTFFTTTFTTFTFFTTTTFT
ABC10097 FTTFTFTFTTFTFTFTTTFT
ABC10098 FTFTFTFTFTTFTFTFTFTT
ABC10099 FTTTFTTFTFTFTFTTFTFT
ABC11100 FTTFTTFTFFFTFTTFTFTF
ABC10101 FTTFTFTFTTTFTFTFTFTT
ABC10102 FTFTTFTFTTFTFTFTTTFT
ABC10103 FTTFTTFTTFTFTTTFTFTT
ABC10104 TFTTFTTFTTFTTFTFTTTF
ABC10105 TFTTFTTFTFTTFTFTTFTF
ABC10106 FTTFTFTFTFTFTFFTTFTF
ABC10107 FTTFFTTFTFTTFTFTFTFT
ABC10108 FTTFTFTTFTFTTFTFTTFT
ABC10109 TFTFTFFFTFTFTFTTFTFT
ABC10110 FTTFTTFTTFTFTFTTFTTT
ABC10111 TFTFTFTTTFTTFTTFTFTT
ABC10112 TFTFFTTFTFTTFTFFTTFT
ABC10113 FTTFTTFTTFTFTFTTFTFT
ABC10114 TTFTFTTFTTFTFFTTFTFT
ABC10115 FTFTTFTTFTFTFFTFFTTF
ABC10116 FTFFTFTTFTFTFFFTFTFT
ABC10117 FTFFTTTFTFTTTFTFTFTF
ABC10118 FFTTFTFTFFFTFTFFTFTT
ABC10119 FTTFTTFTFTTTFTFTTFTT
ABC10120 FTTFTTFTTFTTTTTFTFTF
ABC10121 FTTTFTFTTFFTFTTFTFTT
ABC10122 FTTFTTFTTFTTFTFTTFTT
ABC10123 FTFTTFTTFTFTTFTFTTTF
ABC10124 FTFTTFTTTFTFTTFFTTTF
ABC10125 TFTTFTTFTFTTFTFTFTFT
ABC10126 TFTTFTFTFTFTFTFTFTFT
ABC10127 FTFFTTTFTFTTTFTFTFTF
ABC10128 FFTTFTFTFFFTFTFFTFTT
ABC10129 FTTFTTFTFTTTFTFTTFTT
ABC10130 FTTFTTFTTFTTTTTFTFTF
ABC10131 FTTTFTFTTFFTFTTFTFTT
ABC10132 FTTFTTFTTFTTFTFTTFTT
ABC10133 FTFTTFTTFTFTTFTFTTTF
ABC10134 FTFTTFTTTFTFTTFFTTTF
ABC10135 FTTFTFTTFTFTTFFTFTFT
ABC10136 FTFFTTTFTTFTFFTTTTFT
ABC10137 FTTFTFTFTTFTFTFTTTFT
ABC10138 FTFTFTFTFTTFTFTFTFTT
ABC10139 FTTTFTTFTFTFTFTTFTFT
ABC11140 FTTFTTFTFFFTFTTFTFTF
ABC10141 FTTFTFTFTTTFTFTFTFTT
ABC10142 FTFTTFTFTTFTFTFTTTFT
ABC10143 FTTFTTFTTFTFTTTFTFTT
ABC10144 TFTTFTTFTTFTTFTFTTTF
ABC10145 FTFTTFTTFTTFTFTFTFTF
ABC10146 FTFTFFFTFTTFTFTTTTFT
ABC10147 FFTTTFTTFTFTFTFTFTFF
ABC10148 FTTFTTFTFTFTFTTFTFTT
ABC10149 FTTFTFTTFFTTTFTFFTFT
ABC10150 FTFTTTFTFTFTFTFTFTFT
Last edited on
Thank you! ill check it out right before i go to bed for the night and see what i can help you with

EDIT: as for the program you use, i am not familiar with xcode. To make a file available to a program simply drag and drop it into the project folder where you saved it(Ex- Desktop -> Newfoler -> Prjt2). Are you having problems other than getting the file to be read?
Last edited on
I appreciate the effort.
I still have ANOTHER assignment to do after this one, which is why I'm trying to learn the process.

Any advice you could share, would be greatly appreciated.
I will check back every 10 minutes, starting at 2am.
so... see you at...

2:10
2:20
2:30
etc...

I hope you will be able to coast me in the right direction! :)
I feel like I've come so close to getting it to work!
Im heading off to sleep in 15 minutes, id try and get all of your questions out now before i head off so i can help as much as i can. Hopefully someone else will be around at 2:00

EDIT: Here are some common functions i use for reading files, maybe this could be of any importance to you:

Function reads in a 1000 character array from a 1000 digit file:
1
2
3
4
5
6
7
8
9
10
void InitArr(char Ar[])
{
    std::ifstream TextObj("ArrDigits.txt");
    for(int i = 0; i < MAX_BOUND; i++)
    {
        Ar[i] = TextObj.get(); //Grab character and put it into the array
    }
    TextObj.close(); //Close file

}


Ill attempt to write that program in a short amount of time, no telling how far i'll get.
Last edited on
I am capable of getting the file to read, I believe?
I tried testing it with the...

1
2
3
4
if(inFile.is_open)
   cout << "The input file is reading fine."
   system("pause");
   exit(1);

The "cout" appeared, and I believe that means that my file is open and/or readable.

...I believe my main issue is regarding...
How do I get the program to take the information in the "grades.txt" document,
and output them on the "output.txt" and on my Compiler, when I Run/Test the code?

The farthest line, that appears in my Test-Run is the...
 
cout << "\n        ID                   Answers  %  Grade";

After this line appears. That's as far as my code/program will take me.

I need the lines under the...
 
cout << "\n        ID                   Answers  %  Grade";

to display all 150 of the student IDs, their answers, %correct, and the corresponding letter grade.

Is that clear enough? or no?
Just let me know! ^_^
Last edited on
Function reads in a 1000 character array from a 1000 digit file:
1
2
3
4
5
6
7
8
9
10
void InitArr(char Ar[])
{
std::ifstream TextObj("ArrDigits.txt");
for(int i = 0; i < MAX_BOUND; i++)
{
Ar[i] = TextObj.get(); //Grab character and put it into the array
}
TextObj.close(); //Close file

}


..sorry, but this is a little too advanced for me to understand. :(
For outputting the information into the file, i have little notes i write down about that kind of stuff. See if this helps:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//Writing Custom File Structures
#include <iostream>
#include <fstream>
using namespace std;

int main()
{
  ofstream Traits("Players.txt");

  cout << "ENTER PLAYER ID, NAME, MONEY\n";
  cout << "press CTRL+Z to quit\n";
  int idNumber;
  string name;
  double money;

  while(cin >> idNumber >> name >> money){
    Traits << idNumber << " " << name << " " << " " << money << endl;
  }
}


Or refer to these tutorials: http://thenewboston.org/list.php?cat=16
Look for the file related tutorials, they help a ton.

Your while statement does not need the != NULL, leaving that out means the same exact thing. Let me see what else i can find

EDIT2: Change line 24 to inFile.open (fileName);. I ran the code and the program worked fine, make sure you named your text file right(capslock counts) and placed it in the correct folder. Goodluck on your next assignment, as im logging off for the night. Im sure someone else will be able to help you sometime tonight though.
Last edited on
That does help a bit! :)
But, on the 10th-11th line of coding...

Since I am pulling information from the "grades.txt" file..
Instead of "cout << ...", what am I supposed to put?

do I write...
 
cout << char studentID[9] << char answers[20];

or something along those lines??
I changed my line 24 to inFile.open (fileName);, and it ran fine...
Just as you said...

But, the new information is not on my "output.txt". It is blank, just as before.
Also, the %correct and Grades are blank.

My program is not giving me any errors...
But, it isn't changing anything either.

cout is just an object, it can be replaced by the file object you created. so you would create temporary variables you would store the information from the file, then print those variables out like so:

1
2
3
4
5
OutFile << ID_copy << Grade_Copy;
//this outputs the first string it encounters(until a white space) into ID_copy and the int following the whitespace. 
cout << ID_copy << " " << Grade_Copy
//you have now displayed the information from the file, you simply stored the information in temporary variables! Remember the file reads strings and char arrays until it finds a white space and stops, skipping the white space and then reads in the next string into the next variable! The only way around this is using get_line functions or reading one at a time(you probably dont need to know this), good luck!
I do not understand where...
1
2
 Outfile << ID_copy << Grade_Copy;
cout << ID_Copy << " " << Grade_Copy;
is applicable. :(
I have typed it in here...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
    ifstream inFile; 
    inFile.open (fileName);
    
    ofstream outFile;
    outFile.open ("output.txt");
    
    cout << "\nStudent IDs     |     Answers |  % |  Grades";
    cout << "\n--------------------------------------------";
    
    outFile << ID_copy << Grade_Copy;
    cout << ID_copy << " " << Grade_Copy;
    
    for (int i=0; i<20; i++)
        inFile >> answers [i];


But the "ID_copy" and "Grade_Copy" are not previously declared.
Thus, leaving my application confused. (as well as me!) haha
ATTN: Anyone Available To Help. Please!

Here is my current up-to-date coding. (thus far)...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#include <iostream>
#include <fstream>
#include <string>
#include <stdlib.h>

using namespace std;

int main() 
{
    string id;
    char answers [20]; 
    char studentID [9];
    char response; 
    char fileName [25];
    int testScore;
    
    cout << "\nThis program will take the teacher's correct test answers";
    cout << "\nAs well as the 150 students answers, and grade the tests.\n" << endl;
    
    cout << "Enter the input file name: ";
    cin >> fileName;

    ifstream inFile; 
    inFile.open (fileName);
    
    ofstream outFile;
    outFile.open ("output.txt");
    
    cout << "\nStudent IDs     |     Answers |  % |  Grades";
    cout << "\n--------------------------------------------";
    cout << studentID << answers << endl;
    
    for (int i=0; i<20; i++)
        inFile >> answers [i];
    
    while ( ( inFile >> id))
    {
        cout << "\n" << id << " ";
        inFile.get(response);
        testScore = 0;
        
        for (int i = 0; i < 20; i++)
        {
            inFile.get (response);
            
            cout << " " << response;
            
            if (response == ' ')
                testScore += 0;
            else
                if (response == answers [i])
                    testScore += 2;
                else
                    testScore += -1;
        }
        
        cout << "   " << testScore << "  ";
        
        double p = testScore * 2.5;
        
        if (p >= 90)
            cout << 'A';
        else
            if (p >=80)
                cout << 'B';
            else
                if (p >=70)
                    cout << 'C';
                else
                    if (p >=60)
                        cout << 'D';
                    else
                        cout << 'F';
    }
    
    inFile.close();
    outFile.close();
    return 0;
}



Below is the Output my Application is telling me during the TestRun.
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

This program will take the teacher's correct test answers
As well as the 150 students answers, and grade the tests.

Enter the input file name: grades.txt

Student IDs | Answers | % | Grades
--------------------------------------------


/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

After the...
Student IDs | Answers | % | Grades
--------------------------------------------

...there is no more output.
I still need it to display (below the line) the student IDs, their Test Answers, % of Correct Answers, and the Letter Grade associated with the % given.

Will anyone help me?
Last edited on
Solve the problem? or still looking for help
There's no output to the screen (besides that first part), or no output to the file?

If there's no output to the file, I'm not surprised -- you never wrote anything to it.

Basically, anywhere you have a cout << something;, you should also put a outFile << something; to also write it to the file.

Also...
29
30
31
cout << "\nStudent IDs     |     Answers |  % |  Grades";
cout << "\n--------------------------------------------";
cout << studentID << answers << endl;

That last statement there will print a bunch of junk (or perhaps it could crash your program, which might've happened in your case), since neither studentID nor answers has been initialized at this point, so there might not be a null character at the end of the string, so the program might read past the end of the array (which is memory it's not supposed to be touching).
Basically, remove that line and you should be fine.

This is the output I get:
This program will take the teacher's correct test answers
As well as the 150 students answers, and grade the tests.

Enter the input file name: grades.txt

Student IDs     |     Answers |  % |  Grades
--------------------------------------------”\ÃwP(Áwÿÿÿÿ)NÃwBNÃw¤ŸÌoXÿ"

ABC54301  T F T F T F T T   T F T F T F F T T F T   11  F
ABC59310  F T T F T F T T F T T F T T T F T F T T   16  F
ABC39583  F T T F T F T T F T F F F T F T T F T F   7  F
ABC38493  F T F T T F T F T F T T F   T F F T T T   8  F
ABC10394  F T T F T F T F F T F T F T T F T T F T   4  F
ABC10006  F T F T F F F T F F T F T F T F F T F T   13  F
ABC10007  F T F T F F T F T F T T T T F F T T F T   10  F
ABC38558  F T F T T F T F F T F F F T F T F T F F   1  F
ABC10439  F T T T F T F T F T F T T F T F T F F T   16  F
ABC10010  F T T F T F F F F T F T T T F T F T F T   -5  F
(and so on and so forth)
Topic archived. No new replies allowed.