Friday, November 18, 2022

Difference of Two Numbers Using ng-init in AngularJS

Difference of Two Numbers Using ng-init in AngularJS

 Machine Problem

Write a program that uses ng-init directive that will compute  the difference in the two given numbers, and display the result on the screen.

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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.





Program Listing


<!-- index.htm

  Author   : Prof. Jake Rodriguez Pomperada, MAED-IT, MIT

  Date     : July 28, 2021  Wednesday 2:53 PM

  Place    : Bacolod City, Negros Occidental

  Websites : www.jakerpomperada.com and www.jakerpomperada.blogspot.com

  Email    : jakerpomperada@gmail.com

 -->

<html>

<head>

  <title>Difference of Two Numbers Using ng-init 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><br>

<div ng-app ng-init="val_1=25;val_2=10;">

  <form>

  <table border="0" cellspacing=10>

  <tr>Difference of Two Numbers Using ng-init in AngularJS</tr>

  </tr>

  </table>

  </form>

    <p> The difference between {{val_1}}, and

      {{val_2}} is {{val_1 - val_2}}.</p>

  </div>

</body>

</html>


Thursday, November 17, 2022

Logical Operators in TypeScript

Logical Operators in TypeScript

 A program to demonstrate logical operators in TypeScript programming language.

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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.






Program Listing

var x: boolean = true, y: boolean = false; var result: boolean; console.log("\n"); console.log("\tLogical Operators in TypeScript\n"); // AND Operator result = x && y; console.log('\tAND Operator: ', result); // OR Operator result = x || y; console.log('\tOR Operator: ', result); // NOT Operator result = !x; console.log('\tNOT Operator: ', result); console.log("\n"); console.log("\tEnd of Program\n");

Prints The Number Given by the User in C++

Prints The number Given by the user in C++

 A simple program to ask the user to give a number and the prints the given number on the screen using C++ programming language.

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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.






Program Listing

#include <iostream> using namespace std; int main() { int number=0; cout <<"\n\n"; cout << "\tPrints The number Given by the user in C++\n\n"; cout << "\tGive a Number : "; cin >> number; cout <<"\n\n"; cout << "\tThe Number Given : " << number; cout <<"\n\n"; cout <<"\tEnd of Program"; cout <<"\n\n"; }

Wednesday, November 16, 2022

Assignment Operators in TypeScript

Assignment Operators in TypeScript

 A simple program to show how to declare and use assignment operators in TypeScript programming language.

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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.





Program Listing

let x: number = 20;

x += 10;

console.log("\n");
console.log("\tAssignment Operators in TypeScript\n");

console.log("\tAdd Assignment: ", x);

x %= 7;

console.log("\tModulo Assignment: ", x);

x *= 10;

console.log("\tMultiply Assignment: ", x);

x /= 10;

console.log("\tDivision Assignment: ", x);

x -= 10;

console.log("\tSubtract Assignment: ", x);

console.log();
console.log("\tEnd of Program\n");

Finding the Smallest Number Using Function in C++

Finding the Smallest Number Using Function in C++

 A program to ask the user to give two numbers and then the program will check which of the two numbers is the smallest numerical value using C++ programming language.

 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.






Program Listing

#include <iostream> using namespace std; int smallest_of_two(int val1, int val2) { return (val1 < val2) ? val1 : val2; } int main() { int val1, val2; cout <<"\n\n"; cout << "\tFinding the Smallest Number Using Function in C++"; cout <<"\n\n"; cout << "\tGive Two Numbers : "; cin >> val1 >> val2; int smallest = smallest_of_two(val1, val2); cout <<"\n\n"; cout << "\tThe Smallest Number Between two Numbers is " << smallest <<"."; cout <<"\n\n"; cout << "\tEnd of Program"; cout <<"\n\n"; }

Tuesday, November 15, 2022

Relational Operators in TypeScript

Relational Operators in TypeScript

  A program to demonstrate how to perform relational operators using TypeScript programming language.

 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.





Program Listing


let x = 500, y = 400;

console.log("\n");
console.log("\tRelational Operators in TypeScript\n");

if (x == y) {

    console.log('\tBoth are equal');

}

if (x != y) {

    console.log('\tBoth are not equal');

}

if (x > y) {

    console.log('\tx is greater than y');

}

if (x < y) {

    console.log('\tx is less than y');

}

if (x >= y) {

    console.log('\tx is greater than or equal to y');

}

if (x <= y) {

    console.log('\tx is less than or equal to y');

}


console.log("\n");
console.log("\tEnd of Program\n");

Arithmetic Operators in TypeScript

Monday, November 14, 2022

Arithmetic Operators in TypeScript

 A program to demonstrate how to perform arithmetic operators using TypeScript programming language.

 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.




Program Listing

let x: number = 200;   let y: number = 20;

console.log("\n");
console.log("\tArithmetic Operators in TypeScript\n");

console.log('\tAddition       : ', x + y);

console.log('\tSubstraction   : ', x - y);

console.log('\tMultiplcation  : ', x * y);

console.log('\tDivision       : ', x / y);

console.log('\tModulo         : ', x % y,'\n');

console.log("\tEnd of Program\n");

Addition of Three Numbers in TypeScript

Addition of Three Numbers in TypeScript

 A simple program to add the sum of three numbers using TypeScript programming language.

 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.





Program Listing


/* adddition.ts

   Jake Rodriguez Pomperada, MAED-IT, MIT

   www.jakerpomperada.com and www.jakerpomperada.blogspot.com

   jakerpomperada@gmail.com

   November 13, 2022   12:09 PM   Sunday

   Bacolod City, Negros Occidental

*/


var a=20; var b=5; var c=10;


var sum = (a+b+c);


console.log("\n");

console.log("\tAddition of Three Numbers in TypeScript\n");

console.log(`\tThe sum of ${a}, ${b}, and ${c} is ${sum} \n`);

console.log("\tEnd of Program\n");


Sunday, November 13, 2022

Kilograms To Pounds Using Scala

Kilograms To Pounds Using Scala

 Machine Problem

Write a program to ask the user to give weight in kilograms, and then it will convert it into pounds weight equivalent.

 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 

https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


Want to support my channel?

GCash Account

Jake Pomperada


09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.





Program Listing


/* Kilograms_Pounds.scala

   Prof. Jake Rodriguez Pomperada, MAED-IT, MIT

   www.jakerpomperada.blogspot.com and www.jakerpomperada.com

   jakerpomperada@gmail.com

   November 16, 2021  7:35 PM Tuesday

   Bacolod City, Negros Occidental

 */



import java.util.Scanner;


object Kilograms_Pounds {


  def main(args: Array[String]) : Unit = {


    var input = new Scanner(System.in);


    print("\n\n");

    print("\tKilograms To Pounds Using Scala");

    print("\n\n");

    print("\tEnter Weight in Kilograms : ");

    var kilograms = input.nextDouble();


    var  pounds_value =  (kilograms * 2.20462262185);


    print("\n");

    print("\t===== DISPLAY RESULTS =====");

    print("\n\n");

    print("\t" + kilograms + " kilogram(s) is" + f"$pounds_value%5.2f" + " pound(s).");

    print("\n\n");

    print("\tEND OF PROGRAM");

    print("\n\n");

  }

}