Download New Sharecodepoint Android App from Google Play Store : DocScannerPoint : Document Scanner with OCR, PDF: Download Now


Domyhomework123.com - programming homework help. Get your programming homework done with expert homework helper. Trust Writemypaper123.com with your paper and you will never regret it.

Download Latest Notes, Study Materials and More...

Visit: Download Now


Ask Any Question Relative to your Sujbect

Visit: Ask Question


Buy Capstone Projects Online - CSE & ECE Students Capstone Projects - Major Project - Miner Project

Buy Capstone Projects Online - CSE & ECE Students Capstone Projects -  Major Project - Miner Project
A capstone project is the very important task for a student. A capstone project is like a final examination for college students.

Capstone project always gears up your graduation score. It will help many to boost their all over academic performance. We are helping you to achieve the same by providing guidance for various projects. 

All Projects Copyright by Sharecodepoint Organization.

CSE Capstone Projects List :
1. Movie Website Capstone Project (Admin Panel & User Panel)

Admin Panel
  1. Add New Movies 
  2. Add Actors, Director, Actress, and more 
  3.  Login History 
  4. User Lists
  5. Movie Lists
  6. Locations
  7. Add & Update Categories 
  8. Banners (for Ads, Sponsor)
  9. Configs
  10. Enquirers
  11. Membership
  12. Contact Us 
  13. Slider Images
  14. Add & Update Menus Bar
  15. and more.
User Panel 
  1. Movies Lists 
  2. Show Movies by Categories like (Bollywood Movies, Hollywood Movies and More.)
  3. Movie Details With Time, Release Date, Year, Rating, Resolution Cast & Crew, Director, Story, Screenshot and more 
  4. Download, Save Movie and Play Button
  5. Update & Edit Setting
  6. Verification System :  Message & Email
  7. Advance Search System 
  8. and more.

2. Education Website (Content Write) 



3. Question & Answer Form (Ask Question, Post Answer, Like, View and More)
Add Questions, Like and Unlike question , share question on social media, signup & login, profile update, view counter questions, write answer and many more..


4. Music Website (Admin Panel & User Panel)
Upload music, add album, download songs, download history, login history, add in playlist, play online songs and many more...


5. Gym Management Software (Staff Manage, Attendance, & More Features )
Add membership, profile update, staff system, feedback, gym settings and many more...


6. Download & Upload Document Software (Admin Panel & User Panel)
upload and download document, add new category, login history and many more...


7. Social Networking Capstone Project 

Facebook + Twitter + Linkedin + naukri + goole plus = this project.
  1. Send friend request & Add friends 
  2. Newsfeed 
  3. Timeline 
  4. Documents  (Upload & Download )
  5. Automatic Generate Resume
  6. Share, Like, Comment , Save and More 
  7. Create Event 
  8. and More


8. Hotel Management Software (Booking System, Staff records, Attendance and More )
Room booking, add rooms, print invoice and send bill to email, laundry system, front office, generate report and many more...


9. E-commerce Website (Admin Panel & User Panel)
Add category, add items , add coupons, add images, track order, generate order invoice, customize website and more..


10. Restaurant Food Order Online (Admin Panel & User Panel)
Add Category, Item Names with image, View Order, Generate bill Invoice, Search Food Items and More..


11. Grammar Sentence Maker
Check the tense automatically (Past, Present and Future)


12. Bidding System Website
Post ads, bids, comment, add category, login, and signup with email verification


13. Food Online Order Website
Add Menu, Add Location, Add Items, Admin Panel & User Panel, Check the order status, Change the order status and many more..

For Other CSE Project's
Phone & Whatsapp : 7011258995 , Email : sharecodepoint@gmail.com

Free Web hosting for your projects.

ECE Capstone Project


1. Line following robot with smart phone controlled complete wireless lfr n rc car mode 50m range

2. Mate Solving Robot Capstone Project

3. Smart Home Automation (Bluetooth module) Capstone Project

4. Switching ON/OFF with mobile (Lights) Capstone Project

5. Automatic door opening System Capstone Project

6. RF-ID Counting no. of person entering into room (using IR Sensor)  Capstone Project.

7. RF-ID Counting no. of person entering into room with Turnstile

8. Smart Home Automation (wifi module) Capstone Project

