Giter VIP home page Giter VIP logo

wvsu-sis's Introduction

WVSU-SIS

The West Visayas State University Student Information System (WVSU-SIS) is a C++ based program designed to store, retrieve, and print student as well as teacher info.

This program was made as a final project for our subject CC 202 (Computer Programming 1).

Installation

Then open the main.cpp file, compile, and run it through your designated IDE or code editor like Dev C++, Code::Blocks, Visual Studio or Visual Studio Code.

If you want to run it through Command Prompt or PowerShell, follow the guide below:

  1. Copy folder path to main.cpp.

  1. Type cd in command line, add space, paste path and press Enter.

  1. Type g++, space, the file name main.cpp, space, -o, space, and the name of the executable WVSU-SIS.exe. You can name the executable anything you want. Note you must have g++ compiler installed for this to work.

  1. Run the executable file by typing its name, like WVSU-SIS. Note your executable may have a different name so check it in the folder it is in.

That's it, WVSU-SIS now runs on your terminal!

If it asks you for a .json file, type in data.json. You can modify the file name on the folder you extracted WVSU-SIS.


Contributors


Features

Persistent Storage with JSON

To handle JSON manipulation, we decided to use a library called nlohmann/json.

With it, you can parse strings to JSON and the opposite. Those strings are then sent to a .json file for safe keeping.

It is best if you do not interfere with the file (e.g. add content or modify it), as you would risk breaking the functions built around sending that data to that file.

Below is one of those functions, this one fetches data from the file. All JSON related functions are stored in the jsonManip namespace.

namespace jsonManip
{
    using json = nlohmann::ordered_json;
    using std::string;

    void getData(json &data, string fileName)
    {
        std::ifstream jsonInpFile(fileName);

        if (help::isNotEmptyFile(jsonInpFile))
        {
            jsonInpFile >> data;
        }
        jsonInpFile.close();
        return;
    }

Sign-up, Log-in & Out

WVSU-SIS lets you sign-up as a new user (either a student or teacher) and log-in or out of the program.

You would be then routed to a dashboard, where you are free to choose any of the options presented as seen in the image below:

A dashboard presented as outputted text in the terminal with a list of options you can choose from

The first option, lets the program print the info you inputted when you first signed-up as a new user:

WVSU-SIS printing a students info (like the full name of the student) through text in a terminal

Outputting Text with Color

Outputting text on all white can sometimes be bland, everything's the same. You don't get to differentiate what text is important or not.

That is why we decided to include colors to some text with the aafulei/color-console library.

WVSU-SIS printing a text colored in red in the terminal, indicating an alert

License

Copyright (c) 2022 Keane Dalisay

The content of this depository is licensed under MIT

wvsu-sis's People

Watchers

Keane Dalisay avatar

wvsu-sis's Issues

study() and drinkCoffee() functions

Hello @ObnoxiousCoder!

This might be the last thing you would work on but below is the pseudocode of what the study() and drinkCoffee() functions do:

study() {
  // outputs user studying something... can be a string.
  // C++ supports emojis so you can do some creative thinking from there.
  // this is for the student dashboard.
}

drinkCoffee() {
  // outputs user drinking coffee...
  // you can follow the process on what you did on the study() function.
  // this is for the teacher dashboard.
}

Best of luck when you start on this! You can actually copy the code above and paste it to your code editor. You can then modify it to your needs.

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.