Saturday, December 8, 2012

Calculator v1, Programmed by Sushant Gupta



       Calculator v1   by, Sushant Gupta
Numbers to use while calculation:Operators :
Calculate :
 
Important Note : Please only use keys provided. Dont use Keyboard.
  

The source code for the javascript used is : 


<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var FKeyPad = document.Keypad;
var Accum = 0;
var FlagNewNum = false;
var PendingOp = "";
function NumPressed (Num) {
if (FlagNewNum) {
FKeyPad.ReadOut.value  = Num;
FlagNewNum = false;
   }
else {
if (FKeyPad.ReadOut.value == "0")
FKeyPad.ReadOut.value = Num;
else
FKeyPad.ReadOut.value += Num;
   }
}
function Operation (Op) {
var Readout = FKeyPad.ReadOut.value;
if (FlagNewNum && PendingOp != "=");
else
{
FlagNewNum = true;
if ( '+' == PendingOp )
Accum += parseFloat(Readout);
else if ( '-' == PendingOp )
Accum -= parseFloat(Readout);
else if ( '/' == PendingOp )
Accum /= parseFloat(Readout);
else if ( '*' == PendingOp )
Accum *= parseFloat(Readout);
else
Accum = parseFloat(Readout);
FKeyPad.ReadOut.value = Accum;
PendingOp = Op;
   }
}
function Decimal () {
var curReadOut = FKeyPad.ReadOut.value;
if (FlagNewNum) {
curReadOut = "0.";
FlagNewNum = false;
   }
else
{
if (curReadOut.indexOf(".") == -1)
curReadOut += ".";
   }
FKeyPad.ReadOut.value = curReadOut;
}
function ClearEntry () {
FKeyPad.ReadOut.value = "0";
FlagNewNum = true;
}
function Clear () {
Accum = 0;
PendingOp = "";
ClearEntry();
}
function Neg () {
FKeyPad.ReadOut.value = parseFloat(FKeyPad.ReadOut.value) * -1;
}
function Percent () {
FKeyPad.ReadOut.value = (parseFloat(FKeyPad.ReadOut.value) / 100) * parseFloat(Accum);
}
// End -->
</script>

The Calculator frame-code is as follows : 

 

<form method="post" action="" novalidate="novalidate" data-form="preview" name="Keypad" id="docContainer" class="fb-100-item-column fb-toplabel selected-object" style="BACKGROUND-IMAGE: none; BORDER-BOTTOM-COLOR: #00ffff; BACKGROUND-COLOR: #dbfbff; BORDER-TOP-COLOR: #00ffff; WIDTH: 600px; FONT-FAMILY: arial; BORDER-RIGHT-COLOR: #00ffff; BORDER-LEFT-COLOR: #00ffff; TOP: 0px;">
      <p id="body">
      <CENTER>
        <B>
          <TABLE border=0 width=470 height=361 cellpadding=1 cellspacing=5>
            <TR bordercolor="#000000">
              <TD height="58" colspan=6 align=left bgcolor="#CCFF66"><b><font color="#0066FF" size="+3"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Calculator v1 </font></b>&nbsp;&nbsp;<b>by, Sushant Kumar Gupta</b></TD>
            </TR>
            <TR bordercolor="#FFFFFF">
              <TD height="21" colspan=3 align=middle>&nbsp;</TD>
              <td width="21"></TD>
              <TD colspan="2">&nbsp;</TD>
            </TR>
            <TR bordercolor="#FFFFFF">
              <TD height="26" colspan=6 align=middle><input name="ReadOut" type="Text" size=5 value="0" width=100% onmousedown="this.value=''"></TD>
            </TR>
            <TR bordercolor="#FFFFFF" align="center">
              <TD height="21" colspan="3">&nbsp;</TD>
              <TD></TD>
              <TD colspan="2" valign="middle">&nbsp;</TD>
            </TR>
            <TR bordercolor="#FFFFFF" align="center">
              <TD height="22" colspan="3" bgcolor="#FF9933"><font color="#FFFFFF"> Numbers to use while calculation:</font></TD>
              <TD></TD>
              <TD colspan="2" bgcolor="#00CCFF" valign="middle"><font color="#FFFFFF">Operators : </font></TD>
            </TR>
            <TR bordercolor="#FFFFFF" align="center">
              <TD height="21" align="center">&nbsp;</TD>
              <TD align="center">&nbsp;</TD>
              <TD align="center">&nbsp;</TD>
              <TD></TD>
              <TD>&nbsp;</TD>
              <TD>&nbsp;</TD>
            </TR>
            <TR bordercolor="#FFFFFF" align="center">
              <TD width="95" height="28" bgcolor="#99FF99" align="center"><input name="btnSeven" type="Button" value="        7        " onClick="NumPressed(7)" width="300" class="button"></TD>
              <TD width="103" bgcolor="#99FF99" align="center"><input name="btnEight" type="Button" value="        8        " onClick="NumPressed(8)" class="button"></TD>
              <TD width="97" bgcolor="#99FF99" align="center"><input name="btnNine" type="Button" value="        9        " onClick="NumPressed(9)" class="button"></TD>
              <TD></TD>
              <TD width="53" bgcolor="#CC66FF"><input name="btnPlus" type="Button" value="  +  " onClick="Operation('+')"></TD>
              <TD width="54" bgcolor="#CC66FF"><input name="btnMinus" type="Button" value="   -   " onClick="Operation('-')"></TD>
            </TR>
            <TR align="center">
              <TD height="26" bgcolor="#99FF99"><input name="btnFour" type="Button" value="        4        " onClick="NumPressed(4)" class="button"></TD>
              <TD bgcolor="#99FF99"><input name="btnFive" type="Button" value="        5        " onClick="NumPressed(5)" class="button"></TD>
              <TD bgcolor="#99FF99"><input name="btnSix" type="Button" value="        6        " onClick="NumPressed(6)" class="button"></TD>
              <TD></TD>
              <TD align=middle bgcolor="#CC66FF"><input name="btnMultiply" type="Button" value="  *  " onClick="Operation('*')"></TD>
              <TD align=middle bgcolor="#CC66FF"><input name="btnDivide" type="Button" value="   /   " onClick="Operation('/')"></TD>
            </TR>
            <TR align="center">
              <TD height="26" bgcolor="#99FF99"><input name="btnOne" type="Button" value="        1        " onClick="NumPressed(1)" class="button"></TD>
              <TD bgcolor="#99FF99"><input name="btnTwo" type="Button" value="        2        " onClick="NumPressed(2)" class="button"></TD>
              <TD bgcolor="#99FF99"><input name="btnThree" type="Button" value="        3        " onClick="NumPressed(3)" class="button"></TD>
              <TD></TD>
              <TD colspan="2" align=middle valign="middle">&nbsp;</TD>
            </TR>
            <TR align="center">
              <TD height="26" bgcolor="#99FF99"><input name="btnZero" type="Button" value="        0        " onClick="NumPressed(0)" class="button"></TD>
              <TD bgcolor="#99FF99"><input name="btnDecimal" type="Button" class="button" onClick="Decimal()" value="         .        "></TD>
              <TD bgcolor="#99FF99"><input name="btnNeg" type="Button" class="button" onClick="Neg()" value="       +/-       "></TD>
              <TD></TD>
              <TD colspan="2" align=middle bgcolor="#00CCFF" valign="middle"><font color="#FFFFFF">Calculate : </font></TD>
            </TR>
            <TR align="center">
              <TD height="26" colspan="3" bgcolor="#99FF99"><input name="btnClear" type="Button" value="  Reset all Values  " onClick="Clear()"></TD>
              <TD></TD>
              <TD bgcolor="#CC66FF"><input name="btnEquals" type="Button" value="  =  " onClick="Operation('=')"></TD>
              <TD bgcolor="#CC66FF"><input name="btnPercent" type="Button" value="  % " onClick="Percent()"></TD>
            </TR>
          </TABLE>
        </B>
        <p><strong>Important Note :</strong> <em>Please only use keys provided. Dont use Keyboard.</em>      </p>
      </CENTER>
      <p align="center"><a id="fb-link-logo1" class="fb-link-logo" href="" target="_blank"><img style="display: none;" id="fb-logo1" class="fb-logo" title="Alternative text" alt="Alternative text" src="index_files/image_default.png"></a></form>

Should we buy Foreign goods, Should we buy goods produced by a Multinational Company (MNC)


This is the question that has been prompting me for several days and I know many of you too. So, Today I am posting a brief view of buying and selling of foreign views.

