SCMP 318 – Console Demo Programs

Name Data and text Search Program Setup

Goal

To get the name data and Shakespeare text seach programs running on the your server.

Steps:

1. Log into your server using ssh.

2. Get the C++ and Python version of the text search programs:

git clone git@github.com:jimskon/shakeCpp.git
git clone git@github.com:jimskon/shakePy.git

3. Enter the shakeCpp directory and make C++ version using “make shakeconsole”

4. Run the program using:

./shakeconsole

5. Go the the Python version directory: shakePy

6. Run the program using:

python3 shakeconsole.pyCode language: CSS (css)

7. Next we get the name lookup demo programs.\

8. Get the code from GitHub

git clone git@github.com:jimskon/namesCpp.git

git clone git@github.com:jimskon/namesPy.gitCode language: PHP (php)

9. You will now have a two new folders namesCpp and namesPy.

10. For the python you will need the package “namedcontainers” (see code). This package includes SortedDict, a special dictionary that allows you to access the elements in sorted order (something the regular dict doesn’t do.

    pip3 install sortedcontainers

8. Build and run the Name Data programs in both C++ and Python:

  • In c++ in the namesCpp direcotry:
make namesconsole
./namesconsole
  • In python:
python3 namesconsole.pyCode language: CSS (css)
  • Try both programs out to see how they work

9. Turn in a screen shot showing all programs working.

Scroll to Top