Saturday, September 4, 2021

Student Grade Solver in AngularJS

 Machine Problem

Write a program that will ask user to give the student name, subject, prelim grade, midterm grade, and end term grade. The program will display the student name, subject and compute the final grade of the student in the particular subject.

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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.





Program Listing

<!-- index.htm

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

  Date     : July 24, 2021  Saturday 2:14 PM

  Place    : Bacolod City, Negros Occidental

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

  Email    : jakerpomperada@gmail.com

 -->

<html>

  <head>

    <title>Student Grade Solver in AngularJS</title>

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

     <script>

    var myApp=angular.module("myModule",[]);

    myApp.controller("Compute_Grade",function($scope) {

    $scope.SolveGrade=function()

    {

           

         compute_grade =  ($scope.prelim * 0.20) +  

                           ($scope.midterm * 0.30) +

                           ($scope.endterm * 0.50);


        $scope.title="===== Student Grade Report =====";

         $scope.student = "Student Name  : " + $scope.student_name;

         $scope.subject = "Subject       : " + $scope.subject_name; 

         $scope.final_grade =   "Final Grade   : " + compute_grade.toFixed(0);

       }



    });

     </script>

     

 </head>

 <style>

body {

font-family: arial;

font-size: 25px;

font-weight: bold;

}

</style>

 <body ng-app="myModule" ng-controller="Compute_Grade">

  <h3>Student Grade Solver in AngularJS</h3>

 <div>

  <table border="0">

  <tr>

  <td>

  Enter Student Name  </td>

       <td>

        &nbsp;&nbsp;&nbsp;&nbsp;

         <input type="text"  size="40" ng-model="student_name" required/>

       </td>

      <tr>

  <td>

  Enter Subject Name </td>

       <td>

        &nbsp;&nbsp;&nbsp;&nbsp;

         <input type="text" size="40" ng-model="subject_name" 

         required/>

       </td>   

       </tr>

       <tr>

         <td>&nbsp;&nbsp;&nbsp;</td>

        </tr>

       <tr>

       <td>

      Enter Prelim Grade </td>

       <td>

        &nbsp;&nbsp;&nbsp;&nbsp;

         <input type="number" ng-model="prelim"/>

       </td>   

       </tr>

       <tr>

       <td>

      Enter Midterm Grade </td>

       <td>

        &nbsp;&nbsp;&nbsp;&nbsp;

         <input type="number" ng-model="midterm"/>

       </td>   

       </tr>

       <tr>

       <td>

      Enter Endterm Grade </td>

       <td>

        &nbsp;&nbsp;&nbsp;&nbsp;

         <input type="number" ng-model="endterm"/>

       </td>   

       </tr>

       <tr>

         <td>&nbsp;&nbsp;&nbsp;</td>

        </tr>

      <tr>

      <td colspan="5">

      <input type="button" ng-click="SolveGrade()"

          title="Click here to solve the student grade."

      value="Solve Student Grade"/>

      </td>

      </tr>

      </table>

      <br>

       {{ title }} <br><br>

       {{ student | uppercase }} <br>

       {{ subject | uppercase }} <br><br>

       {{ final_grade }} 

     </div><br>

       </div>

    </body>

</html>

Thursday, September 2, 2021

Subtract Two Numbers Using a Functions in C

Substract Two Numbers Using Function in C

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

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.




Program Listing

/* subtract.c

 Prof. Jake Rodriguez Pomperada, MAED-IT, MIT

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

 jakerpomperada@gmail.com

 Bacolod City, Negros Occidental Philippines */


#include <stdio.h>


int substract(int a, int b)

{

int diff=0;

if (a>b) {

diff = a-b;

} else{

diff = b-a;

}

return(diff);

}


int main() {

int x=0,y=0;

printf("\n\n");

printf("\tSubstract Two Numbers Using A Function in C");

    printf("\n\n");

printf("\tEnter Two Numbers : ");

scanf("%d%d",&x,&y);

    printf("\n\n");

    printf("\tThe difference between %d and %d is %d.",

x,y,substract(x,y));

printf("\n\n");

printf("\tEnd of Program");

printf("\n\n");


}



Subtract Two Numbers Using Functions in C++

Substract Two Numbers Using Function in C++

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

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.





Program Listing

// subtract.cpp

// Prof. Jake Rodriguez Pomperada, MAED-IT, MIT

