Sunday, June 30, 2019

Bitwise Operators Demonstration in C

A simple program to show how to use Bitwise Operators in C programming language.

If you like my work please click the ads on my website to support my work. I will really appreciate your help. 

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.

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

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com

Sample Program Output



Program Listing

/* bitwise.c
   Author   : Jake Rodriguez Pomperada,BSCS,MAED-IT
   Date     : November 19, 2018  Monday 2:38 PM
   Location : Bacolod City, Negros Occidental
   Website  : http://www.jakerpomperada.com
   Emails   : jakerpomperada@jakerpomperada.com
              jakerpomperada@gmail.com
              jakerpomperada@yahoo.com
              jakerpomperada@aol.com
*/

#include <stdio.h>

int main() 
 int x=0, y=0; 
 printf("\n\n");
 printf("\tBitwise Operators Demonstration");
 printf("\n\n");
 printf("\tGive two integers: ");
 scanf("%d%d",&x,&y);
 printf("\n\n");
 printf("\t%d & %d =  %d\n",x,y,(x & y)); 
 printf("\t%d | %d = %d\n",x,y,(x | y)); 
 printf("\t%d ^ %d = %d\n",x,y,(x ^ y));
 printf("\t~%d = %d\n",x,~x); 
 printf("\t%d << %d = %d\n",x,2,(x << 2));
 printf("\t%d >> %d = %d\n",x,2,(x >> 2));
 printf("\n\n");
 printf("\tEnd of Program");
 printf("\n\n");
}


What are the Disadvantages of C Programming Language?


What are the Disadvantages of C Programming Language?

  • ·         C Programming Language doesn't support Object Oriented Programming (OOP) features like Inheritance, Encapsulation, Polymorphism etc. It is a procedure-oriented language. In C, we have to implement any algorithms as a set of function calls.

  • ·         C doesn't perform Run Time Type Checking. It only does compile-time type checking. At runtime, C doesn't ensure whether the correct data type is used instead it performs automatic type conversion.

  • ·         C does not provide support for namespace like C++. Without Namespace, we cannot declare two variables of the same name.

  • ·         C doesn't support the concept of constructors and destructors.



If you like my work please click the ads on my website to support my work. I will really appreciate your help. 

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.

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

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com

Applications of C Programming Language


Applications of C Programming Language
Mainly C Language is used to Develop Desktop application and system software.
Some application of C language is given below.
·         C programming language can be used to design the system software like operating system and Compiler.
·         To develop application software like database and spreadsheets.
·         Develop Graphically a related application like computer and mobile games.
·         To evaluate any kind of mathematical equation use c language.
·         C programming language can be used to design the compilers.
·         UNIX Kernel is completely developed in C Language.
·         Creating Compilers of different Languages which can take input from other language and convert it into lower level machine dependent language.
·         C programming language can be used to design an Operating System.
·         C programming language can be used to design Network Devices.
Famous Applications Written in C Programming Language
The C programming language has a lot of real-world applications. Let us see some of the world-famous applications written in the C programming language. These are some of the modern-day world-class applications that are very popular.
VLC Media Player
Ø  The VLC media the player is  open-source software and a cross-platform media player and streaming media server. This application is written using a combination of C, C++, and Objective – C programming languages.
Microsoft Office Suite
Ø  Microsoft Office products include applications such as Microsoft Excel, Microsoft Word, Microsoft Outlook, Microsoft OneNote, Microsoft Publisher, Microsoft Project, and many others.
Ø  Originally written in C programming language, most of its portion is now switched on to C++ programming language for the object-oriented programming paradigm shift.
Operating Systems
Ø  Many popular operating systems such as Microsoft Windows, Linux, Symbian (Nokia) and Macintosh operating systems have been originally written in C programming languages.
Ø  However, now they’re being used with a combination of other programming languages such as C, C++, C#, and many others.
Git
Ø  Git is also popularly known as GitHub, are a web-based version control repository and Internet hosting service.

