Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ------------
- https://drive.google.com/file/d/0B7XPEHUDOdNmWS1WQlFLSDFXZGc/view?usp=sharing
- ------------
- clear
- echo "Welcome to Linux Scripts"
- echo -n "Username: "
- read user
- pass="password"
- echo -n "Password: "
- read pass
- if [ $pass == $pass ]; then
- x=y
- else
- echo "Password Denied"
- echo "Goodbye, $user"
- fi
- if [ $x = "y" ]; then
- clear
- echo "PASSWORD ACCEPTED!!!"
- echo "[a]-Grades Remarks"
- echo "[b]-About"
- echo "[c]-Exit"
- echo -n ": "
- read answer
- case $answer in
- "A" |"a")
- echo -n "Enter Grade: ";
- read grade
- if [ $grade -le 69 ]; then
- echo "Poor"
- elif [ $grade -le 79 ]; then
- echo "Fair"
- elif [ $grade -le 84 ]; then
- echo "Good"
- elif [ $grade -le 89 ]; then
- echo "Very Good"
- elif [ $grade -le 100 ]; then
- echo "Excellent"
- elif [ $grade -gt 100 ]; then
- echo "Invalid"
- elif [ $grade -le 0 ]; then
- echo "Invalid"
- fi
- "B" |"b")
- echo "Program By: ";;
- "C" |"c")
- echo "Bye $user";;
- *)
- echo "Not in the choice!"
- esac
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement