Friday, September 16, 2022

Fahrenheit To Celsius Using Classes in C++

 A program to ask the user to give temperature in Fahrenheit and convert it into celsius equivalent using classes in 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

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


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>

#include <iomanip>


using namespace std;


class Temp_Coversion

{

float f,c;

   public:

      float  input_data();

      void display(void);

};


 float  Temp_Coversion:: input_data()

{

cout <<"\n\n";

cout <<"\tFahrenheit To Celsius Using Classes in C++\n\n";

cout<<"\tGive temperature in fahrenheit : ";

cin>>f;

c = (f-32)/1.8;

return(c);

}


void Temp_Coversion :: display(void)

{

float v;

 v=input_data();

 cout <<"\n\n";

 cout << fixed << setprecision(2);

 cout<<"\tThe temperature in celsius is "<<v;

 cout <<"\n\n";

 cout <<"\tEnd of Program";

 cout <<"\n";

}


int main()

{

Temp_Coversion object;

object.display();

}


Thursday, September 15, 2022

The Largest Number in an Array in C++

The Largest Number in an Array in C++

 A program asks the user to give seven numbers and then the program will check and determine which of the seven numbers given is the largest number and its location in a one-dimensional array using a 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

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


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

/* largest.cpp
   Author : Jake Rodriguez Pomperada, MAED-IT, MIT
   www.jakerpomperada.com  and www.jakerpomperada.blogspot.com
   jakerpomperada@gmail.com
   Bacolod City, Negros Occidental
   September 15, 2022  Thursday  6:54 PM
*/


#include <iostream>

using namespace std;

int main() {

  int i=0, n=0;
  int arr[7];
  int b = sizeof(arr)/sizeof(arr[0]);
  int y=0;  int index=0;
 
  cout <<"\n\n";
  cout << "\tThe Largest Number in an Array in C++";
  cout <<"\n\n";
  
  for(i = 0; i < 7; ++i) {
    cout << "\tEnter Number " << i + 1 << " : ";
    cin >> arr[i];
  }
 cout <<"\n\n";
 cout << "\tList of Array Elements\n\n";
 
   for(i = 0;i <7; ++i) {

     cout << "\tElement Value [" << i+1 << "] = " 
<<arr[i] <<"\n";
  }
  for(i = 1;i < 7; ++i) {


    if(arr[0] < arr[i])
      arr[0] = arr[i];
  }

  cout << endl << "\tLargest element = " << arr[0];
  cout << "\n\n";
  for(y=1; y<7; y++)
    {
        if(arr[y]==arr[0])
        {
            index = y+1;
            break;
        }
    }
    cout <<"\n";
     cout<<"\n\tThe Largest Number " <<arr[0] <<
" at Location Number "<<index <<".";
  return 0;
}

Calculate Area of Circle Using ng-app in AngularJS

Calculate Area of Circle Using ng-app in AngularJS

 Machine Problem 

Write a program that uses ng-app directive that will calculate the area of the circle.

Using the following formula : area = 3.14 * radius * radiu

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

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


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 26, 2021 Monday 10:43 AM

  Place    : Bacolod City, Negros Occidental

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

  Email    : jakerpomperada@gmail.com

 -->

<html>

<head> 

<title>Calculate Area of Circle Using ng-app in AngularJS</title>

</head>

<style>

body {

   font-family: "arial";

   font-style: bold;

   font-size: 18px;

  }

 </style>

<script type="text/javascript" src="angular.min.js"></script>

<body><br>

<h3>Calculate Area of Circle Using ng-app in AngularJS</h3>

<body>

<div ng-app="myApp" ng-controller="Area_Circle_Controller">

The given radius {{radius | number : 2}}. <br><br>

The area of the circle is {{area | number : 2}}

</div>

<script>

var app = angular.module("myApp", []);

app.controller("Area_Circle_Controller", function($scope) {


    $scope.radius = 5.0;

    $scope.area = (3.14 * $scope.radius * $scope.radius);

});

</script>

</body>

</html>

</body>

</html>

Positive and Negative Number Using ng-model in AngularJS

Positive and Negative Number Using ng-model in AngularJS

 Machine Problem

Write a program that uses ng-model directive that will accept a number and then the program will check if the given number is a positive or negative number, display the results 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

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


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  Tuesday   1:32 PM

  Place    : Bacolod City, Negros Occidental

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

  Email    : jakerpomperada@gmail.com

 -->

<html>

<head>

  <title>Positive and Negative Number Using ng-model 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>