Ø  It offers source code management functionality of Git as well as additional features. Git is written using a combination of C, Perl, Shell, Python, and TCL whereas GitHub is developed using Ruby.
Adobe Suite
Ø  Adobe has rolled out some of the world-class products in animation domain. We have some amazing tools that have been developed in C programming language such as Adobe Photoshop, Adobe Illustrator, Adobe Premier, Adobe Image Ready, and others.
Google Chromium
Ø  Google Chromium is Google’s project offering an open-source web browser. This web browser is developed using C, C++, Python, Java and Javascript programming languages.
Mozilla Firefox
Ø  Mozilla Firefox is a free and open-source web browser available on Linux, Macintosh, and Windows operating systems.
Ø  This web browser is written using C, Rust, Javascript, HTML, and C++ programming languages.
MySQL
Ø  MySQL is again a very popular free and open-source relational database management system (RDBMS). It is developed using C and C++ programming languages.
AutoDesk Maya
Ø  AutoDesk Maya, also popularly known as Maya software is a well-known 3D computer graphics software.
Ø  It is used to create interactive applications, video games, special effects, movies and much more. It is developed using C, C++, C#, Python and MEL programming languages.
Advantages of C
• The program written in C are very efficient and fast. This is due to its variety of data types and powerful operators. It is many time faster than BASIC (Beginners All-Purpose Symbolic Instruction Code). This helps developers in saving their valuable time.
• C is a powerful and flexible language which helps system developers to deliver various complex tasks with ease. C is used for diverse projects like operating systems, word processors, graphics, spreadsheets, and even compilers for other languages.
• C is popular among professional programmers for programming, as a result, a wide variety of C compilers and helpful accessories are available.
• C is a highly portable language. This means that a C program written for one computer system (an IBM PC, for example) can be run on another system (a DEC VAX system, perhaps) with little or no modification. Portability is enhanced by the ANSI standard for C, the set of rules for C compilers.
• C’s another a striking feature is its ability to extend itself. A C program is basically a collection of various function supported by C library (also known as header files). We can also add our own functions to the C library. These functions can be reused in other applications or programs by passing pieces of information to the functions, you can create useful, reusable code.
• Writing a C program with User-Defined Functions (UDF) makes a program more simple and easy to understand. Breaking a problem in terms of functions makes program debugging, maintenance and testing easier.
As these features show that C is an excellent choice for your first programming language. But what is C++? You might have heard this term C++ and the programming technique called Object-Oriented Programming (OOP). Possibly you're wondering what the differences are between C and C++ and whether you should learn C or C++.
C++ is a superset of C, means that C++ is the new improved version of C for the latest programming needs. It contains everything C does, plus new additions for the OOP concept. If you will learn C++ later, you will find that almost everything which you learned in C is applicable in C++ too. In learning C, you are not only learning one of today's most powerful and popular programming languages, but you are also preparing yourself for other similar programming languages.
Another language that has gotten lots of attention is Java for its OOP and portability. Java, just like C++, is based on C. If later you decide to learn Java, you will find that almost everything you learned about C applies here.
If you like my work please click the ads on my website to support my work. I will really appreciate your help. 

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.

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

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com




Gender Checker Using If - Else Statement in Java

A simple gender check using if - else statement using Java programming language.

If you like my work please click the ads on my website to support my work. I will really appreciate your help. 

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.

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

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com


Program Listing

package year_level;
import java.util.Scanner;

public class Year_Level {
/**
 * Year_Level.java
 * Author : Mr. Jake R. Pomperada,MAED-IT
 * Date   : February 19, 2019   Tuesday
 * http://www.jakerpomperada.com
 * jakerpomperada@jakerpomperada.com 
 * jakerpomperada@gmail.com
 */
    public static void main(String[] args) {
       char gender;
      char Gender_Checker;
 
      Scanner input = new Scanner(System.in);
      System.out.println();
      System.out.print("\t\tGender Checker");
      System.out.println("\n");
      System.out.print("\tWhat is Your Gender? M-Male or F-Female : ");
      gender = input.next().charAt(0); 
      
      System.out.println();
      Gender_Checker = Character.toUpperCase(gender);
      
           
      if (Gender_Checker == 'M')
      {
       System.out.println();
       System.out.println("\tYour Gender is MALE.");
      }
      
      if (Gender_Checker == 'F')
      {
       System.out.println();   
       System.out.println("\tYour Gender is FEMALE.");
      }
      
      if (Gender_Checker != 'M'  && Gender_Checker != 'F')
      {
       System.out.println("\tInvalid Gender Try Again.");
      }
      
      System.out.println("\n");
      System.out.println("\tEnd of Program");
      System.out.println();
    }
    
}

