Write a script that will ask the user to input a college. The munu of choices in
ID: 3611402 • Letter: W
Question
Write a script that will ask the user to input a college. The munu of choices includes Saint Rose, RPI, Skidmore, and Exit. If the user chooses Saint Rose, the program prints "In Albany.", and displays the menu again. if the user choose RPI, the program prints "InTroy.", and displays the menu again. if the user chooses skidmore, the program prints "In Saratoga.", and displays the menu again. If the user choose Exit =, the program stops. I fthe user enters anything else, the program prints "Not an option" and displays the menu again.Explanation / Answer
#!/bin/bash DONE="" until [ "$DONE" = "true" ]; do echo "Enter a college:" read -e COLLEGE case $COLLEGE in Saint Rose) echo "In Albany";; RPI) echo "In Troy";; Skidmore) echo "In Saratoga";; Exit) DONE="true";; *) echo "Not an option";; esac done This is one way to go about solving the problem. This loops untilDONE is set to "true" and inside the loop uses case for each one ofthe described inputs.