Monday, February 7, 2022

Maximum Number in an Array in Java

 A program to check and display the maximum number in an array 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 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

Thank you very much for your support.




Program Listing



public class Maximum_Number

{

    public static void main(String[] args)

    {

        int i,max=0;

        int elements[]={-5,300,20,4000,8,341};

        

        System.out.println();

        System.out.print("\tMaximum Number in an Array in Java");

        System.out.println("\n"); 

   

        for(i=0;i<6;i++)

        {

            if(elements[i]>max)

            {

                max=elements[i];

            }

        }

        System.out.println("\tMaximum Number : "+max);

        System.out.println();

        System.out.print("\tEnd of Program");

        System.out.println("\n\n");

    }

}

Sunday, February 6, 2022

The Smallest and Biggest Number in C#

The Smallest and Biggest Number in C#

 A simple program to check which of the given numbers has the smallest and biggest 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 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

Thank you very much for your support.





Program Listing

using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int i=0; int[] items = new int[100]; Console.Write("\n\n"); Console.Write("\tThe Smallest and Biggest Number in C#"); Console.Write("\n\n"); Console.Write("\tHow Many Items? "); int n = Convert.ToInt16(Console.ReadLine()); Console.Write("\n\n"); for (i = 1; i <= n; i++) { Console.Write("\tEnter the No. " + i + ": "); items[i] = Convert.ToInt16(Console.ReadLine()); } for (i = 1; i <= n; i++) { for (int j = 1; j <= n - 1; j++) { if (items[j] > items[j + 1]) { int temp = items[j]; items[j] = items[j + 1]; items[j + 1] = temp; } } } Console.Write("\n\n"); //Display the Smallest Numerical Value Console.WriteLine("\tThe Smallest Numerical Value : " + items[1]); //Display the Biggest Numerical Value Console.WriteLine("\tThe Largest Numerical Value : " + items[n]); Console.Write("\n\n"); Console.Write("\tThe End of Program"); Console.Write("\n\n"); Console.ReadKey(); } } }


Saturday, February 5, 2022

Display 1 To 20 Using For Loop in C++

Display 1 To 20 Using For Loop in C++

 A simple program to display a series of numbers from 1 to 20 using for loop statement in C++.

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

Thank you very much for your support.





Program Listing

#include <iostream>

#include <iomanip>


int main()

{

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

 std::cout <<"\tDisplay 1 To 20 Using For Loop in C++";

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

  for (int a=1; a<=20; a++) {

    std::cout << std::setw(4) << a;

 }

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

}


How To Write and Run C++ Programs in CodeBlocks

Friday, February 4, 2022

Factors of a Number Using For Loop in Java

Factors of a Number Using For Loop in Java

 Write a Java program to Find Factors of a Number using For loop 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 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

Thank you very much for your support.




Program Listing

factors.java


/* Write a Java program to Find Factors of a Number using For loop */


import java.util.Scanner;


public class factors {


    public static void main(String[] args) {

        Scanner input = new Scanner(System.in);


        int x=0, i=0;

        char ch;

        

        do {

            System.out.println();

            System.out.print("\tFactors of a Number Using For Loop in Java");

            System.out.println("\n"); 

       

        System.out.print("\tGive a Positive Number : ");

        x = input.nextInt();


        System.out.println();

        System.out.print("\tThe factors of the " + x + " are: ");

        for (i = 1; i <= x; ++i) {

            if (x % i == 0) {

                System.out.print(i + " ");

            }

            ++i;

        }

        System.out.print("\n\n");

        System.out.print("\tDo you want to continue (Type y or n) : ");

        ch = input.next().charAt(0);                        

       } while (ch == 'Y'|| ch == 'y');  

        System.out.println("\n");

        System.out.print("\tTHANK YOU FOR USING THIS PROGRAM");

        System.out.println("\n\n");

        input.close();

    }

}


Days Into Years, Weeks, and Days in Java

Days Into Years, Weeks, and Days in Java

A  Java program to ask the users number of days and then it will convert into years, weeks, and days 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 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

Thank you very much for your support.




 Program Listing

days.java


import java.util.Scanner;


public class days {


    public static void main(String[] args)