Kilometers To Meters Converter in Java


Write a program that will ask the user to give the distance in kilometers and then the program will convert it into meters equivalent and display the result on the screen.

If you like my work please click the ads on my website to support my work. I will really appreciate your help. 

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.

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

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com


Program Listing

package kilometers_meters;

import java.util.Scanner;
import java.text.DecimalFormat;

public class Kilometers_Meters {
 /**
 * Kilometers_Meters.java
 * Author : Mr. Jake R. Pomperada,MAED-IT
 * Date   : February 19, 2019   Tuesday
 * http://www.jakerpomperada.com
 * jakerpomperada@jakerpomperada.com 
 * jakerpomperada@gmail.com
 */
    private static DecimalFormat df2 = new DecimalFormat(".##");
    
    public static void main(String[] args) {
        int meters = 1000;
        double km=0.00;
        Scanner input = new Scanner(System.in);
        System.out.println();
        System.out.print("\tKilometers To Meters Converter");
        System.out.println("\n");
        System.out.print("\tEnter Kilometer : ");
        km = input.nextDouble();
        double kmtometer=(km*meters);
        System.out.println();
        System.out.println("\t" +km+ " kilometers is " +df2.format(kmtometer)+ " in meters.");
        System.out.println();
        System.out.println("\tEnd of Program");
        System.out.println();
    }
    
}

US Dollar To Philippine Peso Converter in Java

Write a program that will ask the user to give the amount in US Dollars and convert 
into Philippine Pesos equivalent and display the computed the result on the screen.

If you like my work please click the ads on my website to support my work. I will really appreciate your help. 

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.

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

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com


Program Listing

package us_dollar_peso;

import java.util.Scanner;
import java.text.DecimalFormat;

public class US_Dollar_Peso {
 /**
 * US_Dollar_Peso.java
 * Author : Mr. Jake R. Pomperada,MAED-IT
 * Date   : February 19, 2019   Tuesday
 * http://www.jakerpomperada.com
 * jakerpomperada@jakerpomperada.com 
 * jakerpomperada@gmail.com
 */
    private static DecimalFormat df2 = new DecimalFormat(".##");
 
    public static void main(String[] args) {
        
        double ustopeso =52.36;
        double us=0.00;
        
        Scanner input = new Scanner(System.in);
        System.out.println();
        System.out.print("\tUS Dollar To Philippine Peso Converter");
        System.out.println("\n");
        System.out.print("\tEnter Amount in US Dollar : $ ");
        us = input.nextDouble();
        double amountinpeso = us*ustopeso;
        System.out.println();
        System.out.println("\tThe value in Philippine Peso is: PHP " 
        +df2.format(amountinpeso)+".");
        System.out.println("\n");
        System.out.println("\tEnd of Program");
        System.out.println();
       }
  }

Loan Interest Solver in Java


Write a program to compute the loan interest using the following formula.

Formula:

Interest = (Principal * Rate * Time)/100

If you like my work please click the ads on my website to support my work. I will really appreciate your help. 

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.

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

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com


Program Listing

package interest_rate;
 import java.util.Scanner;
 import java.text.DecimalFormat;
/**
 * Interest_Rate.java
 * Author : Mr. Jake R. Pomperada,MAED-IT
 * Date   : February 19, 2019   Tuesday
 * http://www.jakerpomperada.com
 * jakerpomperada@jakerpomperada.com 
 * jakerpomperada@gmail.com
 */

public class Interest_Rate {
      private static DecimalFormat df2 = new DecimalFormat(".##");
   public static void main(String[] args) {
        double principal=0.00, rate=0.00, time=0.00;
        Scanner input = new Scanner(System.in);
        System.out.println();
        System.out.print("\tLoan Interest Solver");
        System.out.println("\n");
        System.out.print("\tEnter Principal Amount : PHP ");
        principal = input.nextDouble();
        System.out.print("\tEnter Rate of interest : ");
        rate= input.nextDouble();
        System.out.print("\tEnter Time period      : ");
        time = input.nextFloat();
        double interest_rate = (rate * time * principal) / 100;
        System.out.println();
        System.out.print("\tThe Amount of Interest is : PHP " + df2.format(interest_rate));
        System.out.println("\n");
        System.out.println("\tEnd of Program");
        System.out.println();
   }
    
}