Skip to content

sneha2245/scientific-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Scientific Calculator

https://sneha2245.github.io/scientific-calculator/

Duration

3 month.

Technologies / Tools Used

HTML, CSS, JavaScript, NetBeans , Glassfish .

Description

i. We have build a user friendly of a scientific calculator . The interface have a display and various buttons like sin, cos , numbers , operations etc.

ii. There is a button named inverse which is used to show inverse of some buttons like ln to , sin to , π to and many more.

Code

We used inverse button to display other buttons by using :

<span class="buttonNormal" id="inv" onclick="inv();">Inv</span> 
function inv() {
  document.getElementById('invStat').checked = !document.getElementById('invStat').checked;
  if (document.getElementById('invStat').checked) {
    document.getElementById('inv').style.backgroundColor = "#fff8a2";
    document.getElementById('ex').innerHTML = "e" + "<sup>x</sup>";
    document.getElementById('frac').innerHTML = "Frac";
    document.getElementById('sin').innerHTML = "sin" + "<sup>-1</sup>";
    document.getElementById('pi').innerHTML = "2π"; ...
  } else {
    document.getElementById('inv').style.backgroundColor = "#cccccc";
    document.getElementById('ex').innerHTML = "ln";
    document.getElementById('frac').innerHTML = "Int";
    document.getElementById('sin').innerHTML = "sin";
    document.getElementById('pi').innerHTML = "π"; ...
  }
}

Features

Display date and time .

Team Members

https://github.com/subirghosh77 , https://github.com/sneha2245/ , https://github.com/arnabseal

About

We have built a user friendly interface of a scientific calculator

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages