Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

2T16 Poorva RCG Part 3

<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<script>
document.write("===Report Card=== <br>");
document.write("Name: " + "Poorva Maithani<br>");
document.write("Class: " + "2T<br>");
document.write("Index Number:" + "16<br>")

document.write("===Grades===<br>");
document.write("Language Arts: " + "83" + "/100" + " (A) <br>");
document.write("Science:" + "78" + "/100" + " (B) <br>");
document.write("Math:" + "81" + "/100" + " (A) <br>");
document.write("Mother Tongue:" + "74" + "/100" + " (B) <br>");

//part 2 
document.write("===Report Card===<br>");
var yourname = prompt("Enter your name: ");
var yourclass = prompt("Enter your class: ");
var yourindexno = prompt("Enter your index number");
document.write("Name: " + yourname + "<br>");
document.write("Class: " + yourclass + "<br>");
document.write("Index Number: " + yourindexno + "<br>");

document.write("===Grades===<br>");
var yourlangartsmark = prompt("Enter your Lang Arts mark: " + "<br");
var yourscimark = prompt("Enter your Science mark: " + "<br>");
var yourmathmark = prompt("Enter you Math mark: " + "<br>");
var yourMTmark = prompt("Enter your Mother Tonge mark: " + "<br>");
document.write("Langauge Arts: " + yourlangartsmark + "/100" + " (A)<br>");
document.write("Science: " + yourscimark + "/100" + " (B)<br>");
document.write("Math: " + yourmathmark + "/100" + " (A)<br>");
document.write("Mother Tongue: " + yourMTmark + "/100" + " (B)<br>"


var total = Number(yourlangartsmark) + Number(yourscimark) + Number(yourmathmark) + Number(yourMTmark)

document.write("Total Score:" + total + "/400<br>");




</script>
</head>
<body>
</body>
</html>

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.