Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Storing Course Information Course information will be stored in text files. Assignment 1 : Shell Scripting Page 1 of 6 1 . Files will be

Storing Course Information Course information will be stored in text files.
Assignment 1: Shell Scripting
Page 1 of 6
1. Files will be stored inside a directory called data within the same directory as your script.
2. Each file will be named based on the combination of a department code and a course number, which consists of two or three letters followed by an integer with exactly four digits, followed by the extension .crs.
3. A course file consists of exactly these lines:
dept_code (two or three letter abbreviation) dept_name (string with probable whitespace)
course_name (string with probable whitespace)
course_sched (string consisting precisely of either MWF or TH) course_start (string with no whitespace) course_end (string with no whitespace) course_hours (credit hours, unsigned integer) course_size (enrolled students, unsigned integer)
* Department names may contain whitespace. You should account for names with multiple tokens (e.g.,ESL English as a Second Language= dept_code =ESL, and dept_name =English as a Second Language)
4. Example file named esl3053.crs
Script Execution
When the script is run, the following should occur. All script output should appear exactly as it appears below.
1. Upon running your script, the user should be presented with the following menu:
Enter one of the following actions or press CTRL-D to exit.
C - create a new course record
R - read an existing course record
U - update an existing course record
D - delete an existing course record
E - update enrolled student count of existing course
T - show total course count
2. The user then enters a one-character action (upper or lowercase), leading to one of the following. C: a course is created
(a) From the terminal, read the following one at a time: i. Department code (two-to-three character string)
ii. Department name (string possibly containing whitespace) ESL English as a Second Language Literacy in a Second Language MWF 8/20/2412/13/24352

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

SQL Database Programming

Authors: Chris Fehily

1st Edition

1937842312, 978-1937842314

More Books

Students also viewed these Databases questions

Question

=+13.5. Show of real functions f and g that f(w) + g(w)

Answered: 1 week ago

Question

3. Identify cultural universals in nonverbal communication.

Answered: 1 week ago

Question

2. Discuss the types of messages that are communicated nonverbally.

Answered: 1 week ago