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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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 35 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply