Wednesday, April 20, 2022

Half Pyramid Pattern in C++

 A simple program to generate a half pyramid pattern using asterisk symbol in C++ programming language.

 A simple program to compute the gasoline purchase 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


Thank you very much for your support





Program Listing

#include <iostream>

using namespace std;

int main()
{
  int i=0,j=0,rows=10;

  cout <<"\n\n";
  cout <<"\tHalf Pyramid Pattern in C++";
  cout <<"\n\n";
  for(i=1;i<=rows;++i)
    {
      cout <<"\t";
  for(j=1;j<=i;++j)
        {
          cout<<"* ";
        }
      cout<<"\n";
    }
  cout <<"\n\n";
  cout <<"\tEnd of Program";
  cout <<"\n\n";
}

Gasoline Purchase Solver in C++

Gasoline Purchase Solver in C++

 A simple program to compute the gasoline purchase 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


Thank you very much for your support






Simple Interest Using Scala

Simple Interest Using Scala

 Machine Problem

Write a  simple interest program that will ask the principal amount, rate of the loan, and a number of years.  The program will compute the interest rate of the loan of the customer 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


Thank you very much for your support




Program Listing

/* Simple_Interest.scala

   Prof. Jake Rodriguez Pomperada, MAED-IT, MIT

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

   jakerpomperada@gmail.com

   November 12, 2021  2:22 PM Friday

   Bacolod City, Negros Occidental

 */



import java.util.Scanner;


object Simple_Interest {


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


    var input = new Scanner(System.in);


    print("\n\n");

    print("\tSimple Interest Using Scala");

    print("\n\n");

    print("\tEnter the Principal Amount  : ");

    var principal = input.nextDouble();


    print("\tEnter Rate                  : ");

    var rate = input.nextDouble();


    print("\tEnter Time (No. of Years)  : ");

    var time = input.nextDouble();


    var interest = (principal * time * rate) / 100;


    print("\n");

    print("\tThe Principal Amount     : PHP  " + f"$principal%5.2f" );

    print("\n");

    print("\tThe Interest Rate        :      " + f"$rate%5.0f" + "%");

    print("\n");

    print("\tThe Time Duration        :      " + f"$time%5.0f");

    print("\n");

    print("\tThe Simple Interest      : PHP  " + f"$interest%5.2f" );

    print("\n\n");

    print("\tEND OF PROGRAM");

    print("\n\n");

  }

}


Triangle Pattern in C++

Triangle Pattern in C++

 A simple program that I wrote using C++ to display triangle pattern,

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

#include <iostream>


using namespace std;


 int rows=10, i=0, j=0, space=0;


int main() {

cout <<"\n\n";

cout << "\tTriangle Pattern in C++";

cout <<"\n\n\n";

   


     for(i = 1; i <= rows; i++)

   {

      cout <<"\t";

      for(space = i; space < rows; space++)

      {

         cout << " ";

      }

      for(j = 1; j <= (2 * i - 1); j++)

      {

         cout << "*";

      }


      cout << "\n";

   }

}

Running Sum of Numbers Using Pointers in C++

Running Sum of Numbers Using Pointers in C++

 A simple running sum of 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


Thank you very much for your support




Program Listing

#include  <iostream>


using namespace std;


int main()

{

int array[30];

int sum=0,n=0,*point;

cout << "\n\n";

cout << "\t\tRunning Sum of Numbers Using Pointers in C++";

cout << "\n\n";

cout<<"\tEnter how many elements? : ";

cin>>n;

for(int i=1;i<=n;i++) {

 cout << "\n\n";

 cout << "\tEnter Value No : "

     << i << ":";

cin>>array[i];

point = &array[i];

sum+=array[i];

cout << "\n";

cout<<"\tThe Running Sum is "

    << sum << ".";


}

cout << "\n\n";

system("pause");


}



Tuesday, April 19, 2022

Simple Login in C++

Simple Login in C++

 A simple login is written in C++ programming language. I hope you will find our work useful. 

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

#include <iostream>

#include <string>


const std::string CorrectPassword("1234");

const int MaxLoginAttempts = 3;


int main()

{

  bool loggedIn = false;

  int loginAttempts = 0;

  std::string password;

  

  std::cout << "\n\n";

  std::cout << "\tSimple Login in C++";

  std::cout << "\n\n";

  while(!loggedIn && loginAttempts < MaxLoginAttempts)

  {

    std::cout << "\n";

std::cout << "\tEnter password : ";

    std::getline(std::cin, password);

    ++loginAttempts;

    std::cout << "\tAttempt Number : " << loginAttempts;

    if(password == CorrectPassword)

      loggedIn = true;

  }

  if(loggedIn) {

    std::cout << "\n\n";

    std::cout << "\tLogin successful!\n";

}

  else {

    std::cout << "\n\n";

    std::cout << "\tLogin failed!\n";

   }

}

