Wednesday, October 19, 2022

Character Checker in C++

 Machine Problem

Design a program to input a character from the user  and check whether the given character is the alphabet or not.

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

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


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 


https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


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

// char.cpp

// Author    : Mr. Jake R. Pomperada,BSCS,MAED-IT

// Date      : August 18, 2018  Saturday

// Location  : Bacolod City, Negros Occidental

// Website   : http://www.jakerpomperada.com

// Email     : jakerpomperada@jakerpomperada.com

#include <iostream>

using namespace std;

int main()

{

char ch;

char screen_display;

cout << "\n\n";

cout << "\tCharacter Checker in C++";

cout << "\n\n";

cout <<"\tGive a Character : ";

cin >> ch;

screen_display = toupper(ch);

if((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z'))

    {

      cout << "\n\n";

cout << "\tThe given character "<< screen_display << " is an alphabet.";

    }

    else

    {

         cout << "\n\n";

        cout << "\tThe given character "

<< screen_display << " is not an alphabet.";

    }

    cout << "\n\n";

cout << "\tEnd of Program";

}


Display a Number 1 to Nth Numbers Without Using Loops in C

Display a Number 1 to Nth Numbers Without Using Loops in C

 A program to display a number from 1 to nth numbers without using looping statements 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

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


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 


https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


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> void print_numbers(int a,int max) { printf("%5d",a); if(a<max) { /* calling function recursively by itself */ print_numbers(++a,max); } return; } main() { int n=10; printf("\n\n"); printf("\tDisplay a Number 1 to Nth Numbers Without Using Loops in C"); printf("\n\n"); printf("\t"); print_numbers(1,n); /*calling the function here */ printf("\n\n"); printf("\tEnd of Program"); printf("\n\n"); getch(); }

Tuesday, October 18, 2022

Student Grades Using ng-repeat With Key/Value in AngularJS

Student Grades Using ng-repeat With Key/Value in AngularJS

 Machine Problem

Write a program that uses ng-repeat directive that will display the list of student name, and grades using ng-repeat with key/value.

With the following values below.


Student Name                  Grades


Jake R. Pomperada              93

Ma. Junallie F. Pomperada      94

Jacob Samuel F. Pomperada      95

Julianna Rae F. Pomperada      96

Lydia R. Pomperada             87

Leslie Vinky P. Pepito         90


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

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


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 


https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


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 Author : Prof. Jake Rodriguez Pomperada, MAED-IT, MIT Date : July 30, 2021 Friday 4:12 PM Place : Bacolod City, Negros Occidental Websites : www.jakerpomperada.com and www.jakerpomperada.blogspot.com Email : jakerpomperada@gmail.com --> <html> <head> <title>Student Grades Using ng-repeat With Key/Value in AngularJS</title> </head> <style> body { font-family: arial; font-size: 25px; font-weight: bold; } </style> <link rel="stylesheet" href="bootstrap.min.css"> <script type="text/javascript" src="angular.min.js"> </script> <body> <br> <h2>Student Grades Using ng-repeat With Key/Value in AngularJS</h2> <div ng-app="" ng-controller="ngrepeatCtrl"> <table class="table table-bordered table-striped table-hover"> <tr class="danger"> <th>Student Names</th> <th>Grades</th> </tr> <tr ng-repeat="(student_names,grades) in items"> <td>{{student_names}}</td> <td>{{grades}}</td> </tr> </table> </div> <script> var student_grades = { "Jake R. Pomperada": "93", "Ma. Junallie F. Pomperada": "94", "Jacob Samuel F. Pomperada": "95", "Julianna Rae F. Pomperada": "96", "Lydia R. Pomperada": "87", "Leslie Vinky P. Pepito":"90" }; function ngrepeatCtrl($scope) { $scope.items = student_grades; } </script> </body> </html>

Monday, October 17, 2022

Increment and Decrement Operators in C++

Increment and Decrement Operators in C++

 A simple program to demonstrate increment and decrement operators 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

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


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 


https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


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 std::cout;

using std::endl;


int main()

{

    int x = 10;

    

    cout << "\n\n";

    cout <<"\tIncrement and Decrement Operators in C++";

    cout << "\n\n";

    

    cout << "\tValue of x is     : " << x << endl;

    

    x--;

    cout << "\tValue of x is now : " << x << endl;



     x+=10;

    cout << "\tValue of x is now : " << x << endl;


     x-=5;

     

    cout << "\tValue of x is now : " << x << endl;

    

cout <<"\n";

cout<<endl<<"\tEnd of Program";

    return 0;

}


Character Checker With Exception Handling in C++

Character Checker With Exception Handling in C++

 Machine Problem

Write a program that will ask the user to input a character and identify if the character is not an alphabet with exception handling functionalities.

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

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


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 


https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


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


/* A program that will ask the user to input a character 

and identify if the character is not an alphabet with exception handling functionalites*/


#include <iostream>


using namespace std;


int main()

 {

char let_given;

 

try

{

cout <<"\n\n";

cout << "\tGive a character : ";

cin >> let_given;

cout <<"\n\n";

let_given =toupper(let_given);

if (!isalpha(let_given))

//isalpha - is a character detection type to identify if it is a letter

  throw let_given;

cout<<"\t" <<let_given<<" is an alphabet!!:";

         

}


catch(char x)

{

cout << "\tException Thrown with "

            <<x<< " is not an alphabet!!.\n";

}

cout <<"\n\n";

cout<<endl<<"\tEnd of Program";

}  


Square and Cube Number in TypeScript

Square and Cube Number in TypeScript

 Machine Problem

Write a program that will compute the square and cube value of 5 and  display the results 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

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


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 


https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


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

/* square_cube.ts Jake Rodriguez Pomperada, MAED-IT, MIT www.jakerpomperada.com and www.jakerpomperada.blogspot.com jakerpomperada@gmail.com July 15, 2022 6:33 AM Friday Bacolod City, Negros Occidental */ let val_num = 5; // Converting to Square Value let square = (val_num * val_num); // Converting to Cube Value let cube = (val_num * val_num * val_num); console.log(); console.log("Square and Cube Number in TypeScript\n"); console.log("Square of "+ val_num +" is "+square +".\n"); console.log("Cube of "+ val_num +" is "+cube +".\n"); console.log("End of Program\n");

Sunday, October 16, 2022

Calling a Function in C

Calling a Function in C

 A simple program to teach you how to call a function in C 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

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


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 


https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


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> void calling_function() { printf("\n\n\tCalling the function here.\n\n"); } int main(void) { calling_function(); }

Array Input of Numbers and Display in Java

Array Input of Numbers and Display in Java

 A simple program to demonstrate the array input and display 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 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

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


You can buy my C++ book online at  


https://www.mindshaperspublishing.com/product/beginners-guide-to-c-programming/


You can buy my book in introduction to computer networking at 


https://www.unlimitedbooksph.com/product-page/introduction-to-computer-networking


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

package demo; import java.util.*; /* * Array.java * Author Jake Rodriguez Pomperada, MAED-IT, MIT * www.jakerpomperada.com * www.jakerpomperada.blogspot.com * jakerpomperada@gmail.com * October 16, 2022 Sunday * */ public class Array { public static void main(String[] args) { // TODO Auto-generated method stub Scanner input=new Scanner(System.in); int[] array = new int[5]; System.out.print("\n\n"); System.out.print("\tArray Input of Numbers and Display in Java"); System.out.print("\n\n"); for(int i=0; i<5; i++) { System.out.print("\tGive value in item no. " + (i+1) + " : "); array[i]=input.nextInt(); } System.out.print("\n"); System.out.println("\tThe array elements are: "); System.out.print("\n\n"); for (int i=0; i<5; i++) { System.out.print("\t" + array[i] + " "); } System.out.print("\n\n"); System.out.print("\tEnd of Program"); System.out.print("\n\n"); input.close(); } }