Showing posts with label grading system in angularjs. Show all posts
Showing posts with label grading system in angularjs. Show all posts

Saturday, July 15, 2017

Grading System in AngularJS

A very simple program that I wrote using AngularJS to compute the grade of the student. The code is very simple and easy to understand.

My email address are the following jakerpomperada@gmail.com and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

Thank you.




Program Listing

<html>
   <head>
      <script src = "https://ajax.googleapis.com/ajax/libs/angularjs/1.5.2/angular.min.js"></script>
   </head>
   
   <body ng-app>
     Prelim Grade   <input ng-model="prelim"  type="number"> <br>
     Midterm Grade  <input ng-model="midterm" type="number"> <br>
Endterm Grade <input ng-model="endterm"  type="number"> 
<br><br>
 
Your Grade is {{ (prelim * 0.2) + (midterm * 0.3) + (endterm * 0.5) | number : 2 }}
</body>
</html>