Favorable reasons for buying foreign goods :

 

  • Certain company tend to open their branches in almost every part of the world. Some of the popular brands include Pepsi, Rolex,Coco-cola, KFC and many more. Mainly all the beverages, food manufacturing and others get their job of manufacturing and selling done by local traders. This creates large employment oppurtunities for local people. If no one will buy goods of these companies it will ruin of the employed people. Generally the companies get the trading rights from the government and sell under their company named followed by the country name. For example, A Rolex company in China will be called Rolex China and get most of their work done by the chinese people. If the company is eroded by people not buying their goods, many of its local workers will also effected.

  • It takes a long time, sometimes over 200 years, to gain confidence of the people and emerge as a  huge company so as to enlarge its market to every corner of the world. We can't forget the investment they do to in production and advertisements of the products. The Tata Group, for example, didn't emerge overnight but after a long span of 150 years.

  • It desperately helps in circulation of economy all around the world. Without this circulation, it would have been difficult for the growth of the economy of any country.
  •  
  • The MNCs (Multi National Companies) bring us the goods and services that may not be available in the target country. These would help them to know what goods and new products are produced throughout the world. It helps people modernise.

  •  The goods produced by MNCs are better in terms of quality.

     

    But every thing has its own pros and cons :

     

    •  Liberalism(removal of tax barriers) has helped the MNCs to expand their market in poor and developing countries. The goods produced by MNCs are of low cost because they get their product manufactured in different countries thereby reducing manufacturing cost. Thus they are able to sell it at low prices. This eliminates the local merchants, traders and small-scale manufactures.
    •   
    • Some of the companies try to give false ideas about themselves by saying that they are very old and trusted but in reality they are not.  

    •  In some cases the goods produced by a MNC is very expensive compared to goods produced by local manufacturers.

     

    What to remember before buying a good ??

     

    Experiment with the company before buying goods. Study carefully about the company from which you are going to buy the goods.
    Carefully investigate if the company effects the local traders or not.
    It entirely depends on yourself whether you choose to buy the foreign good or local good. You are free as both have their own pros and cons.

    CBSE vs ICSE - Which is better ??


    A frequent debate that goes in Indian Education System is Which of the board is better CBSE(Central Board of Secondary Education) or ICSE( Indian Certificate of Secondary Education) ??

    There are two very different boards of education catering to the academic sector in India, and these are CBSE (Central Board of Secondary Education) and ICSE (Indian Certificate of Secondary Education). Although the subjects taught in both boards are the same, choosing the right board is essential because this can play a significant role in the student’s future. Indians lay a lot of importance on education and knowledge, and the age old debate on choosing the right board ofeducation is bound to crop up in every household sooner or later.

    Each board of education has its own set of pros and cons, and parents will have to make a calculated move taking their children’s strengths into consideration, as their future can be shaped only based on their interests.


    CBSE proves to be better

     

    • CBSE is repeatitive. It  repeats the same course of study in each class or the next. This helps the student to thoroughly memorise the chapter that they study. For example, if there is a chapter named "Industrial Revolution" to be studied in class 4, the same will be taught again in class 6 or 7 with slight extra, so that children could have a revision of it.

    •  The course material of CBSE is very systematic. It goes from very basic level to higher level. This makes it very easy to study. Thats make CBSE a very easy to study, very necessary far children weaker in studies. The CBSE syllabus is a cumulative syllabus. 

    • Study courses of CBSE is not so detailed as in ICSE. That do not waste the time of student even if he / she opts out of a course. For example, if a student wants to aim for commerce in 11th grade, then he has to only read the very basic science, maths or history as required in life whereas in ICSE he has to study a lot of science and maths that will not be required in any future study.

    • After the introduction of CCE(Continuous and Comprehensive Evaluation), CBSE has become a gift to students. Now they will be rated in all fields including art, sports, behaviour and not just in the field of Study.

    • CBSE study course is very up-to-date. It is always updated by the board. Latest facts, recent studies and discoveries are always added in the next year of print. In ICSE, it is not so. They follow a older course of study.

    • It satisfies parents, teachers as well as students one way or the other.

    • CBSE course is very useful for competitive exams. Major competitive exams like IIT-JEE, NDA, etc. are designed on the basis of CBSE pattern

    There definitely must be something I have missed that CBSE better course to study in.


    Alas! CBSE has its own limits

     Source of this section
    •  The students who study in CBSE boards are less smarter as compared to kids studying in ICSE boards.

    • Not much focus is laid on inculcating practical knowledge in students. The CBSE syllabus also does not lay as much emphasis on core English knowledge as its counterpart does, choosing to lay more importance on the disciplines of mathematics and science.

    • The subjects in a CBSE syllabus are approached in a theoretical manner, and true emphasis is not laid on real-life concepts behind the science. Although the syllabus is application oriented, it does not provide room for effective understanding.

    ICSE Pros : 

    •  Children studying in ICSE board are able to compete better in field of management and international studies, i.e, ICSE prepares children for International Competiton.

    • Students studying in ICSE school get international status.

    • ICSE course is deeper and lengthier that help student to have a better knowledge on a particular subject.


    What do I prefer ??

     

    I have studied both the courses and truely speaking I had really liked CBSE because it was so easy and I got so much time to do something else apart from studies. I feel CBSE is better than ICSE.
    It all depends on you what you choose. Which course do you prefer?? Mention in Comments

    Some Beautiful Quotes / Thoughts


    Some Beautiful Quotes

    1. "Life begins when we leave away the fear of death."

    2. "A Life spent in making mistakes is not only more honourable but more useful than a life spent doing nothing."

    3. "The only good is knowledge and the only evil is ignorance."

    4. "Defeat may be the stepping stone or a stumbling block depending on whether your attitude is positive or negative."

    5. "A successful man is he who can lay a firm foundation with the bricks that others throw at him. The more successful man is he who can maintain the foundation and still throw bricks at others."

    6. "Life is one long struggle in dark."

    7. "It is better to have fought and lost, than to never to have fought at all."

    8. "It is not the ship so much as the skilled sailing that assures the prosperous voyage."

    9. "God helps those who helps themselves."

    10. "Only the life lived for others is a life worthwhile."

    11. "Self-confidence is the most important ingredient of success."

    12. "There is no medicine like hope, no incentive so great, no tonic so powerful as expectations of something better tomorrow."

    13. "Democracy is for the people, of the people and by the people and NOT far the people, off the people and buy the people."

    14. "No man loses his freedom except through his own weakness."

    15. "In moderating not satisfying lies peace."

    16. "Time is excellent healer and a powerful destroyer."

    17. "Let no one deviate from the path of truth and justice for friendship or enemity."

    18. "The secret of winning is sharing."

    19. "Many a people who have failed 10000 times have not failed but found out 10000 different ways that does not work."

    20. "Your biggest competitor is you yourself. Defeat yourself and you will see that you have defeated the world."

    21. "Have infinite patience and success is yours."

    22. "The hugest records as made in Olympics are to one day or the other break it."

    23. "We cannot command nature except by obeying her."

    24. "In nature there's no reward no punishments, there are consequences."

    25.  "We have not inherited this earth from our forefathers, we borrowed it from our children."

    26. "A good politician is quite as unthinkable as an honest burglar."

    27. "He who praises you for what you lack, wishes to take away what you have."

    28. "A man can stand anything except a succession of ordinary days."

    29. "The job of a professional manager is not to like people - it is to put their strength to work."

    30. "Great things are not done by impulse, but by a series of small things brought together."

    31. "Prevention is always better than cure."

    32. "The wind blows strongest against those who stand tallest."

    33. "Dreamers only dream but creators bring their dreams into reality."

    34. "Everything that has a start definitely has a end. Nothing is immortal except this cycle itself."

    35. "Things that you are not interested in are considered non sense by you in life."

    36. "Struggle in life is not to impair you but to make you realize who you are."

    37. "Discipline and rules are made to break it but as we break it we also make it more deeper."

    38. "There could be no other bigger sin as to follow a beaten path."

    39. "When charm wears off, there's nothing but character left."

    40. "If you want something badly, just let it go, if it comes back to you it was always yours, if it doesn't it was never yours."
     

    Many thoughts are contradictory !

     

    You would observe that most of the thoughts are contradictory to each other or  some previous thought you have already read. This is because this thoughts are a collection of thoughts from many people from all around the world. This makes them contradictory.

    It all depends on you, how you interpret a thought, how you believe in them, how you implement them based on your own life experiences.

     

    Which thought do I like the most

     

    Most of you would be reading these thoughts because you have suffered some day or other. A few would be reading to refresh their morning.

    For me the most powerful thought is 

    " There is nothing either good or bad but thinking makes it so. "          --William Shakespeare

    This thought explains that this world is as ideal as it could be. This is just our Human mind that defines us, that tell us what is good or what is bad from its experiences. But reality is that there is nothing either good or bad but thinking makes its so. You could yourself be honest and think if the things you do in your daily life are really good or bad that you think or told by someone.

     
    I want to know which thought do you like the most?? Mention it in the comments.