Joshua Thomas Smith

Logo

CSCI 496: Senior Portfolio
In partial fulfillment of the requirements for the degree of Bachelor of Technology in Computer-Science (class of 2021)

View My Resume

Reflection Questions

View My GitHub Profile

Back to Portfolio

Scripting Project Compilation

Project description

A collection of some of the scripting languages I learned at CSU. Included in the project is 3 different programs, that each are in their own respective language. The languages are as follows: Shell, Perl, and Python. Each acomplish a different task and are here to demonstrate mastery of a variety of problems/concepts.

Regular Expression Program that does the following to a text file:

Right Triangle Program does the following:

Perl Bowling Program does the following:

How to compiles / run the programs

There are no executables, so Python and Perl need their source files to be put into a compiler. Shell can be run on bash on linux, or with a online compiler as well.

Shell Program:

Python Program:

Perl Program:

Image Examples

Below are screenshots taken from the three programs. They do not show source code, but do show the output/results of all programs. Considering there is no input for the programs there is no notable UI elements to document. The Perl examples are screenshots of the files created and are Figures 1-4. Figure 5 is the terminal output for python after running the triangle program. Figures 6-7 are linux terminal output for the bash program and its commands. Refer to the README.md file for any further questions about the functionality of each program.

screenshot
Fig 1. The Perl default input file and scores used

screenshot
Fig 2. The average of inputted scores of the Perl Program

screenshot
Fig 3. The Perl Sorted list of players based on the scores

screenshot
Fig 4. The Perl score winner based off default values

screenshot
Fig 5. Python testing and calculations of a right triangle

screenshot
Fig 6. First half of Shell output: words that start with Christmas, count of words ending in -ing and words that start with M and end an e (sorted)

screenshot
Fig 7. Second half of Shell output: last portion of words that start with M and end an e, and percentage of words with a starting vowel

3. Additional Considerations

This is a compilation of programs that come together to form a larger project. Its much easier to utilize online compilers with how many languages the project switches between. That being said the Shell program’s text file that holds sample words is too big for most online compilers. In that case, as mentioned in instuctions, you would have to utilize a linux machine to run the shell program. Alternatively, you can simply provide your own words.txt to run from.

For more details see README.md file.

Back to Portfolio