Thursday, September 22, 2022

Calculating Average in C

 A simple program to compute average numbers using arrays 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 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.

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

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


Want to support my 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>

#define items 6

int main()
{
 int x=0;

 int average=0, a[items], sum=0;

 printf("\n\n");
 printf("\tCalculating Average in C\t");
 printf("\n\n");


 for(x=0; x<items; x++)
 {
  printf("\tEnter item no. %d values : ", x+1);
  scanf("%d", &x[a]);
 }
 sum = 0;
 for(x=0;x<items;x++)
 {
  sum += x[a];
 }

 average = sum/items;

 printf("\n");
 printf("\tThe Total Sum is %d.\n\n", sum);
 printf("\tThe Average is %d.\n", average);
 printf("\n\n");
 printf("\tEnd of Program");
 printf("\n");
}


Multiplication Table in a given range in C++

Wednesday, September 21, 2022

Multiplication Table in a given range in C++

 A simple program to ask the number and range and then the program will generate the multiplication table 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 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.

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

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


Want to support my 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 <iostream>


using namespace std;


int main()

{

    int num=0, range=0;


    cout <<"\n\n";

    cout <<"\tMultiplication Table in a given range in C++";

    cout <<"\n\n";

    cout << "\tGive a Number  : ";

    cin >> num;


    cout << "\tGive the Range : ";

    cin >> range;

    

    cout <<"\n";

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

        cout <<"\t" << num << " * " << a << " = " << num * a << endl;

    }

    cout <<"\n";

    cout <<"\tEnd of Progam";

    cout <<"\n";

}

Family Members Using ng-repeat in AngularJS

Family Members Using ng-repeat in AngularJS

 Machine Problem

Write a program that uses ng-repeat directive that will display the list of family members names like Ma. Junallie, Jake, Jacob Samuel, and Julianna Rae 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.

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

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


Want to support my 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

index.htm

Problem No. 1


Write a program that uses ng-repeat directive that will display

the list of family members names like Ma. Junallie, Jake, Jacob Samuel,

and Julianna Rae on the screen.


Solution


<!-- index.htm

  Author   : Prof. Jake Rodriguez Pomperada, MAED-IT, MIT

  Date     : July 30, 2021 Friday 12:38 PM

  Place    : Bacolod City, Negros Occidental

  Websites : www.jakerpomperada.com and www.jakerpomperada.blogspot.com

  Email    : jakerpomperada@gmail.com

 -->

<html>

<head>

  <title>Family Members Using ng-repeat in AngularJS</title>

</head>

<style>

body {

  font-family: arial;

  font-size: 25px;

  font-weight: bold;

}

</style>

<script type="text/javascript" src="angular.min.js">

</script>

<body ng-app="">

<h3>Family Members Using ng-repeat in AngularJS</h3>

<div ng-init="family=['Ma. Junallie','Jake','Jacob Samuel','Julianna Rae']">

  <p>Family Members</p>

  <ul>

    <li ng-repeat="list_of_names in family">

    {{ list_of_names }}

  </li>

  </ul>

</div>

</body>

</html>


BootStrap Form and $_POST in PHP

BootStrap and $_POST in PHP

 A simple program to demonstrate bootstrap form and $_POST 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 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.

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

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


Want to support my 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

index.php

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Input Form in PHP</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>
<div class="m-4">
    <form action="welcome.php" method="post">
        <div class="col-xs-4"">
            <label class="form-label" for="inputUseranme">Username</label>
            <input type="text" class="form-control" id="inputUsername"  name="username"
            placeholder="Username"  
            required>
        </div>
        <div class="mb-3">
            <label class="form-label" for="inputFirstname">Firstname</label>
            <input type="text" class="form-control" id="firstname" name="firstname"
             placeholder="Firstname" required>
        </div>
        <div class="mb-3">
            <label class="form-label" for="inputLastname">LastName</label>
            <input type="text" class="form-control" id="lastName" name="lastname"
            placeholder="Lastname" required>
        </div>
        <div class="mb-3">
            <label class="form-label" for="inputEmail">Email</label>
            <input type="email" class="form-control" id="inputEmail" name="email"
             placeholder="Email"  
            required>
        </div>
        <div class="mb-3">
            <label class="form-label" for="inputPassword">Password</label>
            <input type="password" class="form-control" id="inputPassword"  name="password"
            placeholder="Password" required>
        </div>
       
        <button type="submit" class="btn btn-primary">Submit</button>
    </form>
