Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Grading-system #51

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Grading-system
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,25 @@ E=40-44
F=0-39

use this grading sytem to submit a php script that accepts any number and grade accordingly.
MY Answer
<?php
Case$ grade<=75 && $grade <=100; Echo “your score is
$grade Grade: A’;Break;Case $grade>=70
&& $grade <=74; Echo “your score is $grade
Grade: AB”; Break; Case $grade>=65 &&
$grade <=69; Echo “your score is $grade
Grade: B”; Break; Case $grade>=60 && $gra-
de <=64; Echo “your score is $grade Grade:
BC”; Break; Case $grade>=55 && $grade
<=59; Echo “your score is $grade Grade:
C”; Break; Case $grade>=50 && $grade <=54;
Echo “your score is $grade Grade: CD”;
Break; Case $grade>=45 && $grade <=49;
Echo “your score is $grade Grade: D”;
Break; Case $grade>=40 && $grade <=45;
Echo “your score is $grade Grade: E”;
Break; Case $grade>=0 && $grade <=39;
Echo “your score is $grade Grade: F”;
Break; Default: Print(“score not found”);
Break
?>