9. ARALP 2.0(Automatic Robotic Arm Locomotive Platform)  : Feature complete smart  phone app controlled 5axis Robotic Arm on car complete wireless 100m range + wireless 100m range live video and audio footage from robot in your mobile + speak in mobile  hear at Robot inbuilt speaker + control camera rotation and  y-axis from mobile + automatic night vission + save video + audio in phone. includingle 240v ac Circuit directly plug n play

10. Distance measuring camera 5 meter range. 0.1cm  resolution 99% accuracy + temperature display + humidity display.

11. Complete automatic water feeding bowl for animals just fill water tank + overflow control smart animal incoming sense.

12. Home automation- smart phone controlled fans, lights + 2 appliances + power consumption reading n control.

13. Spyrobot  feature wireless 100m range live video and audio footage from robot in your mobile + speak in mobile  hear at Robot inbuilt speaker + control camera rotation and  y-axis from mobile + automatic night vission + save video + audio in phone + battery operated.

Complete Material we are provide. You will get complete project

Price Query : Whatsapp Number - 7011258995

If you have any doubt regarding project then leave your doubts in comment box.

Website & Graphics Design 
* Website Design 
  • Theme design 
  • Website for mobile
  • More
* Graphics Design 
  • Banner design
  • Logo design 
  • Template Print Design 

Live Demo :
Email : sharecodepoint@gmail.com  | Contact Number : 7011258995



How to create simple notepad android app using android studio

How to create simple notepad android app using android studio
This tutorial in on how to create a simple (notepoint) notepad android  app using android studio. A simple notepad that support Select All/ Copy/ Font size/  Font style and New document. Missing functions & features coming next version.

Notepoint project is a android app is implemented in android studio. You can download notepoint android app with source code.

How to import the project : 
Create new project . You just need to copy the code then paste that code into your project.
Notepoint android app features :
  • Menu bar for style, edit, format and view
  • Edit text with copy function with toast.
  • Format texts with changing the font size.
  • To create a new document.txt file.

Step 1: 
Firstly import the package of android files.
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.TypedValue;
import android.view.ContextMenu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.*;
import android.graphics.Typeface;
 
Step 2:
First we want to create a notepoint layout. Add 6 buttons for operations (like : bold, italic, normal, copy and more). Add 1 MultiAutoCompleteTextView Or EditText.

activity_main.xml
<Button
    android:layout_width="40dp"
    android:layout_height="wrap_content"
    android:text="B"
    android:textStyle="bold"
    android:id="@+id/boldtext"
    android:onClick="onClick()"
    />
    <Button
        android:layout_width="40dp"
        android:layout_height="wrap_content"
        android:textStyle="italic"
        android:layout_toRightOf="@+id/boldtext"
        android:text="I"
        android:id="@+id/italictext"
        android:onClick="onClick"
        />
    <Button
        android:layout_width="40dp"
        android:layout_height="wrap_content"
        android:textStyle="normal"
        android:text="N"
        android:layout_toRightOf="@+id/italictext"
        android:id="@+id/normaltext"
        android:onClick="onClick"
        />
    <Button
        android:layout_height="wrap_content"
        android:text="Size"
        android:layout_width="wrap_content"
        android:id="@+id/fontsize"
        android:layout_toRightOf="@+id/normaltext"
        />
    <Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Copy"
        android:id="@+id/copytext"
        android:layout_toRightOf="@+id/fontsize"
        />
    <Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="new"
        android:layout_toRightOf="@+id/copytext"
        android:id="@+id/newdoc"
        />
 
      <MultiAutoCompleteTextView
        android:id="@+id/mainpart"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:layout_alignParentLeft="true"
        android:layout_alignParentStart="true"
        android:ems="100"
        android:gravity="top|left"
          android:padding="10dp"
        android:inputType="textMultiLine"
        android:hint="Welcome to Notepoint"
        android:layout_alignParentBottom="true"
        android:layout_alignParentRight="true"
        android:layout_alignParentEnd="true"
          android:layout_below="@+id/boldtext"
          android:background="@color/editbordercolor"/>
 
 
For each operation, we created a ActionListner and give the appropriate for each.

Step 3: 
In this code you get following :
1. How to change the text color in android studio.
2. How to change the text font size in android studio.
3. How to show the message in Toast.
4. How to create contextmenu in android studio and more.

