Sunday, March 20, 2022

Power a Number in Visual FoxPro

Power a Number in Visual FoxPro

 A simple program that I wrote using Microsoft Visual FoxPro to ask the user to give base and exponent numbers and then the program will compute the power a number.

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

Compute Button 

thisform.txtresult.Value = val(thisform.txtbase.Value) ^ VAL(thisform.txtexponent.Value) 


 Clear Button 

 thisform.txtbase.Value = "" 

thisform.txtexponent.Value = "" 

thisform.txtresult.Value = "" thisform.txtbase.SetFocus 


 Quit Button 

 thisform.Release


Saturday, March 19, 2022

Word Count in Visual FoxPro

Word Count in Visual FoxPro

 A simple program to ask the user to give a sentence and then the program will count the number of words in the given sentence using Microsoft Visual FoxPro.

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.






Prorgam Listing

Count Words Button

IF EMPTY(thisform.txtsentence.Value) THEN MESSAGEBOX("Cannot be empty. Try Again","Reminder",32) thisform.txtsentence.SetFocus else thisform.txtcount.value = GETWORDCOUNT(thisform.txtsentence.Value) ENDIF

Clear All Button

thisform.txtsentence.value = "" thisform.txtcount.value = "" thisform.txtsentence.SetFocus


Quit Button

thisform.Release

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

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();

        }

    }

}