Question: Perform the following scripting tasks using the above data file: 1 . Create a MENU script which provides the following options: A - Add A

Perform the following scripting tasks using the above data file:
1. Create a MENU script which provides the following options:
A - Add A Student
D - Delete A Student
C - Calculate Student Grades
P Print Student List
V - View Raw Student Data File
Q - Quit
This menu script should accept either upper or lower case responses and it should clear the screen each time it asks for
a new selection. Call this script stumenu and put it (and all other scripts) in the your home directory (I will grade your
scripts by pulling them from fawad).
2. Develop a print script similar to the phlist1. However, the script should first ask the user what sort order is desired
for the list: Student Number or Student Name. The script should implement this choice by loading and using a
function file called .stusorts. The guide for this step is project 7-19 of the text, plus our modified phlist1 program
(posted on blackboard). Call your script stulist and leave it in your home directory.
3. Develop an 'Add Student' script by adapting the improved phoneadd script developed in class. The script should
allow for 'Q' or 'q' to quit on any line except that for the Middle Initial input line a capital Q will be considered valid
input and not a request to quit (but lower-case q would mean quit). It does need to have the 'back up one field'
feature available on any input line (as per the improved phoneadd). Call your script stuadd.
4. Develop a 'Delete Student' script by adapting the phonedel script developed in class. The phonedel script is based on
the delete procedure presented in the text in project 7-11. Make sure your delete script checks for the existence of a
student number *before* it executes the delete. Continue to give the operator a 'final chance' to abort the delete (as in
the sample provided). Call this script studel.
5. Develop a grade calculating script. This program will process all students in the students file and should neatly
display each field of each student's record along with the following additional items: Course Average and Letter
Grade. The course average is calculated by the following weights: 50% for quiz average, 15% for midterm, 10% for
problems, and 25% for final exam. The letter grade is based on the normal grade brackets: 90/80/70/60. This script
should be called stugrades. Note that there is no direct equivalent in the texts phone menu system: details and a
scripting guide will be developed in class (or via recorded lecture).
6. The view raw option just uses the less command to display the contents of students file (as in phmenu)

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 Programming Questions!