Saturday, April 2, 2022

SIMPLE MULTIPLICATION TABLE USING ARRAYS IN C++

 A simple multiplication table using arrays 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 in 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





Program Listing

#include <cstdlib> #include <iostream> #include <iomanip> using namespace std; int main(int argc, char *argv[]) { int values[10] = {1,2,3,4,5,6,7,8,9,10}; int values2[10] = {10,9,8,7,6,5,4,3,2,1}; cout << "\n\n"; cout << " ===== SIMPLE MULTIPLICATION TABLE USING ARRAYS IN C++ ====="; cout << "\n\n Created By: Mr. Jake R.Pomperada,MAED-IT"; cout << "\n\n"; for (int list=0; list <10 ; list++) { cout << "\n"; cout<< setw(2) << list[values] << " x " << setw(2) << list[values] << " = " << setw(2) << list[values] * list[values]; cout<< setw(10) << list[values] << " + " << setw(2) << list[values2] << " = " << setw(1) << (list[values] + list[values2]); } cout << "\n\n"; system("PAUSE"); return EXIT_SUCCESS; }

Multiply Two Numbers Using Pointers in C

Multiply Two Numbers Using Pointers in C

 A program that will ask the user to give two numbers and then the program will multiply the values of 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 in 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





Program Listing


#include <stdio.h>

int main()
{
 int num1=0,num2=0,multiply=0;
 int *p1,*p2;

 printf("\n\n");
 printf("\tMultiply Two Numbers Using Pointers in C");
 printf("\n\n");
 printf("\tEnter First Number : ");
 scanf("%d",&num1);
 printf("\tEnter Second Number: ");
 scanf("%d",&num2);
 
 p1=&num1;
 p2=&num2;
 
 multiply=*p1 * *p2;
 
 printf("\n\n\tProduct of %d and %d is %d.",*p1,*p2,multiply);
 printf("\n\n");
 printf("\tEnd of Program");
 printf("\n\n");

}

Friday, April 1, 2022

Creating a Text File in C++

Creating a Text File in C++

 A program to demonstrate how to create a text file 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 in 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






Program Listing

#include <iostream>
#include <fstream>

using namespace std;

int main()
{
  ofstream outFile;
  outFile.open("mydata.txt");
  string quit = "n";
  string line;
  cout <<"\n\n";
  cout <<"\tCreating a Text File in C++";
  cout <<"\n\n";
  while (quit != "y") {
    cout << "Enter a line of text: ";
    getline(cin, line);
    outFile << line << endl;
    cout << "Stop entering text (y/n)? ";
    getline(cin, quit);
  }
   cout <<"\n\n";
  cout <<"\tData has been successfully saved in mydata.txt";
  cout <<"\n\n";
  outFile.close();
  return 0;
}

Addition of Three Numbers Using ng-bind in AngularJS

Addition of Three Numbers Using ng-bind in AngularJS

 Machine Problem

Write a program that uses ng-bind directive that will accept three numbers, and then the program will compute the sum of three numbers, and 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 in 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





Program Lisitng

<!-- index.htm
  Author   : Prof. Jake Rodriguez Pomperada, MAED-IT, MIT
  Date     : July 29, 2021 Thursday  5:56 PM
  Place    : Bacolod City, Negros Occidental
  Websites : www.jakerpomperada.com and www.jakerpomperada.blogspot.com
  Email    : jakerpomperada@gmail.com
 -->
<html>
<head>
  <title>Addition of Three Numbers Using ng-bind 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>

<script>
       var app = angular.module("addition", []);
        app.controller('app', ['$scope', function ($app) {
         $app.add= function () {
                $app.sum = 0;
                $app.sum = ($app.val_1 + $app.val_2 + $app.val_3);
                $app.display = $app.sum + ".";
            }
        }]);
    </script> 
</script>  
<div ng-app="addition" ng-controller="app">
  <form>
  <table border="0" cellspacing=10>
  <tr>Addition of Three Numbers Using ng-bind in AngularJS</tr>
  <tr>
  <td>Enter First Value </td>
  <td><input type="number"  ng-model="val_1" ng-change="add()"></td>
  </tr>
   <tr>
  <td>Enter Second Value </td>
  <td><input type="number"  ng-model="val_2" ng-change="add()"></td>
  </tr>
   <tr>
  <td>Enter Third Value </td>
  <td><input type="number"  ng-model="val_3" ng-change="add()"></td>
  </tr>
</table>
  </form>
  <span>The sum of {{val_1}}, {{val_2}}, and {{val_3}} is </span> 
    <span ng-bind="display"></span>
   </p> 
</div>
</body>
</html>

Thursday, March 31, 2022

Average Grade Solver in C

Average Grade Solver in C

 Machine Problem

Write a program that will ask the student to give the prelim, midterm, and final grade, and then the program will compute the average grade of the student 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 in 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

/* grade.c

   Author   : Jake Rodriguez Pomperada,BSCS,MAED-IT

   Date     : November 13, 2018  Tuesday 9:44 PM

   Location : Bacolod City, Negros Occidental

   Tool     : Dev C++ Version 5.11

   Website  : http://www.jakerpomperada.com

   Email    : jakerpomperada@jakerpomperada.com

*/


#include <stdio.h>


int main() 

 {

  float solve_average=0.00;

  float prelim=0.00,midterm=0.00,final=0.00;

  

  system("COLOR F0");

  printf("\n\n");

  printf("\tAverage Grade Solver in C");

  printf("\n\n");

  printf("\tGive Prelim Grade   : ");

  scanf("%f",&prelim);

  printf("\tGive Midterm Grade  : ");

  scanf("%f",&midterm);

  printf("\tGive Final Grade    : ");

  scanf("%f",&final);


  solve_average =(prelim+midterm+final)/3;


  printf("\n\n");

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

  printf("\n\n");

  printf("\tThe student average grade is %.2f.",solve_average);

  printf("\n\n");

  printf("\tEND OF PROGRAM");

  printf("\n\n");

}




Wednesday, March 30, 2022

Accepts Only Numbers in C++

Accepts Only Numbers in C++

 A simple program that will only accept numbers using the 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 in 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 the 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 <limits>

const auto MaxIgnore =  std::numeric_limits<std::streamsize>::max();

int main()
{
    int num = 0 ;
    bool done = false;

     std::cout <<"\n\n";
     std::cout <<"\tAccepts Only Numbers in C++";
     std::cout <<"\n\n";
    while(!done)
    {
        
std::cout <<"\n";
std::cout << "\tEnter an integer: ";
        if(std::cin >> num)
        {
            std::cout <<"\n";
std::cout << "\tWell done. You entered: " << num;
            done = true;
        }
        else
        {
            std::cout <<"\n";
std::cout << "\tInvalid input!\n";
            std::cin.clear();
            std::cin.ignore(MaxIgnore, '\n');
        }
    }
std::cout <<"\n\n";
     std::cout <<"\tEnd of Program";
     std::cout <<"\n\n";
}


My Online Arithmetic Calculator in PHP

My Online Arithmetic Calculator in PHP

 A simple online arithmetic calculator using PHP programming language that can perform addition, subtraction, multiplication, and division.

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 in 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 the 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.php