Monday, April 18, 2022

Product Price Solver in C++

Product Price Solver in C++

A simple program that I wrote using C++ to compute the product price in a grocery store using two-dimensional arrays, looping statements, and basic math operations.

 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

#include <iostream>

#include <iomanip>


// Jake Rodriguez Pomperada, MAED-IT, MIT

// jakerpomperada@gmail.com


using namespace std;


main() {

    string product[4] = {"Nido","Bear Brand",

                       "Anchor Milk", "Milo"};

    double price[4][1];

    double solve=0;

    double add=0,change=0, pay=0;

    cout <<"\n\n";

    cout << "Product Price Solver in C++";

     cout << "\n\n";

     for (int a=0; a<4; a++) {

       for (int b=0; b<1; b++)

       {


        cout << "Enter " <<product[a]

         << " price : ";

        cin >> price[a][b];

        add+=price[a][b];

       }

     solve= add;

     }

    cout << "\n\n";

    cout << "Total Amount Cost :=>" << fixed << setprecision(2) << solve;

    cout << "\n\n";

    cout << "Amount Payed : ";

    cin >> pay;

    change = (pay-solve);


    cout << "\n\n";

    cout << "Your change is Php : " << fixed << setprecision(2) <<change

        << ".";

    cout << "\n\n";

    system("pause");

 }

Convert Days to Years, Weeks and Days in C

Convert Days to Years, Weeks and Days in C

 Machine Problem 

Write a program to ask the user to give an input number of days and convert it to years, weeks, and days 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


/* days.c
Convert days to years weeks and days
Author   : Jake Rodriguez Pomperada, MAED-IT, MIT
Websites  : jakerpomperada.com and jakerpomperada.blogspot.com
Email    : jakerpomperada@gmail.com
Tool     : Dev C++ Version 5.11
Date     : April 18, 2022  5:51 AM  Monday
*/

#include <stdio.h>

int main()
{
   int days=0, years=0, weeks=0;

   system("COLOR F0");
   printf("\n\n");
   printf("\tConvert Days to Years, Weeks and Days in C");
   printf("\n\n");
   printf("\tHow Many Days : ");
   scanf("%d", &days);

    /* Conversion in this portion */
    years = (days / 365);   /* Ignoring leap year */
    weeks = (days % 365) / 7;
    days  = days - ((years * 365) + (weeks * 7));

    printf("\n\n");
    printf("\tDisplay Results");
    printf("\n\n");
    printf("\tNumber of Years : %d\n", years);
    printf("\tNumber of Weeks : %d\n", weeks);
    printf("\tNumber of Days  : %d", days);
    printf("\n\n\n");
    printf("\tEND OF PROGRAM");
    printf("\n\n");
    }



Sunday, April 17, 2022

First and Last Number in Python

First and Last Number in Python

 A simple program to ask the user to give any number and then the program will find the first and last digit using Python 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


Thank you very much for your support





Program Listing


# first_last.py
# Jake Rodriguez Pomperada, MAED-IT, MIT
# www.jakerpomperada.blogspot.com and www.jakerpomperada.com
# jakerpomperada@gmail.com
# Bacolod City, Negros Occidental Philippines


import math

print()
print("\tFirst and Last Number in Python\n")
num_val = int(input("\tGive any number: "))

last = num_val % 10

while num_val >= 10:
num_val = num_val / 10

print()
print("\tThe First Digit :",math.trunc(num_val));
print("\tThe Last Digit : ",last);
print()
print("\tEnd of Program")
print()








Saturday, April 16, 2022

Simple Login in C#

Simple Login in C#

 A simple login program that is written 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

Thank you very much for your support





Program Listing

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;


namespace SimpleLogin

{

  class Program

  {

    static void Main(string[] args)

    {

      const int MaxLoginAttempts = 3;

      int loginAttempts = 0;

      bool loggedIn = false;

      const string password = "1234";


        Console.WriteLine("\n");

            Console.Write("\tSimple Login in C#\n");

       

   while (!loggedIn && loginAttempts < MaxLoginAttempts)

      {

        Console.Write("\n\n");

        Console.Write("\tEnter password: ");

        string input = Console.ReadLine();

        loginAttempts++;

        if(input == password)

          loggedIn = true;

      }

       Console.WriteLine("\n");

            if (loggedIn)

        Console.WriteLine("\tLogin succesfull.");

      else

        Console.WriteLine("\tLogin failed. You seem to be a hacker.");

      Console.WriteLine("\n");

      Console.Write("\tEnd of Program");

      Console.WriteLine("\n");

      Console.ReadKey();

    }

  }

}


Basic Math Operations in JavaScript