Friday, December 10, 2021

Area of Rectangle in Python

 # Machine Problem in Python

#
# Write a program to find the area of a rectangle in Python.
# Using the following formula
# Area = Width * Height

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.





Program Listing


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

# Machine Problem in Python
#
# Write a program to find the area of a rectangle in Python.
# Using the following formula
# Area = Width * Height

print("\n")
print("\tArea of Rectangle in Python")
print("\n")
width = float(input('Give the Width of a Rectangle: '))
height = float(input('Give the Height of a Rectangle: '))

# calculate the area
Area = width * height

print("\n")
print("Area of a Rectangle is: %.2f" %Area)
print("\n\tEnd of Program")
print("\n")

Thursday, December 9, 2021

Swapping of Numbers Using Pointers in C++

SWAPPING OF NUMBERS USING POINTERS IN C++

 A simple program to ask the user to give two numbers and then the program will swap the arrangement of two 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.





Program Listing

#include <iostream>

#include <string>


 using namespace std;


 int swap_value(int *a, int *b, int temp)

 {

  temp = *a;

  *a = *b;

  *b = temp;

 }


 main() {


     int a=0,b=0,temp=0;

      char reply = 'Y';


 for (; toupper(reply)== 'Y'; ) {


 cout << "\n\n";

 cout << "\t\t SWAPPING OF NUMBERS USING POINTERS IN C++";

 cout << "\n\n\t Created By: Mr. Jake R. Pomperada,MAED-IT";

 cout << "\n\n";

 cout << "Enter the first value  :=> ";

 cin >> a;

 cout << "Enter the second value :=> ";

 cin >> b;


 cout << "\nOrignal value of a : " << a <<".";

 cout << "\nOrignal value of b : " << b <<".";


 cout << "\n\n";


 swap_value(&a,&b,temp);

 cout << "After calling the function Reference/Pointer";

 cout << "\n\n";


 cout << "\nNew value of a : " << a <<".";

 cout << "\nNew value of b : " << b <<".";

 cout << "\n\n";

 cout << "Do You Want To Continue Y/N :=> ";

 cin >> reply;


 }

 if (toupper(reply) == 'N') {

     cout << "\nThank You For Using This Program.";


  }

 cout << "\n\n";

 system("PAUSE");

 }

Tuesday, December 7, 2021

String Concatenation in Java

String Concatenation in Java

 In this simple program, I will teach you how to concatenate a string in Java programming language using Eclipse IDE.

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.





Program Listing

package testing_only;

public class testing {

public static void main(String[] args) {
// TODO Auto-generated method stub
  
String str1 = "Information "; String str2 = " Technology";
System.out.print( str1 + str2);
}

}

Monday, December 6, 2021

String Upper Case in Java

String Upper Case in Java

 A program in Java to convert string into upper case format using the toUpperCase() function 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.




Program Listing


class  Upper_Case
{
public static void main( String args[ ] )
{
 String str_one = "bacolod city negros occidental";
 
 String str_two = str_one.toUpperCase();

 
 System.out.println("\n");
 System.out.println("\tString Upper Case in Java");
 System.out.println("\n");
 System.out.println( "\tThe Original  String : " + str_one );
 System.out.println();
 System.out.println( "\tThe UpperCase String  : " + str_two );
 System.out.println();
 System.out.println("\tEnd of Program");
System.out.println();
}
}

Students Records in C++

Sunday, December 5, 2021

Divisible By 16 in C++

Divisible By 16 in C++

 A simple program that I wrote to display numbers that are divisible by 16 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.



Program Listing

//  Check if any number is dividable by 16 without using / and %
//  operators.

#include <iostream>
#include <iomanip>

bool is_divisible_by_16(int num)
{
    if (num < 0)
        num = -num;

    while (num > 0)
    {
        num -= 16;
        if (num == 0)
            return true;
        else if (num < 0)
            return false;
    }
    return true;
}

int main()
{
    for (int i = 0; i <= 40; ++i)
        std::cout << std::boolalpha  << i  << " is divisble by 16: " << is_divisible_by_16(i) << "\n";
}


Saturday, December 4, 2021

Students Records in C++

 Machine Problem in C++

4.Summative Assessment 2

Complete the  given  code to produce  an  output Like this:

Records  of  Student

ID  Name  Grade

1   Ronel  86.5

2   lance  90.5

30  Bianca  81.5


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.





Program Listing

/*
4.Summative Assessment 2
Complete the  given  code to produce  an  output Like this:
Records  of  Student
ID  Name  Grade
1   Ronel  86.5
2   lance  90.5
30  Bianca  81.5
*/

#include  <iostream>
#include  <cstring>

using  namespace  std;

struct  student
{
    int  id;
    char  name[30];
    float  percentage;
};

ostream& operator<<(ostream& os, const student s)
{
    return os << s.id << "\t" << s.name << "\t" << s.percentage;
}

