Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Linux Shell Scripting would be preferable Develop a Student Score Management system using Shell Scripting Requirement: The System should have below basic functions Add: add

image text in transcribed

image text in transcribed

Linux Shell Scripting would be preferable

Develop a Student Score Management system using Shell Scripting Requirement: The System should have below basic functions Add: add a new record, e.g. Mary Stone 98" Delete: delete a record by name - Search: search records by name - Display: display all the records - Help: show the help menu - Exit: exit the system Each of them should be implemented by individual functions called in the main script Bonus: You can add some checks to make the script more robust. For example - Before adding a new record, you can check whether the record file exists. If no, a file should be created first - Before deleting, you can check whether the name exists and show some message - Before searching, you can check whether the name exists and show some message Hints: Below commands can be used - echo, read, grep, pipe, cat/more, exist - function, if/case, loop To implement delete, you can first copy existing record file to a backup file, then use invert match to find non-matching lines, then write to the record file A sample screenshot of the input/outputs of the system is below: ************ STUDENT'S RECORD MENU 1. Search 2. Add 3. Delete 4. Display H: Help Screen Q: Exit ********************************************************** Please Enter Your Choice [1, 2, 3, 4, H, 01: Enter name and score of a record. Andy Lee 98 Added successfully! Please Enter Your Choice [1, 2, 3, 4, H, 0]: 2 Enter name and score of a record. Mary Stone 99 Added successfully! Please Enter Your Choice [1, 2, 3, 4, H, 01: Andy Lee 98 Mary Stone 99 Please Enter Your Choice [1, 2, 3, 4, H, 01: Please Enter Name >>> Mary The record you search is Mary Stone 99 Please Enter Your Choice [1, 2, 3, 4, H, 01: please Enter Name >>> Bonus: You can add some checks to make the script more robust. For example - Before adding a new record, you can check whether the record file exists. If no, a file should be created first - Before deleting, you can check whether the name exists and show some message Before searching, you can check whether the name exists and show some message Hints: Below commands can be used - echo, read, grep, pipe, cat/more, exist - function, if/case, loop To implement delete, you can first copy existing record file to a backup file, then use invert match to find non-matching lines, then write to the record file A sample screenshot of the input/outputs of the system is below: STUDENT'S RECORD MENU 1. Search 2. Add 3. Delete 4. Display H: Help Screen Q: Exit ########################################################### Please Enter Your Choice [1, 2, 3, 4, H, 0]: 2 Enter name and score of a record. Andy Lee 98 Added successfully! Please Enter Your Choice [1, 2, 3, 4, H, 0]: 2 Enter name and score of a record. Mary Stone 99 Added successfully! Please Enter Your Choice [1, 2, 3, 4, H, 0]: 4 Andy Lee 98 Mary Stone 99 Please Enter Your Choice [1, 2, 3, 4, H, 0]: 1 Please Enter Name >>> Mary The record you search is Mary Stone 99 Please Enter Your Choice [1, 2, 3, 4, H, 0]: Please Enter Name >>> Mary Mary Stone 99 Deleted successfully! Please Enter Your Choice [1, 2, 3, 4, H, 0]: 4 Andy Lee 98 Please Enter Your Choice [1, 2, 3, 4, H, 0]: H STUDENT'S RECORD MENU 1. Search 2. Add 3. Delete 4. Display H: Help Screen Q: Exit

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

3rd Edition

0471418455, 978-0471418450

More Books

Students also viewed these Databases questions

Question

2 The main characteristics of the market system.

Answered: 1 week ago