Sort by

recency

|

84 Discussions

|

  • + 0 comments

    ` [awk '{

    if(((3+$4)/3) >= "80")

    print $0,":","A"

    else if (((3+Misplaced &2+4)/3) <= "80")

    print $0,":","B"

    else if (((3+Misplaced &2+4)/3) <= "60")

    print $0,":","C"

    else if (((3+$4)/3) <= "50")

    print $0,":","FAIL"

    }' ](https://)`

  • + 0 comments

    awk ' { avg=(3+$4)/3

    if (avg>=80)
        {print $0, ": A"} 
    else if (avg>=60) 
        {print $0, ": B"} 
    else if (avg>=50)
        {print $0, ": C"} 
    else {print $0, ": FAIL"}
    

    }'

  • + 0 comments
    awk '{
        total=$2+$3+$4
        avg=total/3
        if ( avg >= 80 ) grade="A";
        else if ( avg >= 60 ) grade="B";
        else if ( avg >= 50 ) grade="C";
        else grade="FAIL"
        
        print $0" : "grade
    
    }'
    
  • + 0 comments
    awk '{avg = ($2 + $3 + $4) / 3; 
         if (avg >= 80) grade = "A"; 
         else if (avg >= 60) grade = "B"; 
         else if (avg >= 50) grade = "C"; 
         else grade = "FAIL"; 
         print $0,":",grade}'
    
  • + 0 comments

    awk '{(avg=(3+0,":",(avg<50)?"FAIL":(avg>=80)?"A":(avg>=60)?"B":"C";}'