Homeschool – Technology Part 2

Technology and STEM education is part of the curriculum starting from second grade. Technology is a good career line for children who has logical and reasoning skills. Basic programming skills is an extension of math skills. How to automate problem solving.

A simple example, every apple costs 2 dollars , so what is the cost of 10 apples. On a abstraction point of view , how much is x apples.  The problem can be solved in below languages:

  1. Easiest – HTML
  2. Intermediate – Python
  3. Advanced – Java

We will pick the easiest HTML , since other needs development environment setup which I will be covering in subsequent blogs.


JS Bin

function myFunction() {
var y = document.getElementById(“txt1”).value;
var z = document.getElementById(“txt2”).value;
var x = y * z;
document.getElementById(“demo”).innerHTML = x;

Click the button to calculate x.
Try it

Enter Apples:

Enter cost:


Please use the below website for trying changes:

You can also save the html to notepad as apples.html and open the file using your browser.






Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s