Friday, October 18, 2019

One Dimensional Array Demo in C++

Here is a simple program that I wrote to show you guys how to declare, initialize and display the elements in the one-dimensional array 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.


Sample Program Output


Program Listing

// array.cpp
// Author : Jake Rodriguez Pomperada,MAED-IT
// Date   : October 18, 2019 Friday 5:50 AM


#include <iostream>

using namespace std;


int main() {
int array[5] = {10,20,30,40,50};
cout <<"\n\n";
cout <<"\tOne Dimensional Array Demo in C++";
cout <<"\n\n";
cout <<"\tThe content of the array";
cout <<"\n\n";
cout <<"\t";
for (int a=0; a<5; a++){
cout  <<" " <<array[a]<<" ";
}
    cout <<"\n\n";
cout <<"\tEnd of Program";
}


Wednesday, October 16, 2019

Square Root Converter in C++

Square Root Converter in C++

In this article,  I will write a program that will ask the user to give a number and then the program will convert the given number into square root equivalent using 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.


Sample Program Output


Program Listing

// square_root.cpp
// Author : Jake Rodriguez Pomperada,MAED-IT
// October 16, 2019   Wednesday   4:50 AM

#include <iostream>
#include <cmath>

using namespace std;

int main()
{
  int number=0, result=0;
  cout <<"\n\n";
  cout <<"\tSquare Root Converter in C++";
  cout <<"\n\n";
  cout <<"\tGive Any Integer Number : ";
  cin >> number;
  
  result = sqrt(number);
  
  cout << "\n\n";
  cout <<"\tThe Square of "
       << number << " is "
       << result <<".";
  cout <<"\n\n";
  cout <<"\tEnd of Program";     
}


Sum of Odd Numbers in a Given Range in C++

Sum of Odd Numbers in a Given Range in C++

In this article, I will write a program that will ask the user to give minimum and maximum number as range and then our program will sum of odd numbers and display the results on the screen 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.


Sample Program Output


Program Listing

// range.cpp
// Author : Jake Rodriguez Pomperada, MAED-IT
// Date   : October 16, 2019    Wednesday  5:04 AM
// Email  : jakerpomperada@gmail.com


#include <iostream>

using namespace std;


int main()
{
 int number=0,min=0,max=0;
 int sum=0;

 cout <<"\n\n";
 cout <<"\tSum of Odd Numbers in a given Range in C++";
 cout <<"\n\n";
 cout <<"\tEnter the Minimum Range : ";
 cin >>min;
 cout <<"\tEnter the Maximum Range : ";
 cin >> max;

  for (number=min; number <= max; number++) {
  if (number % 2 != 0) {
  sum = sum+number;
  }
  }
  cout <<"\n\n";
  cout <<"\tThe Sum of Odd Numbers in a given range is "
    << sum << ".";
  cout <<"\n\n";
  cout <<"\tEnd of Program";
     
}





Division of Two Numbers in C++

Division of Two Numbers in C++

In this article, I will write a program that will ask the user to give two numbers and then the program will solve the division of the value of the two numbers in C++ as my 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.


Sample Program Output



Program Listing

// division.cpp
// Author : Jake Rodriguez Pomperada,MAED-IT
// Date   : October 16, 2019  Wednesday  5:19 AM


#include <iostream>

using namespace std;


int main()
{
int a=0,b=0,div=0;
cout <<"\n\n";
cout <<"\tDivision of Two Numbers";
cout <<"\n\n";
cout << "\tEnter First Number : ";
cin >> a;
cout << "\tEnter Second Number : ";
cin >> b;
div = (a/b);
cout <<"\n\n";
cout <<"\tThe quotient of " << a 
     << " and " << b << " is " << div <<".";
cout <<"\n\n";
cout <<"\tEnd of Program";
}





Area of the Square Solver in C++

Area of the Square Solver in C++

I this article, I will write a program that will compute the area of the square using C++ as my 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.


Sample Program Output


Program Listing

// square.cpp
// Author  : Jake Rodriguez Pomperada,MAED-IT
// Date    : October 16, 2019  5:32 AM   Wednesday

#include <iostream>

using namespace std;

int main()
{
int area=0,side=0;
cout <<"\n\n";
cout <<"\tArea of the Square Solver in C++";
cout <<"\n\n";
cout << "\tEnter Side of the Square : ";
cin >> side;
area = (side * side);
cout <<"\n\n";
cout <<"\tThe Area of the Square is "
     << area <<".";
cout <<"\n\n";
cout <<"\tEnd of the Program";     
}


Tuesday, October 15, 2019

Find Divisor of a Number Algorithm, Pseudocode and Flowchart


Programming Problem

Write pseudocode,algorithm, and flowchart to find divisor of a number 
and display the result on the screen.


Pseudocode

