Saturday, January 22, 2022

Login Error in Computer Programming Using C++

ARNOLD SCHWARZENEGGER Involved sa isang Car Accident

Prime Number in C

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






Program Listing

#include <stdio.h> int main() { int a=0,i=0,flag=0; printf("\n\n"); printf("\tGive a number: "); scanf("%d",&a); printf("\n"); flag=0; for(i=2;i <= a/2;i++) { if(a%i == 0) { flag=1; break; } } if(flag==0) printf("\tThe given number %d is a Prime Number.",a); else printf("\tThe given number %d is Not a Prime Number.",a); printf("\n\n"); printf("\tEnd of Program"); printf("\n"); return 0; }

Friday, January 21, 2022

Arrays in PHP

Arrays in PHP

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






Program Listing


<?php print("Arrays in PHP"); echo "<br>"; $square = array('one' => 'one', 'two' => 'four', 'three' => 'nine'); echo "The square of 1 is {$square['one']}."; echo "<br>"; echo "The square of 2 is " . $square['two'] . "."; echo "<br>"; echo "The square of 3 is " . $square['three'] . "."; ?>

String Concatenation in PHP

String Concatenation in PHP

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





Program Listing


<?php echo "String Concatenation in PHP"; echo "<br><br>"; $title = "PHP "; $title .= " Programming "; $title .= " Language"; echo $title; ?>



Comments in PHP

Comments in PHP

 A simple article that shows the different types of comments in the 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




Program Listing


<?php print("Comments in PHP"); echo "<br><br>"; echo "line 1\n"; // comment1 /* comment 2 another line of comment 2*/ echo "line 2\n"; echo "line 3\n"; # comment 3 ?>

Thursday, January 20, 2022

Addition of Three Numbers Using Functions in C#

 A program that will ask the user to give three numbers and then the program will compute the sum of three numbers using a function 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




Program Listing

using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { public static int Addition_Three_Numbers(int num1, int num2, int num3) { int total_sum = (num1 + num2 + num3); return total_sum; } static void Main(string[] args) { int num1, num2, num3, sum; Console.WriteLine("\n"); Console.Write("\tAddition of Three Numbers Using Functions in C#"); Console.WriteLine("\n"); Console.Write("\tGive First Value : "); num1 = Convert.ToInt32(Console.ReadLine()); Console.Write("\tGive Second Value : "); num2 = Convert.ToInt32(Console.ReadLine()); Console.Write("\tGive Third Value : "); num3 = Convert.ToInt32(Console.ReadLine()); sum = Addition_Three_Numbers(num1, num2, num3); Console.WriteLine(); Console.WriteLine("\tThe Total Sum is " + sum + "."); Console.WriteLine(); Console.WriteLine("\tEnd of Program"); Console.WriteLine(); Console.ReadKey(); } } }







Wednesday, January 19, 2022

Days of the Week Using Switch Statement in C

Days of the Week Using Switch Statement in C

 A simple program that will ask the user to give a number from 1 to 7 which represents days of the week like 1 - Monday, 2 - Tuesday, 3 - Wednesday, 4 - Thursday, 5-Friday, 6-Saturday, 7- Sunday using switch 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.





Program Listing

days.c


#include<stdio.h>

#include<conio.h>


void main()

{

int day=0;

printf("\n\n");

printf("\tDays of the Week Using Switch Statement in C");

printf("\n\n");

printf("\tGive a Day : ");

scanf("%d",&day);

printf("\n");

switch(day)

{


case 1:

{

printf("\tThe given day is Monday.");

break;

}

  case 2:

{

printf("\tThe given day is Tuesday.");

break;

}

case 3:

{

printf("\tThe given day is Wednesday.");

break;

}

case 4:

{

printf("\tThe given day is Thursday.");

break;

}

case 5:

{

printf("\tThe given day is Friday.");

break;

}

  case 6:

{

printf("\tThe given day is Saturday.");

break;

}

case 7:

{

printf("\tThe given day is Sunday.");

break;

}

default:

{

printf("\tInvalid day number");

}

}

printf("\n\n");

printf("\tEnd of Program");

printf("\n\n");

getch();

}


Two Decimal Places in Java

Two Decimal Places in Java

 A simple program to demonstrate how to declare and use two decimal places 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.text.DecimalFormat; public class Two_Decimal { private static final DecimalFormat df = new DecimalFormat("0.00"); public static void main(String[] args) { // TODO Auto-generated method stub double temp = 123.785; System.out.print("\n\n"); System.out.print("\tTwo Decimal Places in Java"); System.out.print("\n\n"); System.out.println("\tTemperature Value : " + temp); System.out.print("\n"); System.out.println("\tTwo Decimal Value Equivalent " + df.format(temp)); } }

Tuesday, January 18, 2022

Two Decimal Places in C++

Two Decimal Places in C++

 A simple program that I wrote using C++ programming language to demonstrate two decimal places.

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 <iomanip>


using std::string;


  int main() {

 

        float temperature = 123.3567;

        

        std::cout <<"\n";

        std::cout <<"\tTwo Decimal Places in C++";

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

        std::cout << std::fixed;

        std::cout << std::setprecision(2);

        std::cout <<"\tThe temperature is " << temperature <<"\n";

std::cout <<"\n";

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

        std::cout <<"\n";

        return 0;

  }



Monday, January 17, 2022

Sum of Diagonal Elements in a Matrix in Java

 A simple program to show how to solve the sum of diagonal elements in a matrix 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.





Program Listing

import java.util.*; class matrix { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int i,j,row,col,sum=0; System.out.println("Enter the number of rows:"); row = sc.nextInt(); System.out.println("Enter the number of columns:"); col = sc.nextInt(); int[][] mat = new int[row][col]; System.out.println("Enter the elements of the matrix") ; for(i=0;i<row;i++) { for(j=0;j<col;j++) { mat[i][j] = sc.nextInt(); } } System.out.println("The elements of the matrix") ; for(i=0;i<row;i++) { for(j=0;j<col;j++) { System.out.print(mat[i][j]+"\t"); } System.out.println(""); } for(i=0;i<row;i++) { for(j=0;j<col;j++) { if(i+j==2) //this condition checks for diagonal { sum = sum + mat[i][j]; } } } System.out.printf("SUM of DIAGONAL elements of the matrix = "+sum) ; } }

Sunday, January 16, 2022

String Compare in C++

String Compare in C++

 A program that demonstrates how to use the string compare function of 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.






Program Listing


#include <iostream>

#include <cstring>


using namespace std;


int main()

{

char str1[100]="Computer";

char str2[100]="Computer";

cout <<"\n";

cout << "\tString Compare in C++";

cout <<"\n\n";

if(strcmp(str1,str2)==0)

   cout<<"\tThe result is true."<<endl;

else

  cout<<"\tThe result is false.\n";

cout <<"\n";

cout << "\tEnd of Program";

cout <<"\n";

}