Coder Social home page Coder Social logo

ziakhan1995 / js-gpa-calculator Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 379 KB

This code basically is how to calculate GPA based on the course values and Grades. It has a table that includes a menu of grades for each course. On clicking the Calculate Your GPA button it checks for any empty grade of a course. After validating, it calculates the GPA. Routing, navigation, applying an active class to visited link is also handled

Home Page: https://codepen.io/ziakhan1995/pen/bGxzYNO

CSS 16.97% HTML 28.03% JavaScript 54.99%
javascript javascriptcalculator gpa html-css-javascript js-gpa-calculator js-nav-menu calculator front js-calculator ziakhan1995

js-gpa-calculator's Introduction

Javascript GPA calculator

This will help you through how to create a simple GPA calculator in Javascript. Download code and run on your ssytem.

Run the system

1. Clone the repo/code

2. Open in tomcat (If you have no editors then provide full path for each image file and CSS and HTML file)

*localhost:8080/js-jpa-calculator/index.html in brower.(with tomcat)

*Run the index.html file in brower.(without tomcat)

Kindly visit the Codepen link to Demo the project.

Note* Use defer attribute in script tag if async does work or load the roots file properly. i.e

<script src="javascript/nav.js" async></script>

replace async with defer.

Screenshots are provided in images folder. Download the code and run. (tomcat recommended otherwise you have to handle path issues).

1. It will display errors(if grade value for a course is missing) like this when you hit Calculate GPA button.

js-gpa-calculator-errors-when-course-is-empty

2. Display calculated GPA in case all the grades for each course is provided.

js-gpa-calculator-display-gpa-based-grades-provided

js-gpa-calculator's People

Contributors

ziakhan1995 avatar

Stargazers

 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.