Start:
    Declare Integer i, n1
    
    Output "Find Divisor of a Number"
    Output "Give a Number:"
    Input n1
    Output "The divisors are :"
    For i = 1 to n1
        If n1 % i == 0
            Output i
        End
    End
Stop:


Algorithm


Step 1: Start
Step 2: Declare i, n1
Step 3: Input Give a Number say n1
Step 4: For i to 1 to n1
          IF n1 % i == 0
             print i
          ENDIF
        END
Step 5: Stop



Flowchart


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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.

Swapping of Two Numbers in C++

Swapping of Two Numbers in C++

In this program that I wrote it will ask the user to give two numbers and then the program will display the original arrangement of the number and then it will swap and display the number in different arrangement using C++ as my 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.


Sample Program Output


Program Listing

// swap.cpp
// Author : Jake Rodriguez Pomperada,MAED-IT
// Date   : October 14, 2019   Monday  9:47 PM
// Email  : jakerpomperada@gmail.com

#include <iostream>

using namespace std;

int main()
{
int a=0,b=0;
cout <<"\n\n";
cout <<"\tSwapping of Two Numbers in C++";
cout <<"\n\n";
cout << "\tGive Two Numbers : ";
cin >> a >> b;
cout <<"\n";
cout <<"\tBefore swapping A="
    << a << " and B = " <<b;
cout <<"\n";
a=a+b;
b=a-b;
a=a-b;
cout <<"\n";
cout <<"\tAfter swapping A="
    << a << " and B = " <<b;
cout <<"\n\n";
cout <<"\tEnd of Program";
}





Simple Loan Interest Solver in C++

A simple program that I wrote to solve for the loan interest of the customer from a bank and a financial institution using C++ as my 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.




Sample Program Output


Program Listing

// simple_interest.cpp
// Author : Jake Rodriguez Pomperada,MAED-IT
// Date   : October 14, 2019    Monday   9:04 PM
// Email  : jakerpomperada@gmail.com

#include <iostream>
#include <iomanip>

using namespace std;

int main()
{
  float p=0.00,r=0.00,t=0,si=0.00;
  
  cout <<"\n\n";
  cout <<"\tSimple Loan Interest Solver";
  cout <<"\n\n";
  cout <<"\tEnter Principal Amount : ";
  cin >> p;
  cout <<"\tEnter Rate of Interest : ";
  cin >> r;
  cout <<"\tEnter Time : ";
  cin >> t;
  
  si = (p*r*t)/100;
  
  cout << setprecision(2) <<fixed;
  cout <<"\n\n";
  cout <<"\tThe simple interest is $ "
       << si <<".";
  cout <<"\n\n";
  cout <<"\tEnd of Program";
}
     
  
  
  
  
  


Difference of Two Numbers in C++

Difference Between Two Numbers in C++

In this article, we will write a program using C++ that will ask the user two numbers and then the program will compute the difference between the two 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.



Sample Program Output


Program Listing

// difference.cpp
// Author : Jake Rodriguez Pomperada, MAED-IT
/* Date   : October 14, 2019   Monday  9:21 PM */


#include <iostream>

using namespace std;

int main()
{
   int a=0,b=0, sub=0;
   
   cout <<"\n\n";
   cout <<"\tDifference Between Two Numbers";
   cout <<"\n\n";
   cout <<"\tGive First Value : ";
   cin >> a;
   cout <<"\tGive Second Value : ";
   cin >> b;
   
   sub = (a-b);
   
   cout <<"\n\n";
   cout <<"\tThe difference between "
        << a << " and " << b << " is "
        << sub <<".";
   cout <<"\n\n";
   cout <<"\tEnd of the Program";
}







Area of the Triangle Solver in C++

Area of Triangle Solver in C++

A simple program that I wrote in C programming language to solve the area of the triangle.

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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.


Sample Program Output



Program Listing

// area_triangle.cpp
// Author : Jake Rodriguez Pomperada,MAED-IT
// Date   : October 14, 2019   Monday  9:34 PM
// Email  : jakerpomperada@gmail.com

#include <iostream>

using namespace std;

int main()
{
float area=0.00,base=0.00,height=0.00;
cout <<"\n\n";
cout <<"\tArea of Triangle Solver";
cout <<"\n\n";
cout <<"\tEnter Base Value : ";
cin >> base;
cout <<"\tEnter Height Value : ";
cin >> height;
area = (0.5 * base *  height);
cout <<"\n\n";
cout << "\tThe area of the triangle is "
     << area <<".";
cout <<"\n\n";
cout <<"\tEnd of Program";
}


Monday, October 14, 2019

Running Sum of Numbers in Go

A simple go program that will demonstrate the running sum of integer 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.


Program Listing

sum.go

package main

import "fmt"

func main() {
        sum := 0
        for i := 1;  i<=20; i++ {
                sum += i
        }
        fmt.Printf("The Total Sum =  %d\n",sum)
}