Skip to content

A program for organizing and displaying user-inputted ID numbers in ascending order.

Notifications You must be signed in to change notification settings

bl33h/idsInOrder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

idsInOrder

A program that allows users to input a set of ID numbers and arranges them in ascending order. The program prompts the user to enter the number of IDs they want to order and then requests additional information for each ID, such as name, lastname, and the last number of the CUI. The entered ID numbers are stored in an array. The program then sorts the array in ascending order using the C++ standard library's sort function. Finally, it displays the ordered list of IDs to the user. Overall, the code provides a simple and efficient way to organize ID numbers in a specific order.


pic

FilesFeaturesHow To Use

Files

  • src: the file that implements de solution.
  • flowchart: flowchart: the model construction.

Features

The main features of the application include:

  • Requesting ID Numbers: The program prompts the user to enter the number of IDs to order and then creates an array of that size to store the IDs. It further asks for the name, lastname, and last number of the CUI (Control Unique Identity) for each ID and assigns them to the corresponding array elements.
  • Sorting IDs: The program includes a method called "IDsInOrder" that sorts the array of IDs in ascending order using the sort function from the C++ Standard Library. After sorting, it prompts the user to enter the number of IDs they placed in the input and then displays the sorted IDs in the console.
  • Memory Management: The program uses the delete[] operator to deallocate the memory allocated for the ID array, ensuring proper memory management.

How To Use

To clone and run this application, you'll need Git and a C++ compiler installed on your computer. From your command line:

# Clone this repository
$ git clone https://github.com/bl33h/idsInOrder

# Open the folder
$ cd src

# Run the app
$ g++ idsInOrder.cpp -o idsInOrder
$ ./idsInOrder

Alternatively, you can run the code using Google Colab:

  1. Open Google Colab in your web browser.
  2. Click on "File" in the top menu, then select "Open notebook".
  3. In the "GitHub" tab, enter the repository URL: https://github.com/bl33h/idsInOrder
  4. Choose the desired notebook file and click "Open".
  5. Follow the instructions within the Colab notebook to execute the code.

Note: Running the code in Google Colab requires an internet connection and a Google account. It provides a convenient online environment for executing code without the need for local setup or dependencies.

About

A program for organizing and displaying user-inputted ID numbers in ascending order.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages