Wednesday, February 9, 2022

Computation of Grades in Java

 A program that will compute the grades of the student and then it will display the letter grade of the student 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



/* grades.java
*
* Author : Jake Rodriguez Pomperada, MAED-IT, MIT
* www.jakerpomperada.com and www.jakerpomperada.blogspot.com
* jakerpomperada@gmail.com
* Bacolod City, Negros Occidental Philipipines
*/ import java.util.Scanner; public class grades {
/** Main method */
public static void main(String[] args) {
// Create a Scanner
Scanner input = new Scanner(System.in);

int[] scores = new int[100];
int average=0; int total_sum=0, numberOfGrades;
char grade = 0;
int grades=0;
int i=0;

System.out.println();
System.out.println("\tComputation of Grades in Java");
System.out.println();
System.out.print("# of grades: ");
numberOfGrades = input.nextInt(); for (i = 1; i <= numberOfGrades; i++) {
System.out.print("("+i+"): ");
scores[i] = input.nextInt();

} System.out.println();

for ( i = 1; i <= numberOfGrades; i++) {

total_sum+=scores[i];
average = (total_sum/numberOfGrades)* 10;
grades = (average);
}
System.out.print(grades);


System.out.println();


String output = "";
if (grades >= 91 && grades <= 100)
grade = 'A';
else if (grades >= 81 && grades <= 90)
grade = 'B';
else if (grades >= 71 && grades <= 80)
grade = 'C';
else if (grades >= 61 && grades <= 70)
grade = 'D';
else if (grades <= 60)
grade = 'E'; output += "Your Grade is " + grades + ": Descriptive Rating: "
+ grade;

System.out.println();
System.out.println(output);
input.close();
}
}


How To Write and Run a JavaScript Program

Tuesday, February 8, 2022

Name Generator App in Python

Name Generator App in Python

 A simple program to generate random names 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

import random

first = ["Kai", "Hunter", "Luca", "Quinn", "River", "Skylar", "Hayden", "Riley", "Reese", "Jude"]
middle = ["Abbot", "Griffith", "Maxfield", "Rufus", "Eva", "Emma", "Olivia", "Sims", "Tan", "Ovilda"]
last = ["James", "Doha", "Harden", "Jordan", "Bryant", "Williams", "Simmons", "Imbid", "George", "Leonard"]
namebank = []
while True:
name = input("Do you want to generate a new name? [y/n]: ")
if name.upper() == "Y":
rand = random.randint(0, 4)
randname = first[rand] + " " + middle[rand] + " " + last[rand]
namebank.append(randname)
print(f"Your new name is {randname}\n")
continue
elif name.upper() == "N":
print("Thank you!")
print("List of generated names:")
for x in namebank:
print(f"{x}")
break

Minimum Number in an Array in Java

Minimum Number in an Array in Java

  A program to check and display the minimum number in an array 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



public class minimum

{

    public static void main(String[] args)

    {

     

         //Loop through the array  

        int elements[]={-5,300,20,4000,8,341};

        int min = elements[0]; 

        

        System.out.println();

        System.out.print("\tMinimum Number in an Array in Java");

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

   

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

           if(elements[i] <min)  

               min = elements[i];  

        } 

        System.out.println("\tMinimum Number : "+ min);

        System.out.println();

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

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

        }

    }



Monday, February 7, 2022

Maximum Number in an Array in Java

Maximum Number in an Array in Java

 A program to check and display the maximum number in an array 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



public class Maximum_Number

{

    public static void main(String[] args)

    {

        int i,max=0;

        int elements[]={-5,300,20,4000,8,341};

        

        System.out.println();

        System.out.print("\tMaximum Number in an Array in Java");

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

   

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

        {

            if(elements[i]>max)

            {

                max=elements[i];

            }

        }

        System.out.println("\tMaximum Number : "+max);

        System.out.println();

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

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

    }

}

Sunday, February 6, 2022

The Smallest and Biggest Number in C#