MainActivity.java
import android.content.res.TypedArray;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.*;
import android.util.TypedValue;
import android.view.ContextMenu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.*;
import android.graphics.Typeface;
import  android.widget.PopupMenu;
 
public class MainActivity extends AppCompatActivity implements OnClickListener {
 
    MultiAutoCompleteTextView mainview;
    String copydata;
    Button btn_bold,btn_italic,btn_normal,btn_size,btn_copydata,btn_new,btn_save;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
 
        btn_bold = (Button) findViewById(R.id.boldtext);
        btn_italic =(Button) findViewById(R.id.italictext);
        btn_normal =(Button) findViewById(R.id.normaltext);
        btn_size =(Button) findViewById(R.id.fontsize);
        btn_copydata =(Button) findViewById(R.id.copytext);
        btn_new =(Button) findViewById(R.id.newdoc);
 
 
        mainview = (MultiAutoCompleteTextView) findViewById(R.id.mainpart);
 
        btn_bold.setOnClickListener(this);
        btn_italic.setOnClickListener(this);
        btn_normal.setOnClickListener(this);
        btn_size.setOnClickListener(this);
        btn_new.setOnClickListener(this);
        btn_copydata.setOnClickListener(this);
 
        registerForContextMenu(btn_size);
    }
    public  void onClick(View view) {
        if (view == btn_bold) {
            Typeface setfontstyle = Typeface.defaultFromStyle(Typeface.BOLD);
            mainview.setTypeface(setfontstyle);
            Toast.makeText(getApplicationContext(), "Bold", Toast.LENGTH_LONG).show();
        } else if (view == btn_italic) {
                Typeface setfontstyle = Typeface.defaultFromStyle(Typeface.ITALIC);
                mainview.setTypeface(setfontstyle);
            Toast.makeText(getApplicationContext(), "Italic", Toast.LENGTH_LONG).show();
        } else if (view == btn_normal) {
            Typeface setfontstyle = Typeface.defaultFromStyle(Typeface.NORMAL);
            mainview.setTypeface(setfontstyle);
            Toast.makeText(getApplicationContext(), "Normal", Toast.LENGTH_LONG).show();
        }
        else if (view == btn_size) {
            view.showContextMenu();
            Toast.makeText(getApplicationContext(), "Font Size", Toast.LENGTH_LONG).show();
        }
        else if(view == btn_new)
        {
            String appnametitle ="Notepoint";
            setTitle(appnametitle+" - New Document.txt");
            mainview.setText("");
            mainview.setHint("New Document");
            mainview.setTextSize(TypedValue.COMPLEX_UNIT_SP, 20);
            Toast.makeText(getApplicationContext(), "New Document", Toast.LENGTH_LONG).show();
        }
        else if(view == btn_copydata)
        {
 
 
            copydata = mainview.getText().toString();
                copydata = mainview.getText().toString();
                Toast.makeText(getApplicationContext(), "Copied Successfully !!", Toast.LENGTH_LONG).show();
 
        }
    }
    public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo)
    {
        super.onCreateContextMenu(menu, v, menuInfo);
 
        menu.setHeaderTitle("Select Font Size");
        menu.add(0, v.getId(), 0, "5+");
        menu.add(0, v.getId(), 0, "10+");
        menu.add(0, v.getId(), 0, "20+");
        menu.add(0, v.getId(), 0, "25+");
        menu.add(0, v.getId(), 0, "30+");
        menu.add(0, v.getId(), 0, "35+");
        menu.add(0, v.getId(), 0, "40+");
        menu.add(0, v.getId(), 0, "45+");
        menu.add(0, v.getId(), 0, "50");
    }
    @Override
    public boolean onContextItemSelected(MenuItem item){
 
            if (item.getTitle() == "5+") {
                mainview.setTextSize(TypedValue.COMPLEX_UNIT_SP, 8);
            } else if (item.getTitle() == "10+") {
                mainview.setTextSize(TypedValue.COMPLEX_UNIT_SP, 14);
            } else if (item.getTitle() == "20+") {
                mainview.setTextSize(TypedValue.COMPLEX_UNIT_SP, 18);
            } else if (item.getTitle() == "25+") {
                mainview.setTextSize(TypedValue.COMPLEX_UNIT_SP, 24);
            } else if (item.getTitle() == "30+") {
                mainview.setTextSize(TypedValue.COMPLEX_UNIT_SP, 30);
            } else if (item.getTitle() == "35+") {
                mainview.setTextSize(TypedValue.COMPLEX_UNIT_SP, 33);
            } else if (item.getTitle() == "40+") {
                mainview.setTextSize(TypedValue.COMPLEX_UNIT_SP, 43);
            } else if (item.getTitle() == "45+") {
                mainview.setTextSize(TypedValue.COMPLEX_UNIT_SP, 48);
            } else if (item.getTitle() == "50") {
                mainview.setTextSize(TypedValue.COMPLEX_UNIT_SP, 50);
            } else {
                Toast.makeText(getApplicationContext(), "Something is Worng", Toast.LENGTH_LONG).show();
            }
        return true;
    }
} 
 