    {

    Scanner input = new Scanner(System.in);

        

        char ch;

        

        do {

            System.out.println();

            System.out.print("\tDays Into Years, Weeks, and Days in Java ");

            System.out.println("\n");

           System.out.print("\tHow many days? ");


        int days = input.nextInt();

        int years=0;

        int weeks=0;


        


        /* Conversion of days in to years, weeks and days */

        years = (days / 365);

        weeks = (days % 365) / 7;

        days = days - ((years * 365) + (weeks));


        System.out.println("\n");

        System.out.println("\t" + years + " Year, " + weeks + " Weeks, and " + days+ " Days\n");

        System.out.print("\n");

        System.out.print("\tDo you want to continue (Type y or n) : ");

        ch = input.next().charAt(0);                        

       } while (ch == 'Y'|| ch == 'y');  

        System.out.println();

        System.out.print("\t THANK YOU FOR USING THIS PROGRAM");

        System.out.println("\n\n");

        input.close();

    }

}


Thursday, February 3, 2022

String Declaration in PHP

String Declaration in PHP

 A simple program to demonstrate how to declare string using PHP 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

Thank you very much for your support.





Program Listing

string.php



<?php


$name ="Julianna Rae Pomperada";


$school = "University of ";

$school .= "Saint  ";

$school .= "La Salle";


echo $name;

echo "<br><br>";

echo $school;


?>

Least Common Multiple (LCM) Solver in Java

Wednesday, February 2, 2022

Age in Years To Days in C++

Age in Years To Days in C++

 A simple program that will ask the user to give age and then it will compute the age in days 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

Thank you very much for your support.





Program Listing

age.cpp


#include <iostream>

#include <conio.h>


int  main()

{

    

    int years=0, days=0;

  

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

    std::cout <<"\tAge in Years To Days in C++";

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

    std::cout<<"\tEnter Your Age in Years : ";

    std::cin>>years;

    

//calculate days

    days = years * 365;

    

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

    std::cout<<"\tYour age in days will be : "<<days;

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

    std::cout <<"\tEnd of Program";

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

    getch();

}


Print 1 To 10 Using For Loop in C++

Print 1 To 10 Using For Loop in C++

 A simple program to print a series of numbers from 1 to 10 using for loop statement 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

Thank you very much for your support.





Program Listing

#include <iostream>


int main(){


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

 std::cout <<"\tPrint 1 To 10 Using For Loop in C++";

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

 std::cout <<"\t";

  for (int a=1; a<=10; a++) {

    std::cout <<" " << a << " ";

  }

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

 std::cout <<"\tEnd of The Progran";

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

}


Tuesday, February 1, 2022

String Arrays in C++ (Tagalog Version)

String Arrays in C++

 A simple program to demonstrate string arrays 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

Thank you very much for your support.




Program Listing

#include <iostream> #include <string> int main() { std::string persons_name[4] = {"Jake", "Junallie", "Jacob Samuel", "Julianna Rae"}; std::cout <<"\n\n"; std::cout << "\tString Arrays in C++"; std::cout <<"\n\n"; for (int a=0; a<4; a++) { std::cout <<"\t" <<persons_name[a] <<"\n"; } return 0; }

Monday, January 31, 2022

Print 1 To 100 Using While Loop in Java

Print 1 To 100 Using While Loop in Java

 A simple program to print 1 to 100 using a while loop statement 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 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

Thank you very much for your support.





Program Listing


public class Print_1_to_100 {


public static void main(String[] args) {

// TODO Auto-generated method stub

int i=1;


System.out.println();

System.out.println("\tPrint 1 To 100 Using While Loop in Java");

System.out.println();


//loop to print 1 to 100.

while(i<=100)

{

 

       System.out.print(" " + i + " ");

    

i++;

}


}


}


Print 1 To 10 Using Do While Loop in Java

Print 1 To 10 Using Do While Loop in Java

 A program to print numbers from 1 to 10 using do-while loop statement in 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 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

Thank you very much for your support.




