SHARE
TWEET

Untitled

a guest Oct 21st, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="utf-8"/>
  5.     <title>Percentage grade calculator</title>
  6.     <script>
  7.         function percentageGrade()
  8.         {
  9.             var HwScore, MtScore, Fscore, H, FG;
  10.            
  11.             HwScore=document.getElementById("HwScore").value;
  12.      
  13.             document.write(("H"/200)*50)
  14.            
  15.         }
  16.    
  17.    
  18.    
  19.    
  20.    
  21.    
  22.     </script>
  23. </head>
  24. <body>
  25.     <h1>Percentage grade calculator</h1>
  26. <form>
  27. <p> Enter your total Homework score: <input type="text" id="HwScore" name="Homework score" onClick=percentageGrade()></p>
  28.     <p> Enter your midterm score: <input type="text" id="MtScore" name="Midterm score"></p>
  29.     <p> Enter your Final score: <input type="text" id="Fscore" name="Final score"></p>
  30.     <p> <input type="button" value="Calculate Grade" name="Calculate Grade"></p>
  31. </form>
  32.  
  33. </body>
  34. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top