// www.jakerpomperada.com and www.jakerpomperada.blogspot.com

// jakerpomperada@gmail.com

// Bacolod City, Negros Occidental Philippines


#include <iostream>


using namespace std;


int substract(int a, int b)

{

int diff=0;

if (a>b) {

diff = a-b;

} else{

diff = b-a;

}

return(diff);

}


int main() {

int x=0,y=0;

cout <<"\n\n";

cout <<"\tSubstract Two Numbers Using Function in C++";

cout <<"\n\n";

cout << "\tEnter Two Numbers : ";

cin >> x >> y;

cout << "\n\n";

cout <<"\tThe difference between " << x

     << " and " << y << " is " <<

    substract(x,y) << ".";

cout << "\n\n";

cout << "\tEnd of Program";

cout << "\n\n";


}

Wednesday, September 1, 2021

Remove Vowels and Consonants in C

Remove Consonants and Vowels in C

 A simple program that I wrote to ask the user to give a string and then the program will remove the consonants and vowels 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.





Program Listing

/* consonants_vowels.c

   Author : Jake Rodriguez Pomperada, MAED-IT, MIT

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

   jakerpomperada@gmail.com

   Bacolod City, Negros Occidental Philippines

*/


#include <stdio.h>

#include <string.h>

#include <stdbool.h>


bool is_consonant(char ch)

{

  const char consonants[] = "bcdfghjklmnpqrstvwxyzBCDFGHJKLMNPQRSTVWXYZ";


  return strchr(consonants, ch) != NULL;

}


bool is_vowel(char ch)

{

  const char vowels[] = "aeiouAEIOU";


  return strchr(vowels, ch);

}


char* remove_vowels(const char input[], char output[], size_t size)

{

int j = 0;

for(size_t i = 0; i < size; ++i)

if (!is_vowel(input[i]))

{

output[j++] = input[i];

}

output[j] = '\0';


return output;

}


char* remove_consonants(const char input[], char output[], size_t size)

{

int j = 0;

for(size_t i = 0; i < size; ++i)

if (!is_consonant(input[i])) {

output[j++] = input[i];

}

output[j] = '\0';


return output;

}


int main()

{

   char input[100] = "";

   char output[100] = "";


   printf("\n\n");

   printf("\tRemove Consonants and Vowels in C");

   printf("\n\n");

   printf("\tEnter a string: ");

   scanf("%99[^\n]s", input);


   printf("\n\n");

   printf("\tString Without Consonants: %s\n",remove_consonants(input, output, 100));

   printf("\n");

   printf("\tString Without Vowels    : %s\n",remove_vowels(input, output, 100));

   printf("\n\n");

   printf("\tEnd of Program");

   printf("\n\n");


}


Tuesday, August 31, 2021

Remove Vowels and Consonants in Modern C++

Remove Vowels and Consonants in Modern C++

 A simple program that I wrote to ask the user to give a string and then the program will remove the vowels and consonants in Modern 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 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.




Program Listing

#include <iostream>

#include <string>


bool is_consonant(char ch) noexcept

{

  const std::string consonants("bcdfghjklmnpqrstvwxyzBCDFGHJKLMNPQRSTVWXYZ");


  return consonants.find(ch) != std::string::npos;

}


bool is_vowel(char ch) noexcept

{

  const std::string vowels("aeiouAEIOU");


  return vowels.find(ch) != std::string::npos;

}


std::string remove_vowels(const std::string& input) noexcept

{

std::string output;

output.reserve(input.size());


for (char ch : input)

  if (!is_vowel(ch))

    output += ch;


return output;

}


std::string remove_consonants(std::string& input) noexcept

{

   std::string output;

   output.reserve(input.size());


   for (char ch : input)

  if (!is_consonant(ch))

       output += ch;


   return output;

}


int main()

{

   std::string input;


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

   std::cout << "\tRemove Vowels and Consonants in Modern C++";

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

   std::cout << "Enter a string: ";

   std::getline(std::cin, input);

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

   std::cout << "String Without Consonants: " << remove_consonants(input) << "\n\n";

   std::cout << "String Without Vowels    : " << remove_vowels(input) << "\n";

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

   std::cout <<"\tEnd of Program";

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

}


Monday, August 30, 2021

Multiplication Table in AngularJS

Multiplication Table in AngularJS

 Machine Problem

