Git Product home page Git Product logo

idsinorder's Introduction

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.

idsinorder's People

Contributors

bl33h avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.