Skip to main content

A simple string transcriptor for a code interview

Project description

README

What is this repository for?

  • This repository contains a single package and calling script which answers a pre-screening code question for NCSA's Senior Research Software Engineer position
  • Version 0.0.1
  • Question - as written:
  1. Write a program in any programming language to do the following:
    a. Replace all the vowels in the string “National Center for Supercomputing Applications” by their corresponding order number in alphabetical sequence (a with 1, e with 5, etc).
    b. Print the resulting string.
    c. Print the total number of consonants in the given string.
  • I have treated part C as, when referring to the "given" string, referring to this string: “National Center for Supercomputing Applications”

Set-up, Installation, Execution

  • Summary of set up
    • This repository can be installed via local command lines by executing this command from the root of the repository:

python -m pip install .

  • Configuration
    • the simple package ncsatranscriptor must be installed prior to running the transcribe-string.py script
  • Dependencies
    • Python 3.12
  • How to run tests
    • From the root directory of the respository:

python .\src\ncsatranscriptor\tests\test_ncsatranscriptor.py

  • Get guidance on code execution

python .\bin\transcribe-string.py --help

  • Execute the script to generate the required output by question 4, above:

python .\bin\transcribe-string.py -s "National Center for Supercomputing Applications" -m basic

Author

Links

https://bitbucket.org/uiuc-code/prescreen-transcriptor/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ncsatranscriptor-0.0.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file ncsatranscriptor-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ncsatranscriptor-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0c579c84616361a44d8c86709a4bf72e3f32e39cc0b9d0568607ac55657f9fcf
MD5 f45b12850dd57213653db71c0f507e7a
BLAKE2b-256 1683756f0e4b36321bca884f93612fb11099057f4f69614ba0e1e4896986c350

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page