Friday, March 18, 2022

Add,Subtract,Multiply, and Divide of Two Numbers in C++

 A simple program to ask the user to give two numbers and then the program will add, subtract, multiply, and divide the two numbers and display the results using 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

Thank you very much for your support.




Program Listing


#include <iostream>


using namespace std;


int main()

{

      cout <<"\n";

  cout << "\tAdd,Subtract,Multiply, and Divide of Two Numbers in C++";

      cout <<"\n\n";

  while(true)

     {

          cout <<"\n\n";

cout << "\tEnter a First Value (negative to quit)  : ";

         int num1;

         cin >> num1;

         if(num1 < 0)

           break;

         cout << "\tEnter a second number (negative to quit) : ";

         int num2;

         cin >> num2;

         if(num2 < 0)

           break;


         int sum = num1 + num2;

         int difference = num1 - num2;

         int product = num1 * num2;

         int quotient = num1 / num2;

      

         cout <<"\tThe sum of " <<num1 << " and " << num2 << " is " << sum << "\n";

         cout <<"\tThe differene of " <<num1 << " and " << num2 << " is " << difference << "\n";

         cout <<"\tThe product of " <<num1 << " and " << num2 << " is " << product << "\n";

         cout <<"\tThe quotient of " <<num1 << " and " << num2 << " is " << quotient << "\n";

         cout <<"\n\n";

  cout << "\tEnd of Program";

         cout <<"\n";

     }

}

Basic Math in Scala

Basic Math in Scala

 Machine Problem

Write a program to perform addition, subtraction, multiplication, and division of two numbers.

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

/* basic_math.scala
   Prof. Jake Rodriguez Pomperada, MAED-IT, MIT
   www.jakerpomperada.blogspot.com and www.jakerpomperada.com
   jakerpomperada@gmail.com
   October 31, 2021    Sunday  3:18 PM
   Bacolod City, Negros Occidental
 */

import java.util.Scanner;

object basic_math {
   
    def main(args: Array[String]) : Unit = {
   
        var scanner = new Scanner(System.in);
   
        print("\n\n");
        print("\tBasic Math in Scala");
        print("\n\n");  
        print("\tEnter the first number : ");
        var a = scanner.nextInt();
       
        print("\tEnter the second number : ");
        var b = scanner.nextInt();

        var addition = (a+b);
        var difference = (a-b);
        var multiply = (a*b);
        var quotient = (a/b);
       
        print("\n");
        println("\tThe sum of " + a + " and " + b + " is " + addition +".");
        println("\tThe difference between " + a + " and " + b + " is " + difference +".");
        println("\tThe product of " + a + " and " + b + " is " + multiply +".");
        println("\tThe quotient between " + a + " and " + b + " is " + quotient +".");
        print("\n");
        print("\tEnd of Program");
        print("\n\n");
       
    }
}

Thursday, March 17, 2022

Student Final Grade in C++

Student Final Grade in C++

 A simple program to solve the student final grade 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>


int main(){

    float prelim_grade, midterm_grade;

    float endterm_grade, final_grade;


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

std::cout <<"\tStudent Final Grade in C++";

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

    std::cout <<"\tGive Student Prelim Grade   : ";

    std::cin >> prelim_grade;

    std::cout <<"\tGive Student Midterm Grade  : "; 

std::cin >> midterm_grade;

    std::cout <<"\tGive Student Endterm Grade  :  "; 

std::cin >> endterm_grade;

final_grade = (prelim_grade * .2)+ (midterm_grade * .3) + (endterm_grade *.5);

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

    std::cout << "\tThe Student Final Grade : " << final_grade;

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

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

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

    return 0;

}

Wednesday, March 16, 2022

String Upper Case Using Filter in AngularJS

String Upper Case Using Filter in AngularJS

 Machine Problem

Write a program that uses an upper case filter to convert the given username from lower case format into upper case format.

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

<!-- index.htm
  Author   : Prof. Jake Rodriguez Pomperada, MAED-IT, MIT
  Date     : August 14, 2021  8:32 PM   Saturday
  Place    : Bacolod City, Negros Occidental
  Websites : www.jakerpomperada.com and www.jakerpomperada.blogspot.com
  Email    : jakerpomperada@gmail.com
  Location : Bacolod City, Negros Occidental Philippines
 -->

<html>
  <head>
      <title>String Upper Case Using Filter in AngularJS</title>
     <script type="text/javascript" src="angular.min.js"></script>
 </head>
 <style>
body {
  font-family: arial;
  font-size: 25px;
  font-weight: bold;
}
</style>
<body>
 <div ng-app>
   <h3>String Upper Case Using Filter in AngularJS</h3>
<body>
    <div ng-app ng-init="Username='lydia'">
  <p>User Name: <input type="text" ng-model = "Username"></p>
 The User Name in Upper Case Format: &nbsp;
 <span ng-bind="Username | uppercase"></span>
  </div>
</body>
  </html>

Simple Interest in C

Simple Interest in C

 A simple program to calculate the simple interest of the money being loaned 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

#include <stdio.h> 


void main()

{

int p=0,r=0,t=0,si=0;

printf("\n");

printf("\tSimple Interest in C");

printf("\n\n");

printf("\tGive Principal Amount, Rate of interest & Time : "); 

scanf("%d%d%d",&p,&r,&t);

si=(p*r*t)/100;

printf("\n");

printf("\tThe Simple Interest $%d",si); 

printf("\n\n");

printf("\tEnd of Program");

printf("\n");

}


Tuesday, March 15, 2022

Employee's Payroll in Python

Employee's Payroll in Python

 Machine Problem


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

# employees_payroll.py
# Mr. Jake Rodriguez Pomperada, MAED-IT, MIT
# www.jakerpomperada.com and www.jakerpomperada.blogspot.com
# jakerpomperada@gmail.com
# March 15, 2022 Tuesday 3:54 PM
# Bacolod City, Negros Occidental

print()
print("\tEmployee's Payroll in Python");
print()
emp_name = str(input("\tEmployees Name : "))
office = str(input("\tOffice [IT, ACCOUNTING, HR] : "))
years_service = float(input("\tNo. of years in service : "))

if (office.lower() == 'it') and (years_service >=10):
salary = 10000
elif (office.lower() == 'it') and (years_service < 10):
salary = 5000
elif (office.lower() == 'accounting') and (years_service >=10):
salary = 12000
elif (office.lower() == 'accounting') and (years_service < 10):
salary = 6000
elif (office.lower() == 'hr') and (years_service >=10):
salary = 15000
else:
salary = 7500

print()
print("\tName : " + emp_name)
print("\tOffice : " + office.upper())
print("\tYears of Service : " + str(years_service))
print("\tSalary : " + str(salary))
print();
print("\tEND OF PROGRAM");
print();

Vowels and Consonants in Python

Vowels and Consonants in Python

 A program that will ask the user to give a string and then the program will count the number of vowels and consonants from the in the given string 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


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

print()
print("\tVowels and Consonants in Python");
print()
str=input("\tGive a String : ");
vowels=0
consonants=0

for i in str.lower():
if(i == 'a'or i == 'e'or i == 'i'or i == 'o'or i == 'u'):
vowels=vowels+1;
else:
consonants=consonants+1;

print()
print("\tThe number of vowels:",vowels);
print("\tThe number of consonants:",consonants);
print()
print("\tEnd of Program")
print()

Monday, March 14, 2022

Area of Rectangle in C#

Area of Rectangle in C#

 A program to compute the area of rectangle of 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;


 /*         Area of Rectangle in  C#

            * Author : Jake Rodriguez Pomperada, MAED-IT, MIT

            * Tool   : C#

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

            * jakerpomperada@gmail.com

            * Bacolod City, Negros Occidental

            *

  */


namespace ConsoleApplication1

{

    class Program

    {

        static void Main(string[] args)

        {

          

            Console.WriteLine();

            Console.WriteLine("\tArea of Rectangle in C#\n");

            Console.WriteLine();

            Console.Write("\tGive the Length Value  : ");

            int length_value = Int32.Parse(Console.ReadLine());

           

            Console.Write("\tGive the Width Value : ");

            int width_value = Int32.Parse(Console.ReadLine());


            double solve_area;

            solve_area = (length_value * width_value);


            Console.WriteLine("\n");

            Console.WriteLine("\tThe Result : " + solve_area);

            Console.WriteLine();

            Console.Write("\tEnd of Program");

            Console.ReadKey();

        }

    }

}


Area of Square in C#

Area of Square in C#

 A simple program that I wrote using C# programming language to solve the area of square.

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;

 /*         Area of Square in  C#
            * Author : Jake Rodriguez Pomperada, MAED-IT, MIT
            * Tool   : C#
            * www.jakerpomperada.blogspot.com and www.jakerpomperada.com
            * jakerpomperada@gmail.com
            * Bacolod City, Negros Occidental
            *
  */

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
          
            Console.WriteLine();
            Console.WriteLine("\tArea of Square in C#\n");
            Console.WriteLine();
            Console.Write("\tGive the Side Value  : ");
            int side = Int32.Parse(Console.ReadLine());
           
            double solve_area;
            solve_area = (side * side);

            Console.WriteLine("\n");
            Console.WriteLine("\tThe Result : " + solve_area);
            Console.WriteLine();
            Console.Write("\tEnd of Program");
            Console.ReadKey();
        }
    }
}

Area of Triangle in C#

Area of Triangle in C#

 A simple program to solve the area of the triangle. I hope you like my work guys.

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;


 /*         Area of the Triangle in  C#

            * Author : Jake Rodriguez Pomperada, MAED-IT, MIT

            * Tool   : C#

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

            * jakerpomperada@gmail.com

            * Bacolod City, Negros Occidental

            *

  */


namespace ConsoleApplication1

{

    class Program

    {

        static void Main(string[] args)

        {

          

            Console.WriteLine();

            Console.WriteLine("\tArea of the Triangle in C#\n");

            Console.WriteLine();

            Console.Write("\tGive the Base Value  : ");

            int base_value = Int32.Parse(Console.ReadLine());

           

            Console.Write("\tGive the Height Value : ");

            int height_value = Int32.Parse(Console.ReadLine());


            double solve_area;

            solve_area = (base_value * height_value) / 2;


            Console.WriteLine("\n");

            Console.WriteLine("\tThe Result : " + solve_area);

            Console.WriteLine();

            Console.Write("\tEnd of Program");

            Console.ReadKey();

        }

    }

}


Sunday, March 13, 2022

Odd and Even Numbers Using Functions in C++

Odd and Even Numbers Using Functions in C++

 A simple program that will ask the user how many items to process and then it will accept a series of an integer numbers and then our program will list down the even and odd numbers using functions 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

// Written By: Mr. Jake R. Pomperada, MAED-IT

// Date : November 21, 2010 Sunday

// Tool : C++



#include <iostream>


using namespace std;


// Global Variables


int a=0,r=0,data=0,b=0;

int values[10];



void get_data();

void display_even();

void display_odd();



void get_data(void)

{

     cout << "\tOdd and Even Numbers Using Functions in C++";

     cout << "\n\n";

     cout << "How Many Numbers : ";

     cin >> data;

     cout << "\n";

        for (b=1; b <= data; b++)

            {

            cout << "Enter Item No. "

                  << b <<  " :";

            cin >> b[values];

          }

}



void display_even(void)

{


    cout << "\n\n";

    cout << "List of Even Numbers : ";

    cout << "\n\n";

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

            r = a[values] % 2;

            if (r ==0) {

                cout << " " <<a[values]

                << " ";

         }


     }

}



void display_odd(void)

 {

    cout << "\n\n";

    cout << "List of Odd Numbers : ";

      cout << "\n\n";

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

         r = a[values] % 2;

         if (r !=0) {

          cout << " " <<a[values]

            << " ";

         }

     }

 }

 main() {


     get_data();

     display_even();

     display_odd();

     cout << "\n\n";

     system("pause");

 }



Addition, and Difference of Two Numbers in Scala

Addition, and Difference of Two Numbers in Scala

 Machine Problem

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

/* addition_difference.scala

   Prof. Jake Rodriguez Pomperada, MAED-IT, MIT

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

   jakerpomperada@gmail.com

   October 31, 2021    Sunday  3:18 PM

   Bacolod City, Negros Occidental

 */


import java.util.Scanner;


object addition_difference {

def main(args: Array[String]) : Unit = {

    var scanner = new Scanner(System.in);

        print("\n\n");

    print("\tAddition, and Difference  of Two Numbers in Scala");

        print("\n\n");   

print("\tEnter the first number : ");

    var a = scanner.nextInt();

print("\n");

print("\tEnter the second number : ");

var b = scanner.nextInt();


        var addition = (a+b);

        var difference = (a-b);

print("\n");

println("\tThe sum of " + a + " and " + b + " is " + addition +".");

        print("\n");

        println("\tThe difference between " + a + " and " + b + " is " + difference +".");

        print("\n");

        print("\tEnd of Program");

        print("\n\n");

}

}

Product of Two Numbers in Scala