Program Listing


 public class Print_1_To_10 { public static void main(String[] args) { // TODO Auto-generated method stub int i=1; System.out.println(); System.out.println("\tPrint 1 To 10 Using Do While Loop in Java"); System.out.println(); System.out.print("\t"); //loop to print 1 to 100. do { System.out.print(" " + i + " "); i++; }while(i<=10); } }


Sunday, January 30, 2022

Employees Payroll System in Java

Decimal To Binary Number in Python

Decimal To Binary Number in Python

 Machine Problem

Write a program to ask the user to give a decimal number  and then the program will convert the given decimal number
into binary number equivalent 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

Thank you very much for your support.





Program Listing


# Machine Problem
#
# Write a program to ask the user to give a decimal number
# and then the program will convert the given decimal number
# into binary number equivalent and display the results on
# the screen.


print()
print("\tDecimal To Binary Number in Python")
print()

decimal = int(input("\tGive a decimal number : "))
binary = 0
a = 0
temp = decimal


while(temp > 0):
binary = ((temp%2)*(10**a)) + binary
temp = int(temp/2)
a += 1

print()
print("\tThe Binary of {x} is {y}.".format(x=decimal,y=binary))
print()
print("\tEnd of Program")
print()


Difference and Product of Two Numbers in Python

Difference and Product of Two Numbers in Python

 Machine Problem

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

Thank you very much for your support.










Program Listing


# Machine Problem
#
# Write a program to ask the user to give two numbers
# and then the program will compute the difference and
# and product of two given numbers and display the
# results on the screen.

print()
print("\tDifference and Product of Two Numbers in Python")
print()

num1 = input("\tEnter the first number : ")
num2 = input("\tEnter the second number : ")

difference = int(num1) - int(num2)
product = int(num1) * int(num2)

print()
print("\tDifference of {} and {} is {}".format(num1, num2,product),'.')
print("\tProduct of {} and {} is {}".format(num1, num2,difference),'.')
print()
print("\tEnd of Program")
print()

Saturday, January 29, 2022

Person's Name Record Keeping App in Python

Person's Name Record Keeping App in Python

 A program that will ask the person's name and it will allow the user to sort the person's name using ascending and descending order 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


Thank you very much for your support.






Program Listing

import sys
data = []

class RecordKeepingApp:
def __init__(self, choice):
'''Takes 1 parameter. Returns an input asking to try again.'''
self.choice = choice
data.append(choice)
cont = input("Try again? yes/no: ").lower()

if (cont.lower() == "yes"):
pass
elif (cont.lower() == "no"):
print()
print("How do you want to display the list of names?")
print("[A] - Ascending Order")
print("[D] - Descending Order")
display = input("Enter your choice: ").upper()

if (display == "A"):
data.sort()
elif (display == "D"):
data.sort(reverse=True)
else:
print("Your choice is not valid")

print()
print("*************************************")
print("* LIST OF NAMES *")
print("*************************************")
for index, item in enumerate(data):
print('{}: {}'.format(int(index)+1, item))

print("Total number of names inputted is ", len(data))
sys.exit("\n\n")
else:
print("Invalid response. Please try again.")

print()

print("*************************************")
print("* Welcome to Record Keeping App *")
print("*************************************\n")

while True:
selection = input('Enter a name: ')
RecordKeepingApp(selection)

Friday, January 28, 2022

Coffee Place Objects in Python

Coffee Place Objects in Python

 A program that demonstrates how to declare an object in the 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


Thank you very much for your support.







Program Listing

class Customers:
greeting = "\nWelcome to Coffee Palace!"

def __init__(self, c_1, c_2, c_3, c_4, c_5):
self.c_1 = c_1
self.c_2 = c_2
self.c_3 = c_3
self.c_4 = c_4
self.c_5 = c_5
arr = [self.c_1, self.c_2, self.c_3, self.c_4, self.c_5]

print("==============================================================================================================")

for customer in arr:
custName = customer.lower()
if (custName == "nate"):
print("Name=Nate\t Beverage=Espresso\t\t\t Food=Pastrami on rye\t\t Total=220")
elif (custName == "elaine"):
print("Name=Elaine\t Beverage=Strawberry frappuccino\t Food=Tuna Wrap\t\t Total=270")
elif (custName == "samirah"):
print("Name=Samirah\t Beverage=Iced caffe latte\t\t Food=Cinnamon roll\t\t Total=225")
elif (custName == "jerry"):
print("Name=Jerry\t Beverage=Caramel macchiato\t\t Food=Glazed doughnut\t\t Total=230")
elif (custName == "paz"):
print("Name=Paz\t Beverage=Iced tea\t\t\t Food=Blueberry pancakes\t Total=315")
else:
print("Customer name not found.")

print("==============================================================================================================")
print()

print(Customers.greeting)
Customers("Nate", "Elaine", "Samirah", "Jerry", "Paz")

Addition of Two Numbers Using GUI in Python