Coder Social home page Coder Social logo

random-database's Introduction

Random database

Summary of program

The code is a simple database management system that allows for data entry, retrieval, and modification. The program has two classes login and dataentry. The login class has a function that verifies the entered username and password against the username and password specified in the username.txt and password.txt files respectively. The dataentry class has functions for adding, displaying, retrieving and deleting data from the database.csv file. The main function initializes objects from the two classes and takes inputs from the user to perform different actions such as adding new data to the database, displaying all data, retrieving a specific data entry based on the serial number, or deleting a specific data entry based on the serial number.

Features

  • The program makes use of 3 separate files, the header, function module, and the main file.
  • Output data is stored in a Comma Separated Values (csv) file, which can be easily shared and accessed.
  • User can perform any of the 4 actions: Adding a data entry, viewing all the data or a specific entry, modifying and deleting a specific data entry.
  • Every data entry has a unique ID associated with it, which allows the user to view, modify, and delete a specific data entry.
  • Object oriented programming principles were implemented, and that brought the several benefits of OOP with it.
  • The code has several input validation statements that prevent an incorrect input from being entered. This is accomplished through while loops that iterate until the user enters a valid input.

Lessons Learnt

  • Learnt about the previously unknown features, functions, and libraries of C++ through their implementation.
  • Learnt about ways to improve code readability and efficiency.
  • Got a lot of experience in debugging programs.
  • Got experience regarding the development of complex, error-resistant programs.
  • Strengthened my previous knowledge of C++.

Further development ideas

  • Adding multiple accounts.
  • Adding features to create multiple csv sheets, each classifying a specific type of information.
  • Adding a feature to link certain fields of different csv sheets.

random-database's People

Contributors

aadium avatar

Stargazers

Roman avatar Gideon Kpodonu avatar  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.