Step 4:
How to change line color in ( EditText and MultiAutoCompleteTextView ).
Add one xml file in you project. Give any name what you want.

bordercolor.xml
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
    <solid android:color="#ffffff" />
    <stroke android:width="1dip" android:color="#ffffff" />
</selector>
That's it! Download the files. Thanks for reading!

Video : create simple notepad android app

If you have any doubt regarding the creation of android app then leave your doubts in the comment box.

How to create notepad in java : check out

Lovely Professional University UMS (University Management System) Login Page Using HTML and CSS

Lovely Professional University UMS (University Management System) Login Page Using HTML and CSS
Lovely Professional University UMS (University Management System) Login Page.Lovely Professional University is a semi-residential university college in North India created under the Punjab State Private University Act 2005 and recognized by UGC under Section 2 of UGC Act 1956.




 Download Display Battery Status using HTML and CSS

FastClassified - Classified HTML, CSS and JavaScript Template

FastClassified - Classified HTML, CSS and JavaScript Template
Fastclassified looks good on normal computer, mobiles, or tablets. It Fully functional classified theme Platform which is completely responsive. The theme is extremely easy to manage and submit classified ads and you would definitely love to create your classified website with fastclassified template Design. Buy FastClassified Template only 5$ Dollar


FastClassified template Features :
  • Clean, Modern Design can be used for any type of website 
  • Full Responsive 
  • Custom Field 
  • Built with HTML and CSS 
  • Bootstrap 3
  • Working Contact Form
  • Cross Browser Support 
  • Strong focus on typography , usability and overall user-experience 
  • Social media icons 
  • Material Design 
  • Working in Mobile Design
  • and much more 
The FastClassified is a Premium Classified Template, super flexible and has a fully responsive design (try resizing your browser). Built with HTML5 , Bootstrap 3.1, and CSS3 .

 A lot of thought and care were put into FastClassified making it a pleasure to use. FastClassified looks good on normal computer, mobiles or tablets. It has Fully Functional Classified Template Platform which is completely responsive. 

Members Area and Management Tools When a visitor joins your website, they get access to their own members area where they can edit their account details, upload user photos, manage their listings and lots more! 100% Responsive Layout What ever you are using the devices your template run as it should be. We build fully responsive layout for all type of Desktop , Tablets and Mobile Phones My Ads Fronts user panel where list of all posted ads with their details like edit & Delete button. Ads views Counter & Published date.

Screenshots :

Home Page :

Page Options :














Trending Ads & Footer :


Post Ads :

User Profile Dashboard 

User Update Account : 

User Inbox (Messages) :

User Message View :

Select Sub Category :

All Ads Display :

Ads Preview :

Product & Seller Details Display : 

Contact to Seller : 


If you have any query then put your query on comment box. If you want to buy this template : sharecodepoint@gmail.com 

Make online quizzes template for website using html , css and javascript

Make online quizzes template for website using html , css and javascript
In this tutorial, we will show you how to make an online quiz using HTML, CSS  and the least  Javascript usage. There are so many websites available to provide the online quizzes code but their codes are very difficult to understand as well as difficult to implement. You can easily make online quizzes with the help of simple tags of HTML, CSS, and a bit of javascript.