<script>

 var app =  angular.module('app', []);


  app.filter('Positive_Negative', function() {

    return function(number) {

    if (typeof number === "undefined") {

      number = 1;

    } else   if (number >=0){

      message = "The given number " + number + " is Positive Number";

     } else

     {

      message = "The given number " + number + " is Negative Number";

     }

     return(message);

    };

});

    

  </script>



<div ng-app="app" ng-init="Val_Num=0">

  <form>

  <table border="0" cellspacing=10>

  <tr>Positive and Negative Number Using ng-model in AngularJS</tr>

  <tr>

  <td>Enter a Number</td>

  <td><input type="number"  ng-model="Val_Num"

    ng-init="Val_Num=0" required></td>

  </tr>

</table>

  </form>

  <p>

   {{Val_Num | Positive_Negative}}.</p><br>

</div>

</body>

</html>



Wednesday, September 14, 2022

Two Dimensional Arrays in Java

Two Dimensional Arrays in Java

 A simple program to demonstrate two dimensional arrays using Java 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

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


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


import java.util.*;

public class Two_Dimensional {

public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
System.out.println();
         System.out.print("Two Dimensional Arrays in Java\n");
         System.out.println();
System.out.print("Give number of rows: ");
int rows = sc.nextInt();
System.out.print("Give  number of columns: ");
int cols = sc.nextInt();
 
int[][] a = new int[rows][cols];
System.out.println();
System.out.println("Enter " + rows + " X " + cols +" = " +
(rows*cols) + " integers:");
for(int i=0; i<rows; i++)
{
for(int j=0; j<cols; j++)
{
a[i][j] = sc.nextInt();
}
}
System.out.println("Here are those " + (rows * cols) +
" integers in a " + rows + " X " + cols
+ " 2D-array");
System.out.println(Arrays.deepToString(a));
sc.close();
}
}


Finding Motivation Sa Computer Programming

Tuesday, September 13, 2022

Product and Difference of Two Numbers in Go

Product and Difference of Two Numbers in Go

 Machine Problem

Write a program that will ask the user to give two numbers. The program will solve the product and difference of the two numbers given by the user and then 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

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


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

package main

import "fmt"

func main() {

var val1 int32
var val2 int32
var product int32
var difference int32

fmt.Print("\n")
fmt.Print("\tProduct and Difference of Two Numbers in Go")
fmt.Print("\n\n")
fmt.Print("\tEnter first value   : ")
fmt.Scanf("%d\n",&val1)
fmt.Print("\tEnter second value  : ")
fmt.Scanf("%d\n",&val2)

product =(val1 * val2);
difference = (val1 - val2)

fmt.Print("\n")
fmt.Printf("\t===== DISPLAY RESULT =====");
fmt.Print("\n\n")
fmt.Println("\tThe product of",val1, "and",val2 ,"is",product,".")
fmt.Print("\n")
fmt.Println("\tThe difference between",val1, "and",val2 ,"is",difference,".")
fmt.Print("\n")
fmt.Print("\tEnd of Program")
fmt.Print("\n")
}


How To Take a Screenshot in Your Computer

Divide Two Numbers Using Pointers in C

Divide Two Numbers Using Pointers in C

 A simple program to ask the user to give two numbers and then the program will divide the two given numbers using pointers in 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

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


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 <stdio.h>

 

int main()

{

   int first=0, second=0,divide=0; 

   int *a,*b;

   

   printf("\n\n");

   printf("\tDivide Two Numbers Using Pointers in C");

   printf("\n\n");

   printf("\tEnter First Value  : ");

   scanf("%d",&first);

   printf("\tEnter Second Value : ");

   scanf("%d",&second);

  

   a = &first;

   b = &second;

   divide = *a / *b;

  

  printf("\n\n");

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

  printf("\n\n");

  printf("\tThe Quotient Between %d and %d is %d."

  ,first,second,divide);

  printf("\n\n");

  printf("\tEND OF PROGRAM");

  printf("\n\n");

 }

Monday, September 12, 2022

ng-model Example in AngularJS

ng-model Example in AngularJS

 A simple program to show how to declare and use ng-model in AngularJS a JavaScript framework.

 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

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


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

<!-- index.htm

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

  Date     : October 12, 2021   4:09 PM  Tuesday

  Place    : Bacolod City, Negros Occidental

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

  Email    : jakerpomperada@gmail.com

 -->

<html>

<head>

  <title>ng-model Example 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>

<div ng-app="">

  <h1>ng-model Example in AngularJS </h1>

 Give a String  &nbsp;<input ng-model="string" size="50">

<h2> ng-bind="string"></h2>

</div>

 

</body>

</html>