Machine Problem

Write a program that will ask the user to give two numbers and then the program will compute the sum, difference, product, and quotient of the two given numbers by the user and display the results on the screen using AngularJS.

 I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

Program Listing
<!-- index.htm
  Author   : Prof. Jake Rodriguez Pomperada, MAED-IT, MIT
  Date     : July 24, 2021  Saturday 10:30 PM
  Place    : Bacolod City, Negros Occidental
  Websites : www.jakerpomperada.com and www.jakerpomperada.blogspot.com
  Email    : jakerpomperada@gmail.com
 -->
<html>
  <head>
  	  <title>Basic Math Program in AngularJS</title>
  	 <script type="text/javascript" src="angular.min.js"></script>
     
 </head>
 <style>
body {
	font-family: arial;
	font-size: 25px;
	font-weight: bold;
}
</style>
 <body ng-app="">
 	 <h3>Basic Math Program in AngularJS</h3>
 <div>
 	<table border="0">
 		 <tr>
 		 	<td>
 		 	Enter First Value </td>
 	     <td>
        &nbsp;&nbsp;&nbsp;&nbsp;
 	       <input type="number"  size="10" ng-model="val_1" required/>
 	     </td>
     </tr>
       <tr>
        <td>
      Enter Second Value </td>
       <td>
        &nbsp;&nbsp;&nbsp;&nbsp;
         <input type="number"  size="10" ng-model="val_2" required/>
       </td>
     </tr>
       <tr>
        <td>&nbsp;&nbsp;&nbsp;</td>
      </tr>
 	     </table>
       The sum of {{val_1}} and {{val_2}} is {{val_1+val_2}}.<br>
       The difference between {{val_1}} and {{val_2}} is {{val_1-val_2}}.<br>
       The product between {{val_1}} and {{val_2}} is {{val_1*val_2}}.<br>
       The quotient between {{val_1}} and {{val_2}} is {{(val_1/val_2) | number:0}}.<br>
       <br>
    </div><br>
       </div>
    </body>
</html>

Leave a Reply

Your email address will not be published.