int  main()
{
    int  i;
    struct  student  record [3];
    record[0] .id= 1;
    strcpy(record[0] .name,  "Ronel");
    record[0] .percentage  =  86.5;

    record[1] .id=2;
    strcpy(record[1] .name,  "Lance");
    record[1] .percentage  =  90.5;

    record[2].id=3;
    strcpy(record[2] .name,  "Bianca");
    record[2].percentage  =  81.5;
    
    cout << "\n\n";
    cout <<"\tStudents Records in C++";
    cout << "\n\n";
    cout << "\tRecords  of  Student:\n\n";
    cout << "\tID\tName\tGrade\n";
    for (int i = 0; i < 3; ++i)
     
        {
        cout <<"\t"<< record[i] << "\n";
    }
return  0;
}

Friday, December 3, 2021

Decimal To Binary Number Converter in C

Decimal To Binary Number Converter in C

 A simple program to ask the user to give a decimal number and then the program will convert into the binary numbers 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.





Program Listing

#include <stdio.h>

#include <conio.h>


int main()

{

long int d;

int i=0,a[100],j=0;

printf("\tDecimal To Binary Number Converter in C");

printf("\n\n");

printf("\tEnter the Decimal No.:");

scanf("%d",&d);

while(d>0)

{

a[i]=d%2;

d=d/2;

i++;

}

printf("\n\n");

printf("\tBinary Number Equivalent : ");

for (j=i-1;j>=0;j--)

printf("%d",a[j]);

printf("\n\n");

printf("\tEnd of Program");

printf("\n");

getch();

}

Thursday, December 2, 2021

OOP PHP Login and MySQL

OOP Login in PHP

 I wrote this simple object oriented programming login system in php programming language and mysql database.

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.






Download the complete source code here

Pounds To Kilograms in Java

Pounds To Kilograms in Java

 A program that Java to ask the user to give weight in pounds and it will convert into kilograms values.

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.




Program Listing


import java.util.*;

import java.text.DecimalFormat;


public class Pounds_Kilograms {

private static final DecimalFormat df = new DecimalFormat("0.00");


public static void main(String [ ] args) {

Scanner input = new Scanner (System.in);


int pounds=0;

double kilograms=0.00;

  char c;

do{    

     

    

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

  System.out.println("\tPounds To Kilograms in Java");

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


    System.out.print("\tGive Weight in Pound(s) : ");

    pounds= input.nextInt();


   // Convert into Kilograms here


    kilograms = pounds * 0.453592;

    

    System.out.println();

   System.out.println("\tThe weight in kilogram(s) : " + df.format(kilograms));

   System.out.println();

   System.out.print("\tDo you want to continue? Y/N : ");

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

   

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

   System.out.println();

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

  System.out.println();

  input.close();


}

}



Number Palindrome in Python

Number Palindrome in Python

 A simple program that will ask the user to give a number and then the program check if the given number is a palindrome or not a palindrome 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.




Program  Listing

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

print("\n\tNumber Palindrome in Python\n")
num_val = input("Enter a number : ")
if num_val == num_val[::-1]:
print("\n\tThe given number " ,num_val, "is a Palindrome.")
else:
print("\n\tThe given number ", num_val, "is Not a Palindrome.\n")
print("\n\tEnd of Program")
print("\n")


Wednesday, December 1, 2021

Two Dimensional Arrays of Strings in C++

Two Dimensional Arrays of String in C++

 A simple program that I will demonstrate the concept of two dimensional arrays of string 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.




Program Listing

#include <iostream>


using namespace std;




int main()


{


char Country[6][15] = { "America", "Japan", "Zimbabwe",


                      "Sri Lanka", "Philippines",

                       "El Salvador" };




cout << "\t\tTWO DIMENSIONAL ARRAYS OF STRINGS IN C++";

cout << "\n";

cout << "\n\tCreated By: Mr. Jake R. Pomperada, MAED-IT,MIT";

cout << "\n\nLIST OF COUNTRY NAMES";

    cout << "\n\n";

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


cout << "\nCountry " << i + 1 << ": " << Country[i];




cout << "\n\n";


return 0;


}

Tuesday, November 30, 2021

Addition of Two Numbers in Python in Linux

Addition of Two Numbers in Python in Linux

 A simple program that I wrote using Python programming language that will ask the user to give two numbers and then the program will compute the sum of two numbers and display the results 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.

 


 

Program Listing

# addition.py
# Addition of Two Numbers in Python in Linux
# Jake Rodriguez Pomperada, MAED-IT, MIT
# www.jakerpomperada.com and www.jakerpomperada.blogspot.com
# Globe Number : 09173084360
# Bacolod City, Negros Occidental Philippines.

print("\n")
print("\tAddition of Two Numbers in Python in Linux")
print("\n")
num1 = int(input("Enter First Number   : "))
num2 = int(input("Enter Second Number  : "))

# Adding two numbers
sum = (num1 + num2)
 
# printing values
print("\n")
print("\tSum of {0} and {1} is {2}" .format(num1, num2, sum))

print("\n")
print("\tEnd of Program")
print("\n")
 


Odd and Even Numbers in C using Linux

Odd and Even Numbers in C using Linux

