Aisya Humaira

Kisah hidupku
Ad 0:
https://monometric.io/ - Modern SaaS monitoring for your servers, cloud and services
2016-02-25 15:01:04 (UTC)

ok je


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional //EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-Transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
<title> This is GPA calculator </title>
</head>
<body>

<center><h><font size="5">This is a program to calculate GPA <h2> </center>


<form action="calcform.asp">

<table border="1" width="500px" height="100px">
<tr><td colspan="7" align="center" width="150%"><font size="7"><u> GPA Calculator </u><br></tr>
<tr>
<td colspan="2">Course code</td>
<td colspan="2"> Credit Hour</td>

<td colspan="2">Grade</td>

</tr>


<tr>
<td colspan="2"> <form><br> <input type="text"></br> </form></td>
<td colspan="2"> <form><br> <center> <select name="CREDITHOUR">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
</select></br> </center> </form></td>
<td colspan="2"> <center><select name="GRADE">
<option value="4.00">A</option>
<option value="3.75">A-</option>
<option value="3.50">B </option>
<option value="3.00">B</option>
<option value="2.50">C </option>
<option value="2.00">C</option>
<option value="1.50">D</option>
<option value="1.00">D</option>
<option value="0.00">F</option>
</select></br> </center></form></td>

</tr><tr>
<td colspan="2"> <form><br> <input type="text"></br> </form></td>
<td colspan="2"> <form><br> <center><select name="CREDITHOUR">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
</select></br> </center></form></td>


<td colspan="2"> <form><br> <center><select name="GRADE">
<option value="4.00">A</option>
<option value="3.75">A-</option>
<option value="3.50">B </option>
<option value="3.00">B</option>
<option value="2.50">C </option>
<option value="2.00">C</option>
<option value="1.50">D</option>
<option value="1.00">D</option>
<option value="0.00">F</option>
</select></br> </center></form></td>

</tr><tr>
<td colspan="2"> <form><br> <input type="number"></br> </form></td>
<td colspan="2"> <form><br> <center><select name="CREDITHOUR">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
</select></br></center> </form></td>
<td colspan="2"> <form><br> <center><select name="GRADE">
<option value="4.00">A</option>
<option value="3.75">A-</option>
<option value="3.50">B </option>
<option value="3.00">B</option>
<option value="2.50">C </option>
<option value="2.00">C</option>
<option value="1.50">D</option>
<option value="1.00">D</option>
<option value="0.00">F</option>
</select></br> </center></form></td>

</tr>


</tr><tr>
<td colspan="2"> <form><br> <input type="text"></br> </form></td>
<td colspan="2"> <form><br> <center><select name="CREDITHOUR">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
</select></br></center> </form></td>
<td colspan="2"> <form><br> <center><select name="GRADE">
<option value="4.00">A</option>
<option value="3.75">A-</option>
<option value="3.50">B </option>
<option value="3.00">B</option>
<option value="2.50">C </option>
<option value="2.00">C</option>
<option value="1.50">D</option>
<option value="1.00">D</option>
<option value="0.00">F</option>
</select></br> </center></form></td>

</tr>

<tr>
<td colspan="4"> Total credit hour: </td>

<td colspan="2"> <form><br> <input type="text"></br> </form></td>
</tr>

<tr>
<td colspan="4"> GPA: </td>

<td colspan="2"> <form><br> <input type="text"></br> </form></td>
</tr>

<tr>

<td colspan='6'>

<center><form action="calcform.asp" method="get">
<button type="reset" value="Reset">Reset</button>


<input type="button" value="calculate" onclick="calcVals()"/>
<div id="results"></div>
<script type="text/javascript">

</form>
</center>
</td>
</tr>
</table>


//GPA = (GRADE*CREDITHOUR)/ CREDITHOUR

function calculate(){

var grade1 = document.getElementById('grade1').value;
var grade2 = document.getElementById('grade2').value;
var grade3 = document.getElementById('grade3').value;
var grade4 = document.getElementById('grade4').value;

var sum = ((grade1* crdthour1) (grade2 * crdthour2) (grade3 * crdthour3) (grade4 * crdthour4));
var totcrdthour = (crdthour1 crdthour2 crdthour3 crdthour4);

var gpa = (sum / totcrdthour);


}

</body>

</html>


Ad:0
Want some cocktail tips? Try some drinks recipes over here