In the above demo screenshot, I've created only 1 question with 4 multiple choice answers. You can create as many as you like. If you want to add a new question, you just need to copy the code. There is no need to write the code again.

In this quiz system, we used just a bit of javascript. If you don't know how to write/ use  HTML, CSS and javascript, don't worry, i will give you the entire code. If you want to learn html, css and javascript then visit the below links. Here you can learn basic concepts of HTML, CSS and many more languages.

HTML Tutorials : HTML Introduction

CSS Tutorials : CSS Introduction

JavaScript Tutorials: JavaScript Introduction

Let us start to make quiz system :

HTML Code 
Design the structure of quiz. Here,we have 2 div elements. First div class "class="scp-quizzes-main"" is main div  to control the quiz structure.  Second div "class="scp-quizzes-data"" is used to control the quiz questions and answers.
<div class="scp-quizzes-main">
<div class="scp-quizzes-data">
  <h3>1. What is the output of the below c code?</h3>
    <pre>#include&lt;stdio.h> 
main() 
{
   int x = 5;
   
   if(x=5)
   { 
      if(x=5) printf("Fast");
   } 
   printf("learning");
}</pre>
<br/>
    <input type="radio" id="Fastlearning" name="question1">
       <label for="Fastlearning">1. Fastlearning</label><br/>
    <input type="radio"  name="question1">
       <label>2. learning</label><br/>
    <input type="radio" name="question1">
       <label>3. learningFast</label> <br/>
    <input type="radio" name="question1">
     <label>4. Fast</label> 
 </div>
Ratios button is used for multiple answers.  4 radio buttons with the same name are used for each question.
Note : The label for="answer" and input id ="answer" is  written with same name to display the correct answer. To make any option as correct answer, write its label for=" answer" and input id ="answer".

