Wednesday, March 23, 2022

Area of the Circle Solver Using Scala

 Machine Problem

Write a program to ask the user to give the radius of the circle,  and then our program will compute the area of the circle.

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


=================================================

Want to support my the channel?


GCash Account


Jake Pomperada

09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.





Progam Listing

/* area_cicle.scala
   Prof. Jake Rodriguez Pomperada, MAED-IT, MIT
   www.jakerpomperada.blogspot.com and www.jakerpomperada.com
   jakerpomperada@gmail.com
   November 2, 2021   9:26 PM  Tuesday
   Bacolod City, Negros Occidental
 */


import java.util.Scanner;

object AreaCircle {

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

    var input = new Scanner(System.in);

    print("\n\n");
    print("\tArea of the Circle Solver Using Scala");
    print("\n\n");
    print("\tEnter the Radius of the Circle : ");

    var radius = input.nextDouble();


    var area = 3.14 * radius * radius

    print("\n");
    print("\tThe Area of Circle is " + f"$area%2.2f" )
    print("\n\n");
    print("\t END OF PROGRAM");
    print("\n\n");
  }
}

Addition of Three Numbers Using Pointers in C

Addition of Three Numbers Using Pointers in C

 Machine Problem

Write a program that will ask the user to give three numbers and then the program will compute the total sum of the three numbers using pointers and display the result 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


=================================================

Want to support my the channel?


GCash Account


Jake Pomperada

09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.






Program Listing

#include <stdio.h>
 
int main()
{
   int first=0, second=0,third=0; 
   int *a,*b,*c;
   int sum=0;
   printf("\n\n");
   printf("\tAddition of Three Numbers Using Pointers in C");
   printf("\n\n");
   printf("\tGive Three Numbers : ");
   scanf("%d%d%d",&first,&second,&third);
   a = &first;
   b = &second;
   c = &third;
  sum = *a + *b + *c;
  printf("\n\n");
  printf("\t===== DISPLAY RESULTS =====");
  printf("\n\n");
  printf("\tThe total sum of %d, %d and %d is %d."
          ,first,second,third,sum);
  printf("\n\n");
  printf("\tEND OF PROGRAM");
  printf("\n\n");
 }

Tuesday, March 22, 2022

Count Vowels, Consonants, Digits and White Space in C++

Count Vowels, Consonants, Digits and White Space in C++

 A simple program to ask the user to give a sentence and then the program will count the vowels, consonants, digits, and white space 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


=================================================

Want to support my the channel?


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.





Program Listing

#include <iostream>

#include <string>


using namespace std;



main()  {

    string sentence;

    int NumChars=0, VowelCount=0, ConsonantCount=0;

    int whitespace=0, digits=0;

    

    cout << "\n\n";

    cout << "\tCount Vowels, Consonants, Digits and White Space in C++";

    cout << "\n\n";

    cout << "\tEnter a Sentence :=> ";

    getline(cin,sentence);


    NumChars = sentence.length();


    for (int i=0; i < NumChars; i++) {

          switch(sentence.at(i)) {


              case 'a' : case 'A' :

              case 'e' : case 'E' :

              case 'i' : case 'I' :

              case 'o' : case 'O' :

              case 'u' : case 'U'  : VowelCount++;

                                     break;

              case 'b' : case 'B' :

              case 'c' : case 'C' :

              case 'd' : case 'D' :

              case 'f' : case 'F' :

              case 'g' : case 'G' :

              case 'h' : case 'H'  :


              case 'j' : case 'J'  :

              case 'k' : case 'K' :

              case 'l' : case 'L' :

              case 'm' : case 'M' :

              case 'n' : case 'N' :

              case 'p' : case 'P'  :


              case 'q' : case 'Q' :

              case 'r' : case 'R' :

              case 's' : case 'S' :

              case 't' : case 'T' :

              case 'w' : case 'W'  :


              case 'x' : case 'X' :

              case 'y' : case 'Y' :

              case 'z' : case 'Z' :  ConsonantCount++;

                                     break;

              case ' '  : whitespace++;

                           break;

              case '1' : case '2' :

              case '3' : case '4' :

              case '5' : case '6' :

              case '7' : case '8' :

              case '9' : case '0'  : digits++;




          }

    }

    cout << "\n\n";

    cout << "\t===  SUMMARY OF REPORTS =====\n";

    cout << "\n\n";

    cout << "\tNumber of Vowels      :=> " << VowelCount << ".\n";

    cout << "\tNumber of Consonants  :=> " << ConsonantCount << ".\n";

    cout << "\tNumber of Digits      :=> " << digits << ".\n";

    cout << "\tNumber of WhiteSpace  :=> " << whitespace << ".\n";

    cout << "\n\n";

    system("PAUSE");

}

