Sunday, November 21, 2021

Linked List in C++

 A linked list program that I wrote 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 at 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 <cstddef>

#include <iostream>


using namespace std;


class Node {

    public:

        int data;

    Node * next;

};


void print_list(Node * n) {


    while (n != NULL) {

        cout <<"\t" << n->data << "\n";

        n = n->next;

    }

}


int main() {

    Node * head = NULL;

    Node * second = NULL;

    Node * third = NULL;

    Node * fourth = NULL;

    Node * fifth = NULL;

    Node * sixth = NULL;


    head = new Node();

    second = new Node();

    third = new Node();

    fourth = new Node();

    fifth = new Node();

    sixth = new Node();



    head->data = 10;

    head->next = second;


    second->data = 20;

    second->next = third;


    third->data = 30;

    third->next = fourth;


    fourth->data = 40;

    fourth->next = fifth;


    fifth->data = 50;

    fifth->next = sixth;


    sixth->data = 60;

    sixth->next = NULL;


    cout <<"\n\n";

    cout <<"\tLinked List in C++\n\n";

    print_list(head);

    cout <<"\n\n";

    cout <<"\tEnd of Program";

    cout <<"\n";

}

Saturday, November 20, 2021

Mobile Service Provider in C++

Mobile Service Provider in C++

 Machine Problem in C++

Make a program that will input type of network provider. 

A - for Smart and Display "SMART USER". 

B- for Globe Display "GLOBE USER" and C-for Sun Display "SUN USER". 

Your program will be terminated when you input Z.

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


/*


Author : Prof. Jake Rodriguez Pomperada, MAED-IT, MIT

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

jakerpomperada@gmail.com

Bacolod City, Negros Occidental Philippines.


Machine Problem in C++


3. Make a program that will input type of network provider. 

A - for Smart and Display "SMART USER". 

B- for Globe Display "GLOBE USER" and C-for Sun Display "SUN USER". 

Your program will be terminated when you input Z.


*/


#include <iostream>

#include <cctype>


int main()

{

char select_sim,ch;

   

do {


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

std::cout << "\tMobile Service Provider in C++\n";

std::cout <<"\n";

std::cout <<"\tA-for Smart\n";

std::cout <<"\tB-for Globe\n";

std::cout <<"\tC-for SUN";

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

std:: cin >> select_sim;

ch = toupper(select_sim);

 

     if (ch=='Z') {

break; 

}

 

if (ch=='A') {

std::cout <<"\n";

std::cout <<"\tSMART USER";

} else if  (ch=='B') {

std::cout <<"\n";

std::cout <<"\tGLOBE USER";

} else if  (ch=='C') {

std::cout <<"\n";

std::cout <<"\tSUN USER";

} while (ch!='Z');

  std::cout << "\n";

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

std::cout <<"\n";

}




Friday, November 19, 2021

Area of the Circle Using Functions in VB.NET

Area of the Circle Using Functions in VB.NET

 A simple program to compute the are of the circle using functions in Microsoft Visual Basic NET.

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

Public Class Form1


    Dim area As Double

    Function Solve_Area(ByVal radius As Double) As Double


        radius = Single.Parse(Val(TextBox1.Text))


        area = Math.Round(3.14F * radius * radius, 2)


        Return area

    End Function


    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

        TextBox2.Text = Solve_Area(Val(TextBox1.Text))

    End Sub


    Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click

        End

    End Sub


    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click

        TextBox1.Text = ""

        TextBox2.Text = ""

        TextBox1.Focus()

    End Sub

End Class


Roman Numeral To Decimal in Java

Roman Numeral To Decimal in Java

 A simple program to ask the user to give roman numeral and then the program will convert the given roman numeral into decimal equivalent 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 at 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.util.Scanner;  



class Roman_To_Decimal


public static int romanToInteger(String roman) 

 {

    Map<Character,Integer> numbersMap = new HashMap<>();

    numbersMap.put('I',1);

    numbersMap.put('V',5);

    numbersMap.put('X',10);

    numbersMap.put('L',50);

    numbersMap.put('C',100);   

    numbersMap.put('D',500);   

    numbersMap.put('M',1000);  

        

    int result=0;

        

    for(int i=0;i<roman.length();i++)

    {

      char ch = roman.charAt(i);      // Current Roman Character

      

      //Case 1

      if(i>0 && numbersMap.get(ch) > numbersMap.get(roman.charAt(i-1)))

      {

        result += numbersMap.get(ch) - 2*numbersMap.get(roman.charAt(i-1));

      }

      

      // Case 2: just add the corresponding number to result.

      else

        result += numbersMap.get(ch);

    }

        

    return result;

 }

 

  

 public static void main(String args[])

 {

 

Scanner input = new Scanner(System.in);  // Create a Scanner object

 

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

System.out.print("\t\tRoman Numeral To Decimal in Java");

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

System.out.print("\tGive Roman Numberal Value : ");


    String romanNumber = input.nextLine(); 


    int result = romanToInteger(romanNumber.toUpperCase());

   

    

   System.out.println();

   System.out.println("\tThe Roman Number is: "+romanNumber.toUpperCase());

   System.out.println();

   System.out.println("\tIts Decimal Value is: "+result);

   

   System.out.println();

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

   System.out.println();

   input.close();

 }

}

 


Thursday, November 18, 2021

Student Age Determiner in C++

Student Age Determiner in C++

 A simple program to determine the average, maximum, and minimum age of the students in a class 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 at 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 <cstdlib>

#include <iostream>


using namespace std;


int main(int argc, char *argv[])

{

           int age[5];

           int i,sum=0, avg=0;

           int max=0,min=100;

            cout << "\n\t===================================================";

            cout << "\n\t\t     STUDENT AGE DETERMINER 1.0";

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

            cout << "\n\t===================================================";

            cout << "\n\n";

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

            {

                       cout << "Enter the age of the student  " << i+1 <<":";

                       cin >> age[i];

             }

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

            {

                        sum=sum+age[i];


                        if(age[i]>max)


                        {


                            max=age[i];


                        }


                        if(age[i]<min)


                        {


                                    min=age[i];


                        }


            }


            avg=sum/5;

            cout << "\n";

            cout << " \n\t==========================";

            cout << " \n\t==== GENERATED REPORTS ===";

            cout << " \n\t==========================";

            cout << "\n\n";

            cout << "Average age of the students of the class : " << avg << endl;


            cout << "Maximum age of the student of the class : " << max << endl;


            cout << "Minimum age of the student of the class : " << min << endl;


        cout << "\n\n";

    system("PAUSE");

    return EXIT_SUCCESS;

}

Wednesday, November 17, 2021

Network Reset in Windows 10

For Loop in C

 A simple program that demonstrate for loop 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 at 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>


int main()

{

  int a=0;


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

   printf("%4d",a);

    }

 return 0;

}


Tuesday, November 16, 2021

Addition of Two Numbers Using OOP in Java

Addition of Two Numbers Using OOP in Java

 A simple addition of two number using OOP (Object-Oriented Programming) approach 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 at 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 test;


import java.util.Scanner;

class  Addition_OOP {

    public int val_a;

    public int val_b;

    public int sum;

    

    static Scanner input = new Scanner(System.in);

    

public void getdata() {

  

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

  System.out.print("Addition of Two Numbers Using OOP in Java ");

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

  System.out.print("Give First Value  : ");

  val_a = input.nextInt();

  System.out.print("Give Second Value :  ");

  val_b = input.nextInt();

 

 }

 

  public void calculate(){

     sum =(val_a + val_b);

  }

          

 

 public void display() {

  System.out.println();

  System.out.println("The sum of " + val_a + " and "

          + val_b + " is " + sum + ".");

  System.out.println();

  System.out.println("End of Program");

  

 }

 

 public static void main(String args[]) {

  Addition_OOP add = new Addition_OOP();

  add.getdata();

  add.calculate();

  add.display();

  input.close();

 }

}

Text Color and Sleep in Dev C++

Text Color and Sleep in Dev C++

 A simple program to demonstrate how to use text color and sleep in Dev C++. I hope you will find my work useful.

Machine Problem in C++

Create a program that will print your  name "Jake" with a delay of 1 second. 

Color should be in alternate. (blue,red,green and yellow) using Dev C++.

blue - 1

red - 4

green - 2

yellow - 6


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

/* demo.cpp

   Jake Rodriguez Pomperada, MAED-IT, MIT

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

   jakerpomperada@gmail.com

   Bacolod City, Negros Occidental Philippines.

*/


#include <iostream>

#include <windows.h>

#include <conio.h>


using namespace std;


int main()

{

        HANDLE color=GetStdHandle(STD_OUTPUT_HANDLE); //just once

       

        // Text Color and Sleep in Dev C++

        while(!kbhit())

{

        cout << "  ";

         SetConsoleTextAttribute(color, 1);

cout<<"J";

        Sleep(1000);

        SetConsoleTextAttribute(color, 4);

        cout<<"a";

         Sleep(1000);

        SetConsoleTextAttribute(color,2);

        cout<<"k";

        Sleep(1000);

        SetConsoleTextAttribute(color, 6);

        cout<<"e";

}

       return 0;

}