CSS Code
This CSS used for the radio button to change the radio button style.
input[type=radio] {
    display:none; 
}
input[type=radio] + label {
    display:inline-block;
 width:95%;
 padding:10px;
 border:1px solid #ddd;
 margin-bottom:10px;
 cursor:pointer;
}
input[type=radio] + label:hover{ border:1px solid #000000;}
input[type=radio]:checked + label { 
   background-image: none;
   background-color:#0C0;
 color:#fff;
 border:1px solid #0C0 !important;
 -webkit-transition: all 0.2s ease-in-out;
-moz-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
-ms-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}

Wrong answer style
.worngans{ background-color:#F36;color:#fff; border:1px solid #F36 !important;-webkit-transition: all 0.2s ease-in-out;
-moz-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
-ms-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;}
JavaScript Code
jquery.min.js Javascript files will need to be referenced on the page your quiz is on, in order for the quiz to work. To reference, you'll need to add this line between the opening and closing head tags.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js" type='text/javascript'></script>

This is the javascript where the wrong answer is specified. Add this javascript code between the opening and closing head tags.
<script type="text/javascript">
 $(document).ready(function() {
    $('label').click(function() {
        $('label').removeClass('worngans');
        $(this).addClass('worngans');
    });
});
</script>

If you have any doubts regarding the creation of an android app then leave your doubts in the comment box.

Make Android Apps Using HTML, CSS and JavaScript

Make Android Apps Using HTML, CSS and JavaScript
This tutorial shows how to create a JS/HTML android application using the command-line interface (CLI).

So many people ask this question "Is it possible to create an Android app using HTML, CSS and JavaScript?"  Yes, you can develop apps using HTML / CSS / Javascript.

The great thing about Cordova is that you can create a core app in HTML5/CSS3/JS and have it compile to all the platforms at once.

How To Develop Android App

Web APP: This is the part where your application code resides. The application itself is implemented as a web page, by default a local file named index.html, that references CSS, JavaScript, images, media files, or other resources are necessary for it to run. The app executes in a WebView within the native application wrapper, which you distribute to app stores.

Plugins: Plugins are an integral part of the cordova ecosystem. They provide an interface for Cordova and native components to communicate with each other and bindings to standard device APIs. This enables you to invoke native code from JavaScript.  Download Plugins

Mobile OS: Android, Window and IOS

Create your first Android App :

Step 1:

Step 2:
  • Open Command Prompt 
  • Install the cordova module using npm utility of Node.js 
C: \> npm install -g cordova
  • The cordova module will automatically be downloaded by the npm utility. 

Step 3:
  • Create the App
  • Go to the directory where you maintain your source code, and run a command.
cordova create myapp  com.se.my  HelloWorld

myapp:- Specifies a directory to be generated for your project.
com.se.my:- Java package names.
HelloWorld:- Provides the application's display title.

Step 4: 
  • The project's directory 
C: \> cd myapp

Step 5:
  • Command to add the platform 
C: \myapp> cordova platform add android
  • Command to remove the platform 
C: \myapp> cordova platform rm android

Step 6:
  • Build the App
C: \myapp> cordova build
  • Test the App on an Emulator or Device
C: \myapp> cordova emulate android

How to Upload or Publish the .APK file on Google Play Store
You used the CLI for almost all tasks and this will help you sign your APK for publishing to Google Play.

Step 1 – Build the release APK
You’ll need to get cordova to build an APK file for release.

cordova build –release android

Step 2 – Create a Keystore
You’ll need to install Java in order to access the binary called keytool. This binary will produce the keystore files you’ll need for signing the APK.

keytool -genkey -v -keystore <KEYSTORE FILENAME> -alias <KEYSTORE ALIAS> -keyalg RSA -keysize 2048 -validity 10000

The KEYSTORE FILENAME is the output file the keystore data will be saved to. The KEYSTORE ALIAS is a simple alias we’ll use later in the process to identify which key to use within the keystore.

Step 3 – Sign the JAR file
Here we’ll use jarsigner to create an preliminary APK file.

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore <PATH TO KEYSTORE FILE> <PATH TO CORDOVA BUILT APK> <KEYSTORE ALIAS>

The jarsigner will take the keystore, the cordova built APK and the keystore alias and create an APK that needs to be zipaligned.

Step 4 – ZIPAlign the file
Now we simply call zipalign to finish the job.

zipalign -v 4 <PATH TO CORDOVA BUILT APK> <FINISHED APK FILENAME>

The FINISHED APK FILENAME can be anything you wish. This file can then be uploaded to Google Play.

Download the Android App UI Design:
Example Android App : Download Now

Tutorial Video:
Android app for web designer. This is a very basic process to make and build an android application using a simple html. This is a very simple application that you can install to your android phone - Watch Video Tutorial

If you have any doubt regarding creation of the android app then leave your doubts in comment box.

Create Calculator using HTML, CSS and JavaScript

Create Calculator using HTML, CSS and JavaScript
In this tutorial,we are going to create a calculator. We need to create a basic structure using HTML, style it using CSS and make it work using JavaScript, which works on browser.

This calculator will only have the division, multiplication, addition and subtraction operations but you can easily include more functions if you need.

You can also use keyboard number keys to calculate the value. Input type are included in the code for a form which makes ‘textfield’ and ‘button’. Every input field is specified with attribute value. The  attribute value specifies the value of an <input> element. Eval() function takes the expression and evaluates it accordingly. ‘On click’ is the event. It occurs when  the user clicks on an element. 

HTML CODE:
 The following  code is to make html calculator.
<div align="center">
<form onsubmit="javascript:cal(document.getElementById('valueshow').value);return false;">
<table align="center">
<tbody>
<tr>
<td colspan="4"><input id="valueshow" type="text" value="0" />
</tr>
<tr>
<td><input class="bgcolornumber" onclick="cals(this.value);" type="button" value="1" />
<td><input class="bgcolornumber" onclick="cals(this.value);" type="button" value="2" />
<td><input class="bgcolornumber" onclick="cals(this.value);" type="button" value="3" />
<td><input class="bgoperationcolor" onclick="cals(this.value);" type="button" value="/" />
</tr>
<tr>
<td><input class="bgcolornumber" onclick="cals(this.value);" type="button" value="4" />
<td><input class="bgcolornumber" onclick="cals(this.value);" type="button" value="5" />
<td><input class="bgcolornumber" onclick="cals(this.value);" type="button" value="6" />
<td><input class="bgoperationcolor" onclick="cals('*');" type="button" value="x" />
</tr>
<tr>
<td><input class="bgcolornumber" onclick="cals(this.value);" type="button" value="7" />
<td><input class="bgcolornumber" onclick="cals(this.value);" type="button" value="8" />
<td><input class="bgcolornumber" onclick="cals(this.value);" type="button" value="9" />
<td><input class="bgoperationcolor" onclick="cals(this.value);" type="button" value="-" />
</tr>
<tr>
<td><input class="bgcolornumber" onclick="cals(this.value);" type="button" value="0" />
<td><input class="bgcolornumber" onclick="cals(this.value);" type="button" value="." />
<td><input class="bgclear" onclick="cals(this.value);" type="button" value="C" />
<td><input class="bgoperationcolor" onclick="cals(this.value);" type="button" value="+" />
</tr>
<tr>
<td colspan="4"><input class="equal" onclick="cal(document.getElementById('valueshow').value);" type="button" value="=" />
</td>
</tr>
</tbody>
</table>
</form>
</div>
Most of the HTML is coding for all the input buttons and their associated onclick event handlers. All the buttons, except for the = button, will call the cal JavaScript when clicked and passes it’s associated value. The = button calls the calculate JavaScript function and passes the value that is in the text input which represents the string of numbers and operators that were pushed. Two types of inputs text and button are used here on a table within a form element and OnClick event was used to insert button values on the screen or to evaluate the numbers.

CSS CODE:
//div control the all calculator component like (buttons, text field ). It also control the left, top margin of calculator.
div {
    width: 500px;
    margin-left: 30%;
    margin-top: 5%
}
table {
    width: 100%;
    border: 2px solid #fff;
    box-shadow: 0 0 2px 1px #f1f1f1;
}
input[type="button"] {
    border: none;
    width: 100%;
    padding: 10px;
    font-size: 60px;
    outline: none;
    height: 90px;
    transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}
input[type="text"] {
    border: none;
    width: 100%;
    height: 100px;
    padding: 10px;
    font-size: 70px;
    outline: none;
    font-weight: normal;
    color: #555
}
 
//.bgcolornumber class is use for all button number buttons (0-9)
.bgcolornumber {
    background-color: #f1f1f1;
    color: #333;
    transition: all 0.3s ease-in-out;
}
.bgclear {
    background: #CC0000;
    color: #f9f9f9;
    transition: all 0.3s ease-in-out;
}
 
//.bgoperationcolor is use for all operation buttons (+,-,*,/)
.bgopeationcolor {
    background-color: #663399;
    color: #f9f9f9;
    transition: all 0.3s ease-in-out;
}
.equal {
    background-color: #66CC33;
    color: #f9f9f9;
    transition: all 0.3s ease-in-out;
}
.bgcolornumber:hover {
    background-color: #222;
    color: #f5f5f5;
    transition: all 0.3s ease-in-out;
}
.bgclear:hover {
    background-color: #FF0000;
    color: #f5f5f5;
    transition: all 0.3s ease-in-out;
}
.bgoperationcolor:hover {
    background-color: #0033CC;
    ;
    color: #f9f9f9;
    transition: all 0.3s ease-in-out;
}
.equal:hover {
    background-color: #66FF00;
    transition: all 0.3s ease-in-out;
}
input[type="text"]:active {
    font-size: 75px;
}

JAVASCRIPT CODE:
Here is the JavaScript code for the 2 functions:
<script type="text/javascript">
function cals(buttonValue) 
{
if (buttonValue == 'C') 
{
   document.getElementById('valueshow').value = '0';
}
else
  {
    if(document.getElementById('valueshow').value == '0') 
 {
  
   document.getElementById('valueshow').value = buttonValue;
}
  
  else
   {
    
    document.getElementById('valueshow').value += buttonValue;
   }
  }
 }
  function cal(equation)  
   
  {
  var answer = eval(equation);
document.getElementById('valueshow').value = answer;
 }
 </script>
The cal function does 2 things for us. If the user clicks on the C button or the clear button, it accesses the text input object, which represents our calculator screen, via the DOM . Once it is accessed, the value inside the text input is set to ” (2 single quotes) which is an empty string. This will basically remove whatever string is already inside the text input. If the user clicks on any other button, the function will access the text input object and append the value that was passed over to whatever is already in our text input. This allows us to build our string with numbers and operators.

The eval() function treats the string as if it were JavaScript code and executes it and returns the results. The function will then access the text input object and replace whatever the current value is with the answer from the eval() function.