Help in arrays for remarks

How can I display if it's passed or failed in remarks? Wherein if 1.00 the output should be passed. My output so far looks like this:




|Prelim | Midterm| Pre-final| Final Grade |Point Equivalent| Remarks|
|   99  |  99    |   99     |    99       |  1.00          |              |



I don't how to solve this one, i thought maybe int to char will do. Thank you in advance!

Here's my code for Point Equivalent:
________________________________________________________________________________


//Conditions for Point Equivalent

for(s=0;s<=9;s++)
if (fg[s][3]>=97&&fg[s][3]<=100)
{ fg[s][4]=1.00; }

for(s=0;s<=9;s++)
if (fg[s][3]>=93&&fg[s][3]<97)
{ fg[s][4]=1.25; }

for(s=0;s<=9;s++)
if (fg[s][3]>=89&&fg[s][3]<93)
{ fg[s][4]=1.50; }

for(s=0;s<=9;s++)
if (fg[s][3]>=85&&fg[s][3]<89)
{ fg[s][4]=1.75; }

for(s=0;s<=9;s++)
if (fg[s][3]>=82&&fg[s][3]<85)
{ fg[s][4]=2.00; }

for(s=0;s<=9;s++)
if (fg[s][3]>=79&&fg[s][3]<82)
{ fg[s][4]=2.25; }

for(s=0;s<=9;s++)
if (fg[s][3]>=76&&fg[s][3]<79)
{ fg[s][4]=2.50; }

for(s=0;s<=9;s++)
if (fg[s][3]>=73&&fg[s][3]<76)
{ fg[s][4]=2.75; }

for(s=0;s<=9;s++)
if (fg[s][3]>=70&&fg[s][3]<73)
{ fg[s][4]=3.00; }

for(s=0;s<=9;s++)
if (fg[s][3]>=65&&fg[s][3]<70)
{ fg[s][4]=5.00; }

for(s=0;s<=9;s++)
if (fg[s][3]<65)
{ fg[s][4]=5.00; }
Last edited on
something like this?
1
2
if(point equivalent < ??) cout<<"F";
else cout<<"P";
Last edited on
Topic archived. No new replies allowed.