Monday, March 21, 2022

Print 1 To 10 Using For Loop in C#

Print 1 To 10 Using For Loop in C#

 A simple program to print 1 to 10 using For Loop 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.

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


=================================================

Want to support my the channel?


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.




Program Listing


using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;


namespace ConsoleApplication1

{

    class Program

    {

        static void Main(string[] args)

        {


            Console.Write("\n\n");

            Console.WriteLine("\tPrint 1 To 10 Using For Loop in C#");

            Console.Write("\n\n");

            Console.Write("\t");

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

            {

                Console.Write(" {0} ",a);

             } 

            Console.Write("\n\n");

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

            Console.Write("\n\n");

            Console.ReadKey();

        }

    }

}





Power a Numbers in C#

Power a Number in C#

 A program to ask the user to give base and exponent number and then the program will compute the power of a number 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;


namespace ConsoleApplication1

{

    class Program

    {

        static void Main(string[] args)

        {

            int baseNumber, expNumber, result = 1;


            Console.Write("\n\n");

            Console.Write("\tPower a Number in C# ");

            Console.Write("\n\n");

            Console.Write("\tGive Base Number    : ");

            baseNumber = Convert.ToInt32(Console.ReadLine());

            Console.Write("\tGive Exponent Number : ");

            expNumber = Convert.ToInt32(Console.ReadLine());



            while (expNumber != 0)

            {

                result *= baseNumber;

                --expNumber;

            }


            Console.Write("\n\n");

            Console.WriteLine("\tThe Result : {0}", result);

            Console.Write("\n\n");

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

            Console.Write("\n\n");

            Console.ReadLine();

        }

    }

}



Sunday, March 20, 2022

Student Final Grade in Java

Student Final Grade in Java

 A program that will ask the users prelim,midterm, and endterm grade and then the program will compute the final grade of the student and display students in the screen 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.

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

Thank you very much for your support.






Program Listing

/* Student_Final_Grade.java

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

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

 * jakerpomperada@gmail.com

 * Bacolod City, Negros Occidental Philippines

 */



import java.util.Scanner;


public class Student_Final_Grade {

public static void main(String args[]) {


Scanner input = new Scanner(System.in);

double prelim_grade, midterm_grade;

    double endterm_grade, final_grade;


char c,ch;

     

do 

{

System.out.println();

System.out.println("\tStudent Final Grade in Java");

System.out.println();

System.out.print("\tGive Student Prelim Grade   : ");

prelim_grade  = input.nextDouble();


System.out.print("\tGive Student Midterm Grade  : ");

midterm_grade = input.nextDouble();


System.out.print("\tGive Student Endterm Grade  : ");

endterm_grade = input.nextDouble();


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

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



System.out.println("\tThe Student Final Grade : "+ Math.round(final_grade));

        System.out.println();

System.out.print("\tDo you want to continue? Y/N : ");

c = input.next().charAt(0);        


ch = Character.toUpperCase(c);  

}while (ch == 'Y');  


System.out.println();

System.out.println("\tThank you for using this software.");

System.out.println();

input.close();

}


}


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");
       
    }
}