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:
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
Develop a print script similar to the phlist 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 of the text, plus our modified phlist program
posted on blackboard Call your script stulist and leave it in your home directory.
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 lowercase 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.
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 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.
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: for quiz average, for midterm, for
problems, and for final exam. The letter grade is based on the normal grade brackets: 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
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