<?php
    $form = "";
    $solution = "display:none;";
    if(isset($_POST["operand1"], $_POST["operand2"], $_POST["operation"])) {
        switch ($_POST["operation"]) {
            case 'Add':
                $calc = $_POST["operand1"] + $_POST["operand2"];
                $operand1 = "1st Addend is ".$_POST["operand1"];
                $operand2 = "2nd Addend is ".$_POST["operand2"];
                $result   = "The Sum is ".$calc;
                break;
            case 'Subtract':
                $calc = $_POST["operand1"] - $_POST["operand2"];
                $operand1 = "Minuend is ".$_POST["operand1"];
                $operand2 = "Subtrahend is ".$_POST["operand2"];
                $result   = "The Difference is ".$calc;
                break;
            case 'Multiply':
                $calc = $_POST["operand1"] * $_POST["operand2"];
                $operand1 = "Multiplicand is ".$_POST["operand1"];
                $operand2 = "Multiplier is ".$_POST["operand2"];
                $result   = "The Product is ".$calc;
                break;
            case 'Divide':
                $calc = $_POST["operand1"] / $_POST["operand2"];
                $operand1 = "Dividend is ".$_POST["operand1"];
                $operand2 = "Divisor is ".$_POST["operand2"];
                $result   = "The Qoutient is ".$calc;
                break;
        }
        $form = "display:none;";
        $solution = "";
    }
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>My Online Arithmetic Calculator in PHP</title>
    <style>
        *, html {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        body {
            display: flex;
            justify-content: center;
        }
        h1 {
            font-size: 40px;
            border-top: 1px solid #000;
            border-bottom: 1px solid #000;
            padding: 5px;
            margin-bottom: 20px;
            text-align: center;
        }
        label {
            font-size: 20px;
        }
        .container {
            margin-top: 15vh;
            padding: 10px;
        }
        form {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        .wrapper {
            display: block;
            margin: 0 auto 10px;
            width: 300px;
        }
        input {
            padding: 5px;
            font-size: 14px;
        }
        table {
            margin-left: 30px;
        }
        .operations table td label,
        .operations table td input {
            cursor: pointer;
        }
        button {
            padding: 8px;
            width: 90px;
        }
        .border {
            padding: 50px;
            border: 1px solid #000;
        }
        .border h2 {
            font-size: 25px;
            margin-bottom: 5px;
        }
        .border p {
            margin-bottom: 5px;
        }
    </style>
</head>
<body>
    <main class="container">
        <div style="<?= $form; ?>">
            <h1>My Online Arithmetic Calculator in PHP</h1>
<h3 align='center'> Jake Rodriguez Pomperada, MAED-IT,MIT </h3>
             <br><br>
            <form action="" method="post">
                <div class="wrapper">
                    <label for="">Operand #1: </label>
                    <input type="number" name="operand1" placeholder="Enter a number" required>
                </div>
                <div class="wrapper">
                    <label for="">Operand #2: </label>
                    <input type="number" name="operand2" placeholder="Enter a number" required>
                </div>
                <div class="wrapper operations">
                    <label>Choose Operation:</label>
                    <table>
                        <tr>
                            <td>
                                <input type="radio" name="operation" id="Add" value="Add" checked>
                                <label for="Add">- Add</label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <input type="radio" name="operation" id="Subtract" value="Subtract">
                                <label for="Subtract">- Subtract</label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <input type="radio" name="operation" id="Multiply" value="Multiply">
                                <label for="Multiply">- Multiply</label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <input type="radio" name="operation" id="Divide" value="Divide">
                                <label for="Divide">- Divide</label>
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="wrapper">
                    <button type="submit">Submit</button>
                </div>
            </form>
        </div>
        <div class="border" style="<?= $solution; ?>">
            <h2>Hello!</h2>
            <p>You sent the following values:</p>
            <p><?= $operand1; ?></p>
            <p><?= $operand2; ?></p>
            <p><?= $result; ?></p>
        </div>
    </main>
</body>
</html>


Tuesday, March 29, 2022

Product and Sum of Two Numbers Using Text File in C++

Product and Sum of Two Numbers Using Text File in C++

 A simple program to show how to declare text files, one-dimensional arrays, creating functions 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 in 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 the 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

// math.cpp

// Jake R. Pomperada, MAED-IT, MIT

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

// jakerpomperada@gmail.com

// Bacolod City, Negros Occidental


#include <iostream>

#include <fstream>


using namespace std;



int add(int x, int y)

{

    return(x+y);

}


int product(int a,int b)

{

    return(a*b);

}


  int main() {

      ofstream myfile("solve.txt");

      int values[2];


      cout << "\n\n";

      cout << "\t\tProduct and Sum of Two Numbers Using Text File in C++";

      cout << "\n\n";

      cout << "Enter two numbers :=> ";

      cin >> values[0] >> values[1];

      cout << "\n";

      cout << "\nThe product of "

           << values[0] << " and "

           << values[1] << " is "

           << product(values[0],values[1])

           << ".";

        cout << "\nThe sum of "

           << values[0] << " and "

           << values[1] << " is "

           << add(values[0],values[1])

           << ".";

        

         cout << "\n\n";

         cout << "Data has been saved in solve.txt";

         cout << "\n\n";

         myfile << "\n======================";

         myfile << "\n   Resulted Values ";

         myfile << "\n======================";

         myfile << "\n";

         myfile << "\nThe product of "

           << values[0] << " and "

           << values[1] << " is "

           << product(values[0],values[1])

           << ".";

        myfile << "\nThe sum of "

           << values[0] << " and "

           << values[1] << " is "

           << add(values[0],values[1])

           << ".";

         myfile << "\n\n";

         myfile.close();

         system("pause");

  }

Days of The Week in C#