Write a program that will ask user to give the column and row value and then the program will generate a multiplication table based on the  given column and row value by the user.

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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.




Program Listing

<!-- index.htm

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

  Date     : July 24, 2021  Saturday 10:37 AM

  Place    : Bacolod City, Negros Occidental

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

  Email    : jakerpomperada@gmail.com

 -->

<html>

  <head>

    <title>Multiplication Table Creator in AngularJS</title>

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

    <script>

    var myApp=angular.module("myModule",[]);

    myApp.controller("Create_Table",function($scope) {

    $scope.MultiplicationTable=function()

    {

    

      var x=1;

      var output = "<table border='1' align='center' width='500' cellspacing='0'cellpadding='5'>";

      for(y=1;y<=$scope.rows;y++)

      {

      output = output + "<tr>";

        while(x<=$scope.column)

        {

       output = output + "<td align='center'>" + y*x + "</td>";

        x = x+1;

      }

       output = output + "</tr>";

       x = 1;

    }

    output = output + "</table>";

    document.write("<style> body { font-family: arial; font-size: 16px;  font-weight: bold; }; </style>");

    document.write("<br><h3 align='center'>Multiplication Table in AngularJS</h3>");

    document.write(output);

    }

    });

     </script>

 </head>

 <style>

body {

font-family: arial;

font-size: 25px;

font-weight: bold;

}

</style>

 <body ng-app="myModule" ng-controller="Create_Table">

  <h3>Multiplication Table Creator in AngularJS</h3>

 <div>

  <table border="0">

  <tr>

  <td>

  Enter Your Row Value  </td>

       <td>

        &nbsp;&nbsp;&nbsp;&nbsp;

         <input type="number" ng-model="rows"/>

       </td>

      <tr>

  <td>

  Enter Your Column Value  </td>

       <td>

        &nbsp;&nbsp;&nbsp;&nbsp;

         <input type="number" ng-model="column"/>

       </td>   

       </tr>

       <tr>

         <td>&nbsp;&nbsp;&nbsp;</td>

        </tr>

      <tr>

      <td colspan="5">

      <input type="button" ng-click="MultiplicationTable()"

          title="Click here to generate a multiplication table."

      value="Create Multiplication Table"/>

      </td>

      </tr>

      </table>

     </div><br>

       </div>

  </body>

</html>


Saturday, August 28, 2021

Addition of Two Numbers in Modern C++

Addition of Two Numbers in Modern C++

 I wrote this program to ask the user to give two numbers and then program will compute the sum of two numbers using modern C++ approach in 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.





Program Listing

// add.cpp

// Jake Rodriguez Pomperada, MAED-IT, MIT

// www.jakerpomperada.com and www.jakerpomperada.blogspot.com

// jakerpomperada@gmail.com

// Bacolod City, Negros Occidental Philippines


#include <iostream>


int main()

{

int a=0,b=0,sum=0;

std::cout <<"\tAddition of Two Numbers in Modern C++";

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

std::cout <<"\tEnter Two Numbers : ";

std::cin >> a >> b;

sum = (a+b);

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

std::cout <<"\tThe sum of " << a <<

          " and " << b << " is "

<< sum << ".";

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

std::cout <<"\tEnd of Program";

}

Friday, August 27, 2021

Remove Vowels, and Consonants in Pythons

Remove Vowels and Consonants in Python

 Write a Python program that will ask the user to give any string and then the program will remove and display the vowels and consonants in the given string by the user.

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 at my email address also. Thank you.


My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com

My mobile number here in the Philippines is 09173084360.






Program Listing

# vowels_Consonants.py
# Author : Jake Rodriguez Pomperada, MAED-IT, MIT
# www.jakerpomperada.blogspot.com and www.jakerpomperada.com
# jakerpomperada@gmail.com
# Bacolod City, Negros Occidental Philippines

# Remove all consonents and vowels from string
# Using list comprehension
print()
print("\tRemove Vowels and Consonants in Python")
print()
string = input('Enter any string: ')

print()

remove_vowels = "".join([chr for chr in string.lower() if chr in "aeiou"])
print("String Without Consonants : " + str(remove_vowels.upper()))
remove_consonants = "".join([chr for chr in string.lower() if chr
in "bcdfghjklmnpqrstvwxyz"])
print("String Without Vowels : " + str(remove_consonants.upper()))
print()
print("\tEnd of Program")
print()