Sunday, September 18, 2022

Prelim, Midterm, and Endterm Average Grade Solver in C++

 A simple program to solve the average grade of the student based in prelim, midterm and endterm grade 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

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


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 prelim=0, midterm=0, endterm=0;
    int average_grade=0;
    
    cout << "\n\n";
    cout <<"\tPrelim, Midterm, and Endterm Average Grade Solver in C++";
    cout <<"\n\n";
    cout <<"\tEnter Prelim Grade : ";
    cin >> prelim;
    cout <<"\tEnter Midterm Grade : ";
    cin >> midterm;
    cout <<"\tEnter Endterm Grade : ";
    cin >> endterm;
    
    average_grade = (prelim+midterm+endterm)/3;
    
    cout <<"\n\n";
    cout <<"\tThe Average Grade of the Student is " << average_grade <<".";
    cout <<"\n\n";
    cout <<"\tEnd of Program";
    cout <<"\n\n";
}

Friday, September 16, 2022

Simple Inheritance in C++

Single Inheritance in C++

 A simple program that I wrote using C++ to demonstrate the concept of single inheritance.

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>

using namespace std;

 class Salary {
   public:
   float salary = 12000;
 };

class Clerk: public Salary {
   public:
   float bonus = 2000;
   };


int main() {

     Clerk emp1;
     cout <<"\n\n";
     cout <<"\tSingle Inheritance in C++";
     cout <<"\n\n";
     cout<<"\tEmployee's Salary : "<<emp1.salary<<endl;
     cout<<"\tEmployee's Bonus  : "<<emp1.bonus<<endl;
     cout <<"\n\n";
    return 0;
}

Fahrenheit To Celsius Using Classes in C++

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