Machine Problem in AngulaJS
Write a temperature converter program that will accept temperature in Fahrenheit or Celsius from the user and then the program will allow the user to convert temperature in Fahrenheit or Celsius, vice versa.
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 at my email address also. Thank you.
My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com
My mobile number here in the Philippines is 09173084360.
Program Listing
index.htm
<!-- index.htm
Author : Prof. Jake Rodriguez Pomperada, MAED-IT, MIT
Date : July 21, 2021 Wednesday 8:55 AM
Place : Bacolod City, Negros Occidental
Websites : www.jakerpomperada.com and www.jakerpomperada.blogspot.com
Email : jakerpomperada@gmail.com
-->
<html>
<head>
<title>Temperature Converter in AngularJS</title>
</head>
<style>
body {
font-family: arial;
font-size: 25px;
font-weight: bold;
}
</style>
<script type="text/javascript" src="angular.min.js">
</script>
<body >
<div ng-app ng-init="f=32;c=0">
<b>Temperature Converter in AngularJS</b><br>
<div><br>
Fahrenheit to Celsius: <input type="number" ng-model="f"> {{((f-32) * 5 / 9) | number : 2}} °c
</div>
<br>
<div>
Celsius to Fahrenheit: <input type="number" ng-model="c"> {{c * 9 / 5 + 32 | number : 2}} °f
</div>
</div>
</body>
</html>
No comments:
Post a Comment