Page 1 of 1

Write a bash script that does the following: asks the user to enter his mark. Then the script will print the grade. (The

Posted: Fri May 20, 2022 11:55 am
by answerhappygod
Write A Bash Script That Does The Following Asks The User To Enter His Mark Then The Script Will Print The Grade The 1
Write A Bash Script That Does The Following Asks The User To Enter His Mark Then The Script Will Print The Grade The 1 (23.72 KiB) Viewed 36 times
Write a bash script that does the following: asks the user to enter his mark. Then the script will print the grade. (The student can use if/else format OR if exit format) Please enter your mark: Input: 90 Output: your mark is 90. Your grade is: A. Input: 87 Output: your mark is 87. Your grade is: B. Input: 40 Output: your mark is 40. You failed. Input: hello Output: Invalid value. Lists 3 Airplane ticket types and their prices for the user and asks him to select a ticket using a number. (The student must use case) Please select ticket's type: 1 for First Class Ticket 2 for Business Class Ticket 3 for Economy class Ticket Input: 1 Output: You selected First Class Ticket. The price is: SAR1000. Input: 2 Output: You selected Business Class Ticket. The price is: SAR700. Input: 3 Output: You selected Economy class Ticket. The price is: SAR300. Count to 3, then asks the user to continue or not. (The student must use loop to print the counter) 1 2 3 Restart (Y/N)? Input: Y 1 2 3