Question: Need this script:Write a complete bash script to print a train travel ticket. ( 6 0 % ) ( YOU MUST INCLUDE THE SCRIPT FILE
Need this script:Write a complete bash script to print a train travel ticket.
YOU MUST INCLUDE THE SCRIPT FILE sh file IN THE ZIP
Here are the criteria......
a The script MUST CONTINUE in a loop until user decides to stop. User stops the ticket printing by entering
b A city offers types of train services to different destinations. The chart below shows the options.
The code names used for these destinations are AB AC and AD Code names used for the two services are E for
Express and S for standard.
c User enters the destination AB AC or AD service E or S and the number of people traveling.
Based on the information user entered, a ticket is printed Just one ticket, no matter how many people traveling
in the group
PS: If the user enters unknown options, show error messages Look at the screen dump below
d Script must run a menu as follows:
New City Transit Authority Print Your Travel Ticket
Enter Destination AB AC or AD to quit:
Service Type E or S:
Enter number of travelers:
Script must produce the calculated result as shown in screen dumps below:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
