Giter Club home page Giter Club logo

course-registration's Introduction

Course Registration

Here's the link for live site

Project Features:

  1. You can select any course and it will be added to the cart, with respective price, credit time, and title.
  2. Intially you have total 20 hr credit time, as you proceed to select courses you're credit hour will decrease with relation with your courses.
  3. You're total credit hour cannot exceed more than 20 hr, if it does you'll get an error saying credit hour exceeds.
  4. You can't select a single course twice, if you do it will throw an error saying, "Already selected".

State Management

  • There are mainly four states in this project. The first one is for the course selection. Initially the state was an empty array and when a course got selected that has been placed in that empty array. The second one is for the remaining credit hour calculation. Initial state is 20 and as you proceed to select courses the state changes to deduct the respective credit time for each selected courses. The third state is very similar to the second one. It's basically used to calculate the total credit hour. The initial state is zero and as a user proceed to select courses the state changes to sum the credit hours. The fourth and last state is very simple. It used to get the total price of selected courses. Very similar to the previous states, the initial state value is zero and the setPrice function sets the sum of all the selected courses price to the state called price.

course-registration's People

Contributors

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