Question: uestion 3 [ 6 Points ] Consider a database data.txt which has data in the following format: ( 4 digits ) ( string ) (

uestion 3[6 Points]
Consider a database data.txt which has data in the following format:
(4 digits)(string)(0-100)
(0-100)(0-100)
Write a menu driven shell script that outputs the following menu and takes input from the user in the form of a number (1/2/3/4):
1. Add a student record
2. Print the list of students above passing marks (>=33 in each subject)
3. Print the list of students with their divisions. Rules for divisions are:
Ist division: Pass and >=75% marks on average
IInd division: Pass and 60%<= marks <75%
IIIrd division: Pass and 33%<= marks <60%
Fail: Otherwise
4. Delete a student record
5. Exit
If user input is 1, then ask the user for each entry (Roll number, Name, etc) separately and add the record in the file. For any wrong entry, prompt the user to input again. To delete a student record, take in the roll number

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!