</div>
</body>
</html>

welcome.php

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Welcome Page</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body><br>
Username   : <?php echo $_POST["username"]; ?><br>
Firstname  : <?php echo $_POST["firstname"]; ?><br>
Lastname   : <?php echo $_POST["lastname"]; ?><br>
Email      : <?php echo $_POST["email"]; ?><br>
Password   : <?php echo $_POST["password"]; ?>
</body>
</html>

Tuesday, September 20, 2022

Swapping of Two Numbers in C++

Swapping Two Numbers in C++

 A program that will ask the user to give two numbers and then the program will swap the arrangement of two numbers 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 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.

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

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


Want to support my 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 <iostream>


using namespace std;


int main()

 {

  

       int a=0,b=0,temp=0;

  

       cout <<"\n\n";

       cout <<"\tSwapping Two Numbers in C++";

       cout <<"\n\n";

       cout<<"\tGive Value in Variable A : ";

       cin>>a;

       cout<<"\tGive Value in Variable B : ";

       cin>>b;

       cout <<"\n\n";

       cout<<"\tBEFORE SWAPPING:"<<"\n"<<"\n\ta="<<a<<" "<<"b="<<b<<"\n";

  

       temp=a;

       a=b;

       b=temp;


     cout <<"\n\n";

       cout<<"\tAFTER SWAPPING:"<<"\n"<<"\n\ta="<<a<<" "<<"b="<<b<<"\n";

       cout <<"\n\n";

       cout<<"\tEnd of Program";

       cout <<"\n\n";

  

 }

Enum in C

Enum in C

 A simple program to demonstrate how to declare and use enum command 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 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.

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

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


Want to support my 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()

{

enum MONTH {Jan=0,Feb,Mar};

enum MONTH month = Mar;

printf("\n\n");

     printf("\tEnum Program Demonstration");

     printf("\n\n");


  if (month == 0) {

printf("\tValue of January.");

} else if (month == 1) {

printf("\tMonth is February.");

}

if (month == 2) {

printf("\tMonth is March.");

}

printf("\n\n");

     printf("\tEnd of Program");

     printf("\n\n");

}


Monday, September 19, 2022

Eligible To Vote in C

Eligible To Vote in C

 A simple program to check if the given age is eligible to vote or not 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 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.

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

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


Want to support my 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()
{
 char voters_name[100];
 int age=0, wait_time=0;

 printf("\n\n");
 printf("\tEligible To Vote in C");
 printf("\n\n");
 printf("\tWhat is your name? ");
 gets(voters_name);
 printf("\tWhat is your age? ");
 scanf("%d", &age);
 printf("\n\n");

 if(age>=18)
 {
   printf("\t%s: you are eligible to vote this election.", voters_name);
 }
 else
 {
   wait_time = 18-age;
   printf("\t%s you are not eligible to vote \n\tand need to wait for %d years!",
   voters_name, wait_time);
 }
 printf("\n\n");
  printf("\tEnd of Program");
 printf("\n\n");
}

Sunday, September 18, 2022

Subtract Two Numbers Using Pointers in C

Subtract Two Numbers Using Pointers in C

 A simple program to ask the user to give two numbers and then the program will subtract the difference of two given numbers using Pointers 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 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.

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

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


Want to support my 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 *p1,*p2;
 int a=0,b=0,substract=0;


 printf("\n\n");
 printf("\tSubtract Two Numbers Using Pointers in C\n\n");
 printf("\tGive Two Numbers : ");
 scanf("%d%d",&a,&b);

 p1=&a;
 p2=&b;

 substract= *p1 - *p2;

 printf("\n\n");
 printf("\tThe difference between %d and %d is %d."
  ,a,b,substract);
printf("\n\n");


}

Prelim, Midterm, and Endterm Average Grade Solver in C++