Skip to content

ranran2121/south-african-numbers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Startup

This step is required to use the right node version

  1. Ci in the project folder and set the proper node version according to the .nvmrc file
nvm use 18
  1. Install the dependencies
yarn
  1. Cd in the src directory and run the app
node index.js
  1. Follow the instructions in the prompt

About the app

This app is about checking if a number (typed by the user of contained in the provided file) is correctly formatted to be a valid South African number(27831234567 is the correct format for this exercise).

When you run the app, a prompt will ask which service to invoke. By typing:

  • 'c' is to allow the user to check a number of if choice. The console will tell the user if his input is correct, incorrect or if was amended and with which digits
  • 's' is to allow the user to sort the numbers contained in a file stored in the files directory.The app sort those numbers in 3 files (one for correct, one for incorrect and one for the one that could be amended together with the digits used to correct the format)> the files are stored in the files directory and can be opened with a normal text editor.
  • 'r' is to allow the user to chose which of the files created by the sorting algorithm to read in the console
  • 'x' it to exit the process

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published