 A simple program that I wrote using C that ask the user to give a number and then the program will check if the given number is an odd or even number using C language in Linux operating system.

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.


 

Program Listing

 

 /* odd_even.c
   Author : Jake Rodriguez Pomperada, MAED-IT, MIT
   www.jakerpomperada.com  and www.jakerpomperada.blogspot.com
   jakerpomperada@gmail.com
   Bacolod City, Negros Occidenal Philippines.
   */

#include <stdio.h>

int main(){
    
    int a=0;

    printf("\n\n");
    printf("\tOdd and Even Numbers in C using Linux");
    printf("\n\n");
    printf("\tEnter a Number : ");
    scanf("%d",&a);
    /*  true if variable a is perfectly divisible by 2 */
    printf("\n");
    if(a % 2 == 0)
        printf("\tThe given number %d is even.", a);
    else
        printf("\tThe given number %d is odd.", a);
    printf("\n\n");
    printf("\tEnd of Program");
    printf("\n\n");
}


 

 

Area of the Rectangle in C++

Area of Rectangle in C++

 Machine Problem

Write a C++ program that computes for the area of a rectangle. There are two set of measurements given

below Rectangle 1 has a length of 8 and a width of 5. Rectangle 2 has a length of 4 and a width of 20.

Use a user defined function with parameters for this program.

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.





Program Listing

/*

2. Area of Rectangle

Write a C++ program that computes for the area of a

rectangle. There are two set of measurements given

below

Rectangle 1 has a length of 8 and a width of 5.

Rectangle 2 has a length of 4 and a width of 20.

Use a user defined function with parameters for this

program.

*/

#include <iostream>


using namespace std;


int AreaofRectangle ( int a, int b)

{

    return a * b;

}


int main()

{

  int l1 = 8;

  int w1 = 5;

  int l2 = 4;

  int w2 = 20;


  cout << "Area1 = " << AreaofRectangle(l1, w1) << "\n";

  cout << "Area2 = " << AreaofRectangle(l2, w2) << "\n";

  return 0;

}

Monday, November 29, 2021

Display User Names Using List in Python

Display User Names Using List in Python

 A simple program that I wrote using python to accept a series of names and display the user names using list data structures in 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.






Program Listing

data = []

print("\tDisplay User Names Using List in Python")
print("\n")
while True:
data.append(input("Enter the name : "))

choice = input("Enter another name?? (y/n) : ")
if choice.casefold() == 'n':
break

print("\n")
for user_names in data:
print(user_names);
print("\n")
print("\tEnd of Program")
print("\n")

Sunday, November 28, 2021

Subtraction of Two Numbers Without Using Subtraction Operator in Java

Subtraction of Two Numbers Without Using Subtraction Operator in Java

 A simple program to ask the user to give two numbers and then the program will compute the difference of two numbers without using subtraction operator 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.





Program Listing


import java.util.Scanner;


public class subtract_two_numbers {


public static void main(String[] args) {

   int val1=0,val2=0;

   

Scanner input_val= new Scanner(System.in);

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

  System.out.println("\tSubtraction of Two Numbers Without Using Subtraction Operator in Java");

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

      System.out.print("\tEnter the first number  : ");

      val1=input_val.nextInt();

      System.out.print("\tEnter the second number : ");

      val2=input_val.nextInt();

      

      int subtract = val1+(~val2+1);

  

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

  System.out.println("\tThe difference between " + val1 +

       " and " + val2+ " is " + subtract + ".");

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

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

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

  input_val.close();

}


}


Saturday, November 27, 2021

Upper Case String in C++

Upper Case String in C++

 Machine Problem

1. Summative Assessment 2

Create a C++ program which converts a given string to uppercase.

The output should be Like the following:

..

Original String:

feu institute of technology.

String in UPPERCASE:

FEU INSTITUTE OF TECHNOLOGY.

CCS0007 Computer Programming 2


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.





Program Listing

/*

1. Summative Assessment 2

Create a C++ program which converts a given string to uppercase.

The output should be Like the following:

..

Original String:

feu institute of technology.

String in UPPERCASE:

FEU INSTITUTE OF TECHNOLOGY.

CCS0007 Computer Programming 2

 */


#include <iostream>

#include <cstring>

#include <cctype>

using  namespace  std ;


int  main ()

{

    char  arr[]  = "feu institute of technology.";

    cout << "Original String:\n";

    cout << arr << "\n";


    for (int i = 0; arr[i] != '\0'; ++i)

        arr[i] = toupper(arr[i]);


    cout << "String in Uppercase:\n";

    cout << arr << "\n";

    cout  <<  "CCS0007  Computer  Programming  2"  <<  endl ;

return  0 ;

}