Unix - ITS 224 Final Project Solution.ZIP

Unix - ITS 224 Final Project Solution

50 Possible Points (48 available - 2 pts each)

Directions: Complete the following projects. As in all assignments please copy output into the text file you submit to your instructor. In order to verify the completion of all projects your instructor will view the directory and files you have created in your “exam” directory. If you completed the exam using a virtual machine, please cat the files and copy and paste them to the bottom of your submitted document.  Also include a copy and paste of the exam directory.

.

Project Objectives:

.

Make a directory (ch 2)

Working with delimited files (use vi) (delimited files – ch 2, vi – ch 3)

Change file permissions (ch 2)

Copy files (ch 4)

Translate (ch 5)

Paste (redirect output) (ch 4)

Sort (ch 4)

Cut (redirect output) (ch 4)

Sed (ch 5) (stream editor)

Define a function (ch 7)

Create a menu driven program

.

     .     

       1. Make a directory called exam in your home directory, change to that directory. (2 pts)

.

.

In problems 2 (a-d) and 3 (a-b) you will create several files that correspond to courses you take at Helena College. Question 2 focuses on Fall courses. Question 3 focuses on Spring courses.

.

2a. Develop a list of your 3 favorite “General Education” courses (name the file “gened-fall-courses). Include rubric and course number (ex. “WRIT101”), title of course, semester class is offered (enter “fall” for all classes). Delimit the fields using a colon (“:”). (2 pts)

Example. BIOL220:Microbiology Lecture:Fall

.

2b. Create a “Gen Ed” course file that includes information about the classes listed in “gened-fall-courses” (previous question). Include building (DON), room (122), and instructor of corresponding classes. Name this file “gened-fall-courses-info” Make sure the list in this file matches the order of the gened-fall-courses file. Delimit the fields using a colon (“:”).(2 pts)

Example. DON:131:Johnson

.

2c. Develop a list of 3 Fall “Computer Technology” courses (name the file “ct-fall-courses”). One course must be a CSCI course!!!  Include rubric and course number (ex. “CT115”), title of course, and semester class is offered (enter “fall” for all classes). Delimit the fields using a colon (“:”). (2 pts)

Example. CT115:Web Pages:Fall

.

2d. Create a “CT” course file that includes the building (DON), room (122), and instructor of the corresponding classes in the “Computer-Technology” ct-fall-courses file (name this file “ct-fall-courses-info”). Delimit the fields using a colon (“:”). (2 pts)

Example. DON:122:Scott

.

.

NOTE! Make sure the GenEd and CT files contain the same fields.

.

3a. Create a file that contains 2 Spring CT classes (name the file “ct-spring-courses”. Delimit the fields using a colon (“:”). (2 pts)

Example. CSCI100:Intro to Programming:Spring

.

3b. Create a file that includes the building (DON), room (122), and instructor of corresponding CT Spring classes listed in ct-spring-courses. Name the new file “ct-spring-courses-info”. Delimit the fields using a colon (“:”). (2 pts)

Example. DON:122:Scott 

.

.

4a. Create one complete Fall Gen Ed class list (course list AND course info). Title this file “gened-fall-class-list”. (2 pts) 

Your output should look something like this.

cat gened-fall-class-list

BIOL220:Microbiology Lecture:Fall:DON:131:Johnson

.

4b. Create one complete CT class list (course list AND course info). Title this file “ct-fall-class-list”. (2 pts).

Your output should look something like this.

cat ct-fall-class-list

CT115:Web Pages:Fall:DON:121:Lytinnen

.

4c. Create a file that includes ALL Gen Ed (first) and CT courses (second). Title it “fall-courses”. (2 pts)

.

4d. Create one complete Spring class list from “ct-spring-courses” and “ct-spring-courses-info”. Name it “spring-courses”. (2 pts).

.

4e. Create a master class list combining all fall (first) and spring (second) classes. Name the file “ay-courses” (AY stands for Academic Year) (2 pts)

.

.

5a. Create a file named “instructors” that contains Fall and Spring courses listing Course Title, Instructor, and semester. (2 pts)

Example. Microbiology Lecture:Fall:Johnson

.

5b. Alphabetize this file by Name of Course and save it as “sorted-course-name”. (2 pts)

.

.

Due to the statewide common course number initiative all “CSCI” courses need to be renamed to “CS”.

.

6a. Find all “CSCI” courses and retitle them to “CS”. Call the new file “ay-courses-cs-updated”. (2 pts)

.

6c. Make the following files easier to read. Remove the delimiter and save each of the updated files with a “.txt” extension. (4 pts)

fall-courses

spring-courses

ay-courses-cs-updated

sorted-course-name

.

.

7. Create a menu driven program (named “coursemenu”) that uses the TXT tiles you created in 6c and will view: (12 pts)

1 - Fall Courses

2 - Spring Courses

3 -A master class list (contains ALL info in ALL classes)

4 - A class list containing Course Title, Instructor, and semester

.

.

8. Create a function with a file name of “classlist” that will run the “coursemenu” program when you type “classes” at the command prompt. (4 pts)

After completing each step, before submitting, If you completed the exam using a virtual machine on your own computer, please cat each file used in the exam and copy and paste them into the document.  Also copy and paste the directory listing of the exam directory.

 
Powered by