Sunday, March 21, 2021

Student Grade Solver in C#

 Machine Problem

Write a C# program that will input your grades in different subjects last year  and display the average grade, highest grade and lowest grade using math  function.

Sample Output:

Enter grade in English: 89 

Enter grade in Math: 91 

Enter grade in Filipino: 92 

Enter grade in Science: 88

Average: 90

Lowest Grade: 88

Highest Grade:92

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

// grade_solver.cs
// Author : Mr. Jake Rodriguez Pomperada, MAED-IT, MIT
// www.jakerpomperada.com
// www.jakerpomperada.blogspot.com
// jakerpomperada@gmail.com
// Bacolod City, Negros Occidental, Philippines

using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int average_grade = 0;
            int total_grade = 0;
            int[] grades = new int[4];
            string[] subjects =
            new string[] { "English", "Math", "Filipino", "Science"};
            Console.WriteLine("\n");
            Console.WriteLine("\tStudent Grade Solver in C#");
            Console.WriteLine("\n");
            
for(int i =0 ; i<4; i++){
            Console.Write("\tEnter Grade in " + subjects[i] + " : ");
grades[i] = int.Parse(Console.ReadLine());

            total_grade += grades[i];

            average_grade = (total_grade / 4);
}
int highest_grade = grades[0];
int lowest_grade  = grades[0];
for(int i=0; i<4; i++){
            if (grades[i] > highest_grade)
            {
                highest_grade = grades[i];
}
if(grades[i] < lowest_grade){
                lowest_grade = grades[i];
}
}
    Console.WriteLine("\n");
            Console.WriteLine("\tAverage       :  {00}",average_grade);
            Console.WriteLine("\tLowest Grade  :  {00}",lowest_grade);
            Console.WriteLine("\tHighest Grade :  {00}",highest_grade);
            Console.WriteLine("\n");
            Console.WriteLine("\tEnd of Program");
            Console.WriteLine("\n\n");
            Console.ReadKey(); 
        }
    }
}

Swap Two Numbers in Python

Saturday, March 20, 2021

Swap of Two Numbers in Python

Write a program that will ask the user to input two numbers and then, swap the arrangement of the two numbers 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 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

# Jake R. Pomperada, MAED-IT, MIT

# March 20, 2021   Saturday   11:46 PM
# Bacolod City, Negros Occidental
print("@=====================================@")
print(" Swap of Two Numbers ")
print("@=====================================@")
print("");
x = int(input("Enter First Value : "))
y = int(input("Enter Second Value : "))
print("");
print("BEFORE SWAPPING")
print("");
print('The value of x before swapping: {}'.format(x))
print('The value of y before swapping: {}'.format(y))
temp = x
x = y
y = temp
print("");
print("AFTER SWAPPING")
print("");
print('The value of x after swapping: {}'.format(x))
print('The value of y after swapping: {}'.format(y))
print("")
print("===== THE END OF PROGRAM ===== ")

Area of the Circle Solver in Python

Area of the Circle Solver in Python

Write a program that will ask the user to input a radius of the circle and then, the program will compute the area and circumference of the circle 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 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

# Jake R. Pomperada, MAED-IT, MIT
# March 20, 2021 10:51 PM Saturday
# Bacolod City, Negros Occidental
print("@=============================================@")
print(" Area of the Circle Solver in Python ")
print("@==============================================@")
print("")
PI = 3.14
radius = float(input('Enter the radius of the circle : '))
area = PI * radius * radius
circumference = 2 * PI * radius
print("")
print("Area Of a Circle = %.2f" %area)
print("Circumference Of a Circle = %.2f" %circumference)
print("")
print("===== THE END OF PROGRAM ===== ")

Dictionary in Python

 In this tutorial I will show you how to declare and use dictionary in Python programming.

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

print("\n")

print("\tDictionary in Python\n")
print("Select a process: A) Add Data \tB) Delete Data \tC) End")
process = ["A", "B", "C"]
selection = str(input("Enter selection: "))
dict = {}
while selection.upper() in process:
if selection.upper() == "A":
key = input("Enter Key: ")
val = input(f"Enter Value: ")
dict[key] = val
elif selection.upper() == "B":
delete = str(input("Enter Key: "))
dict.pop(delete)
elif selection.upper() == "C":
print(f"THANK YOU")
break
else:
print(f"Please enter a valid response")
continue

for x in dict:
print(f"{x}:{dict[x]}", end=' ')

print(f"\n")
print("Select a process: A) Add Data \tB) Delete Data \tC) End")
selection = str(input("Enter selection: "))

Friday, March 19, 2021

Weekly Total Expenses in C#

 Write a C# program that will input all your expenses for the week and display the total expenses.

Sample dialogue:

Food: 500.00

Grocery: 200.00

Cellphone/Internet Load: 100

Others: 300.00

Total Expenses: 1100.00

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

// Mr. Jake R. Pomperada, MAED-IT, MIT
// www.jakerpomperada.com
// www.jakerpomperada.blogspot.com
// jakerpomperada@gmail.com
// March 19, 2021 Friday

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WeeklyExpenses
{
    class Program
    {
        static void Main(string[] args)
        {

            double food = 0.00;
            double grocery = 0.00;
            double cellphone_load = 0.00;
            double others = 0.00;
            double total_expenses = 0.00;

            Console.WriteLine("\n");
            Console.WriteLine("\tWeekly Total Expenses in C#");
            Console.WriteLine("\n");
            Console.Write("\tWhat is your expenses for Food? ");
            food = Double.Parse(Console.ReadLine());

            Console.Write("\tWhat is your expenses for Grocery? ");
            grocery = Double.Parse(Console.ReadLine());

            Console.Write("\tWhat is your expenses for Cellphone/Internet Load? ");
            cellphone_load = Double.Parse(Console.ReadLine());
            
            Console.Write("\tWhat is your other expenses? ");
            others = Double.Parse(Console.ReadLine());
            
            total_expenses = (food + grocery + cellphone_load + others);

            Console.WriteLine("\n");
            Console.WriteLine("\tTotal Expenses : PHP {0:0.00}", total_expenses);
            Console.WriteLine("\n");
            Console.WriteLine("\tEnd of Program");
            Console.WriteLine("\n\n");
            Console.ReadKey(); 
        }
    }
}


Seconds to Hours,Minutes and Seconds Converter in Ruby

 Create and design a program that will ask the user to give number in seconds and then the program will convert its hours, minutes and seconds equivalent 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 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

# time.rb
# Author   : Jake Rodriguez Pomperada,BSCS,MAED-IT, MIT
# Date     : May 17, 2019   Friday  9:19 PM
# Address  : Bacolod City, Negros Occidental
# Tools    : Eclipse IDE and Ruby Version 2.6.3
# Location : Bacolod City, Negros Occidental  
# Emails   : jakerpomperada@gmai.com and jakerpomperada@yahoo.com
puts "\n"
print "\tSeconds to Hours,Minutes and Seconds Converter in Ruby";
puts "\n\n"
print "\tHow many seconds?  ";
time = gets;
time = time.to_i;

# Conversion starts here 

hours = time / 3600;
minutes = (time % 3600) / 60;
seconds = ((time % 3600) % 60);

print "\n";
print "\t===== DISPLAY RESULTS =====";
print "\n\n";
print("\tHour(s)   : #{hours}");
print("\n");
print("\tMinute(s) : #{minutes}");
print("\n");
print("\tSecond(s) : #{seconds}");
print "\n\n";
print "\tEND OF PROGRAM";
print "\n\n";
  
 


Thursday, March 18, 2021

Arithmetic Operators in Go

Arithmetic Operators in Go

 A simple program to demonstrate how to use arithmetic operating using Go 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 main

import "fmt"

func main() {

    var x int = 31
    var y int = 20
    var z int

    z = x + y

    fmt.Printf("\n")
    fmt.Printf("\tArithmetic Operators in Go\n\n")
    fmt.Printf("\tLine 1 - Value of z is %d\n", z)

    z = x - y
    fmt.Printf("\tLine 2 - Value of z is %d\n", z)

    z = x * y
    fmt.Printf("\tLine 3 - Value of z is %d\n", z)

    z = x / y
    fmt.Printf("\tLine 4 - Value of z is %d\n", z)

    z = x % y
    fmt.Printf("\tLine 5 - Value of z is %d\n", z)

    x++
    fmt.Printf("\tLine 6 - Value of x is %d\n", x)

    x--
    fmt.Printf("\tLine 7 - Value of x is %d\n", x)
    fmt.Printf("\n")
    fmt.Printf("\tEnd of Program")
    fmt.Printf("\n")
}



Wednesday, March 17, 2021

Learning Math in C

Learning Math in C

 

A menu driven program that I wrote using C language to solve the factorial, prime numbers, and odd and even 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 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>

#include <stdlib.h>


int main()


