Giter Site home page Giter Site logo

timgarvin / students-enroller_-_database-tables-version Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6 KB

A Students Enrollment system using a Finite Set data structure represented as Database Tables.

C++ 100.00%
c-plus-plus linux database tables rows finite-sets linked-list putty winscp data-structure

students-enroller_-_database-tables-version's Introduction

Description

Students Enroller (Database Tables Version) is a C++ program that allows the user to select, insert, print, and join students and grades tables information using the Finite Set (represented as database tables) and Linked List (represents rows in a table) data structures. This program is made-from-scratch and does not utilize the C++ Standard Template Library (STL).

Compilation and Execution

  • Compile: g++ *.cpp
  • Run Program: ./a.out

Program Commands

  • insert students <student-id> <first-name> <last-name>: Inserts a new student into the Finite Set (represented as a students table in a database).
    • Examples:
        tables> insert students 5 Mickey Mouse
        tables> insert students 2 Papa Smurf
        
  • insert grades <student-id> <term> <year> <grade>: Inserts a new grade into the Finite Set (represented as a grades table in a database).
    • Examples:
        tables> insert grades 1 Spring 2016 B
        tables> insert grades 2 Summer 1738 A
        
  • select <table-name> <attribute-name> <value>: Selects a set of user-defined values from a table and prints out the resulting rows returned.
    • Examples:
        tables> select students id 2
        (2,Papa,Smurf)
        tables> select grades term Summer
        (2,Summer,1738,A)
        
  • print: Prints out all of the rows of a table from the Finite Set in tuple notation.
    • Notes:
      • students table format: (id,firstname,lastname)
      • grades table format: (id,term,year,grade)
    • Examples:
        tables> print students
        (5,Mickey,Mouse)(2,Papa,Smurf)
        tables> print grades
        (1,Spring,2016,B)(2,Summer,1738,A)
        
  • join: Joins the students and grades tables based on the following attribute order: (id,firstname,lastname,term,year,grade).
    • Example:
        tables> join
        (2,Papa,Smurf,Summer,1738,A)
        
  • quit: Exits the program.

Technologies Used

  • C++
  • Linux
  • PuTTY
  • WinSCP

Data Structures Used

  • Finite Set
  • Linked List

Notes

  • This program should be compiled and executed in a Linux Operating System environment.
  • This program has been tested extensively, without error, through the University of North Texas's Praktomat testing system.

students-enroller_-_database-tables-version's People

Contributors

timgarvin 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.