Multilevel Hierarchy in java

class student { int rollno; String name; student(int r, String n) { rollno = r; name = n; } void dispdatas() { System.out.println(“Rollno = ” + rollno); System.out.println(“Name = ” + name); } } class marks extends student { int total; marks(int r, String n, int t) { super(r,n); total = t; } void dispdatam()

Create frown becomes a half-circle in javascript

<html> <head> <title>Frown</title> <script type=”text/javascript”> function init() { var ctx =document.getElementById(“canvas”).getContext(‘2d’); ctx.beginPath(); ctx.strokeStyle = “rgb(200,0,0)”; ctx.arc(200, 200,50,0,Math.PI, true); ctx.closePath(); ctx.stroke(); } </script> </head> <body onLoad=”init();”> <canvas id=”canvas” width=”400″ height=”300″> Your browser doesn’t support the HTML5 element canvas. </canvas> </body> </html>

Create division table in PHP

<!–¬† A division table –> <?php $start_num = 1; $end_num = 10; ?> <HTML> <HEAD> <TITLE>A division table</TITLE> </HEAD> <BODY> <H2>A division table</H2> <TABLE BORDER=1> <?php print(“<TR>”); print(“<TH> </TH>”); for ($count_1 = $start_num; $count_1 <= $end_num; $count_1++) print(“<TH>$count_1</TH>”); print(“</TR>”); for ($count_1 = $start_num; $count_1 <= $end_num; $count_1++) { print(“<TR><TH>$count_1</TH>”); for ($count_2 = $start_num; $count_2 <=