{

    printf("\n\n\t\tLearning Math in C\n");

    printf("\nCreated By Mr. Jake R. Pomperada,MAeD-IT,MIT\n\n\n");

    int choice, num, i;

    unsigned long int fact;


    while(1)

    {

        printf("1. Factorial \n");

        printf("2. Prime\n");

        printf("3. Odd\\Even\n");

        printf("4. Exit\n\n\n");

        printf("Enter your choice :  ");

        scanf("%d",&choice);

        

        switch(choice)

        {

            case 1:

                printf("Enter number:\n");

                scanf("%d", &num);

                fact = 1;

                for(i = 1; i <= num; i++)

                {

                    fact = fact*i;

                }

                printf("\n\nFactorial value of %d is = %lu\n\n\n",num,fact);

                break;

        

            case 2:

                printf("Enter number:\n");

                scanf("%d", &num);

                if(num == 1)

                printf("\n1 is neither prime nor composite\n\n");

                for(i = 2; i < num; i++)

                {

                    if(num%i == 0)

                    {

                        printf("\n%d is not a prime number\n\n", num);

                        break;

                    }

                

                }

                /*

                    Not divisible by any number other 

                    than 1 and itself

                */

                if(i == num) 

                {

                    printf("\n\n%d is a Prime number\n\n", num);

                    break;

                }

        

            case 3:

                printf("Enter number:\n");

                scanf("%d", &num);

        

                if(num%2 == 0) // 0 is considered to be an even number

                    printf("\n\n%d is an Even number\n\n",num);

                else

                    printf("\n\n%d is an Odd number\n\n",num);

                break;

        

            case 4:

                exit (0);

                

            case 5: 

break; 

        

      default:

        printf("\n\nINPUT CORRECT OPTION\n\n\n");

        break; 

        }

    }

    return 0;

}


Tuesday, March 16, 2021

Constant in Go

 I wrote this simple program to show how to declare and use constants in Go 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

const.go

package main

import "fmt"

func main() {
    const Title string = "Computer Programming is Fun and Profit"

    fmt.Println(Title)
}

Monday, March 15, 2021

Hello World in Go

Hello World in Go

 A simple program to demonstrate hello world using Go 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 main

import "fmt"

func main() {
    fmt.Println("\tHello World in Go")
}

Sunday, March 14, 2021

Burger Ordering System in PHP and MySQL

Burger Ordering System in PHP and MySQL

 A burger ordering system written in PHP and MySQL I hope you like this code thank you.

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.








DOWNLOAD THE FREE AND COMPLETE SOURCE CODE HERE


Friday, March 12, 2021

Hours To Minutes Conversion in Go

Hours To Minutes Solver in Go

 A simple program that I wrote using Go programming language to ask the user to give hour values and then the program will convert the given hour into minute equivalent.

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

minutes_hours.go

/* hours_minutes.go
   Author   : Mr. Jake Rodriguez Pomperada, MAED-IT, MIT
   Date     : September 22, 2020  8:54 PM Tuesday
   Websites : www.jakerpomperada.com  / www.jakerpomperada.blogspot.com  
   Emails   : jakerpomperada@gmail.com and jakerpomperada@yahoo.com
   Location : Bacolod City, Negros Occidental Philippines. 
*/

package main
 
import "fmt"
      
func main(){
    var hours int  
    var minutes int
      
    fmt.Print("\n\n")
    fmt.Print("\tHours To Minutes Solver")
    fmt.Print("\n\n")
    fmt.Print("\tEnter Number of Hours : ")
    fmt.Scan(&hours)
      minutes = hours * 60
    fmt.Print("\n\n")
    fmt.Println("\tThe result is ",minutes, " Minutes.") 
    fmt.Print("\n\n")
    fmt.Print("\tEnd of Program")
    fmt.Print("\n")
}

Thursday, March 11, 2021

Find the First and Last Character in a String in C++

First and Last Character in a String in C++

 A program that I wrote using C++ to ask the user to give a string and then the program will identify which is the first and last character.

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

// string.cpp
// Mr. Jake R. Pomperada, MAED-IT, MIT
// www.jakerpomperada.com
// www.jakerpomperada.blogspot.com
// jakerpomperada@gmail.com
// Bacolod City, Negros Occidental Philippines

#include <iostream>
#include <string>

int main()
{
  std::string input;
  std::cout << "\n\n";
  std::cout << "\tFirst and Last Character in a String in C++";
  std::cout << "\n\n";
  std::cout << "\tEnter a string : ";
  std:: getline (std::cin, input);
  std::cout << "\n\n";
  if(!input.empty())
  std::cout << "\tThe first character is: " << input.front()
   << " the last character is: "
<< input.back() << "\n";
  else
    std::cout << "\tYou didn't enter anything.";
  std::cout << "\n\n";
  std::cout << "\tEnd of Program";
  std::cout << "\n\n";
}

Create a Table Using SQL