The Smallest and Biggest Number in C#

 A simple program to check which of the given numbers has the smallest and biggest numerical value 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 i=0; int[] items = new int[100]; Console.Write("\n\n"); Console.Write("\tThe Smallest and Biggest Number in C#"); Console.Write("\n\n"); Console.Write("\tHow Many Items? "); int n = Convert.ToInt16(Console.ReadLine()); Console.Write("\n\n"); for (i = 1; i <= n; i++) { Console.Write("\tEnter the No. " + i + ": "); items[i] = Convert.ToInt16(Console.ReadLine()); } for (i = 1; i <= n; i++) { for (int j = 1; j <= n - 1; j++) { if (items[j] > items[j + 1]) { int temp = items[j]; items[j] = items[j + 1]; items[j + 1] = temp; } } } Console.Write("\n\n"); //Display the Smallest Numerical Value Console.WriteLine("\tThe Smallest Numerical Value : " + items[1]); //Display the Biggest Numerical Value Console.WriteLine("\tThe Largest Numerical Value : " + items[n]); Console.Write("\n\n"); Console.Write("\tThe End of Program"); Console.Write("\n\n"); Console.ReadKey(); } } }


Saturday, February 5, 2022

Display 1 To 20 Using For Loop in C++

Display 1 To 20 Using For Loop in C++

 A simple program to display a series of numbers from 1 to 20 using for loop statement 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.

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

Thank you very much for your support.





Program Listing

#include <iostream>

#include <iomanip>


int main()

{

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

 std::cout <<"\tDisplay 1 To 20 Using For Loop in C++";

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

  for (int a=1; a<=20; a++) {

    std::cout << std::setw(4) << a;

 }

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

}


How To Write and Run C++ Programs in CodeBlocks

Friday, February 4, 2022

Factors of a Number Using For Loop in Java

Factors of a Number Using For Loop in Java

 Write a Java program to Find Factors of a Number using For loop 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

factors.java


/* Write a Java program to Find Factors of a Number using For loop */


import java.util.Scanner;


public class factors {


    public static void main(String[] args) {

        Scanner input = new Scanner(System.in);


        int x=0, i=0;

        char ch;

        

        do {

            System.out.println();

            System.out.print("\tFactors of a Number Using For Loop in Java");

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

       

        System.out.print("\tGive a Positive Number : ");

        x = input.nextInt();


        System.out.println();

        System.out.print("\tThe factors of the " + x + " are: ");

        for (i = 1; i <= x; ++i) {

            if (x % i == 0) {

                System.out.print(i + " ");

            }

            ++i;

        }

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

        System.out.print("\tDo you want to continue (Type y or n) : ");

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

       } while (ch == 'Y'|| ch == 'y');  

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

        System.out.print("\tTHANK YOU FOR USING THIS PROGRAM");

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

        input.close();

    }

}


Days Into Years, Weeks, and Days in Java

Days Into Years, Weeks, and Days in Java

A  Java program to ask the users number of days and then it will convert into years, weeks, and days 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

days.java


import java.util.Scanner;


public class days {


    public static void main(String[] args)

    {

    Scanner input = new Scanner(System.in);

        

        char ch;

        

        do {

            System.out.println();

            System.out.print("\tDays Into Years, Weeks, and Days in Java ");

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

           System.out.print("\tHow many days? ");


        int days = input.nextInt();

        int years=0;

        int weeks=0;


        


        /* Conversion of days in to years, weeks and days */

        years = (days / 365);

        weeks = (days % 365) / 7;

        days = days - ((years * 365) + (weeks));


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

        System.out.println("\t" + years + " Year, " + weeks + " Weeks, and " + days+ " Days\n");

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

        System.out.print("\tDo you want to continue (Type y or n) : ");

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

       } while (ch == 'Y'|| ch == 'y');  

        System.out.println();

        System.out.print("\t THANK YOU FOR USING THIS PROGRAM");

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

        input.close();

    }

}


Thursday, February 3, 2022

String Declaration in PHP

String Declaration in PHP

 A simple program to demonstrate how to declare string using PHP 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

string.php



<?php


$name ="Julianna Rae Pomperada";


$school = "University of ";

$school .= "Saint  ";

$school .= "La Salle";


echo $name;

echo "<br><br>";

echo $school;


?>

Least Common Multiple (LCM) Solver in Java