Installing and configuring Java JDK and Netbeans 8.1 in Linix Ubuntu 16.04 (LTS)

Installing and configuring Java JDK and Netbeans 8.1 in Linix Ubuntu 16.04 (LTS)
Tutorial Title: Installing and configuring JDK  (Java Development Kit) and Netbeans 8.1 in Linix Ubuntu 16.04 (LTS)

Course: Programming

Instructor: Muhammad Samim
Note: Copy and paste commands in terminal after dollar sign ($)


Part 1. Installing JDK (Java Development Kit)
  1. Download jdk-8u101-linux-x64.tar.gz (64 bit or 32 bit depends on your installed OS) from bellow link
  2. http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
  3. Open terminal or press Ctrl + Alt + t to open terminal
  4.  command for home folder $ cd ~
  5. opening Downloads folder where is downloaded file $ cd Downloads/
  6. Show files and folders $ ls
  7. Extracting zip file $ tar -zxvf jdk-8u101-linux-x64.tar.gz
  8. After extraction folder will be appeared (jdk1.8.0_101)
  9. Creating folder $ sudo mkdir /usr/lib/ java
  10. Should be in Downloads folder where file is extracted $ cd ~
  11. $ cd Downloads/
  12. Moving folder to created java folder $ mv jdk1.8.0_101 /usr/lib/java
  13. Now open .bashrc file to save path of Java
  14. $ cd ~
  15. $ sudo gedit .bashrc
  16. Copy and paste bellow two lines at the end and save file
  17. export JAVA_HOME=/usr/lib/java/jdk1.8.0_101
    export PATH="$PATH:$JAVA_HOME/bin"
 Part 2: Installing Netbeans 8.1

  1. Download netbeans-8.1-linux.sh file from bellow line 
  2. http://netbeans.org/downloads/start.html?platform=linux&lang=en&option=all
  3. Come to home dir $ cd ~
  4. Open Downloads where netbeans-8.1-linux.sh is downloaded $ cd Downloads/
  5. $ sudo chmod 777 netbeans-8.1-linux.sh
  6. Installation Wizard will be appeared
  7. Follow the instruction 
  8. After installation Netbeans IDE will be able to execute your java programs

Program for Electricity Billing System in C-Language

Tutorial Title: Program for Electricity Billing System in C-Language

First 200 units / unit price = Rs 4
Acceding from 200 units next 200 unites / unit price = Rs 6
Acceding from 400 units / unit price = Rs 8
Note:  Range of price and unit can be changed

Course: Programming

Instructor: Muhammad Samim

Note: Do not copy code from here may be it does not work due to font style coding.
Download Code Here

Code for understanding:
#include<stdio.h>
#include<conio.h>

int main()
{
float a; // Making variable "a" to store consumed units
printf("Please Enter consumed Units:   ");
scanf("%f",&a); // Storing input units (any number) in variable "a"
if (a<=200) // If unites are less than or equal to 200 then
printf("\n\nTotal units price = %2.2f:\n\n",a*4); //What number will be in variable "a" will be
                                                                                       multiply with 4 and result will be shown

        else if (a<=400) // If units are less than or equal to 300 then
printf("\n\nTotal units price = %2.f:\n\n",(a-200)*6+200*4); //200 units will be minus from
                                                                                                         variable "a" and remaining
                                                                                                         units will be multiplied  with 6, 
                                                                                                         200 units will be multiplied with 
                                                                                                         4 and the result will be added with
                                                                                                         previous result  according to
                                                                                                         DMAS
else if (a>400) // If units are greater than 400 then
printf("\n\nTotal units price = %2.f:\n\n",(a-400)*8+200*4+200*6); //400 units will be minus
                                                                                                                     from variable "a"
                                                                                                                     and remaining units will be
                                                                                                                     multiplied with 8, 200 units
                                                                                                                     will be multiplied with
                                                                                                                     4,  200 units will be
                                                                                                                     multiplied with 6 and all
                                                                                                                     results will be sum 
                                                                                                                     according to DMAS

getch ();
}










Configuration OpenGL with Dev C++

Tutorial Title: Configuration OpenGL with Dev C++ along links of DevC++ and glutming

Course: Programming

Instructor: Muhammad Samim

1. Download the Dev-C++

2. Link for DevC++ 5.4.1 MinGW 4.7.2
http://www.mediafire.com/download/y68w0005s1yq452/Dev-Cpp+5.4.1+MinGW+4.7.2+Setup.rar

3. Install Dev-C++ in your system


5. Download zip file from http://chortle.ccsu.edu/Bloodshed/glutming.zip

6. Extract glutming zip folder

7. We need only 3 files in this folder

i. glut.h

ii. libglut32.a

iii. glut32.dll

8. Now go to folder “glutming” then “GLUTMingw32” then “Include” then “GL” and copy file “glut” then go to Drive “C” (Where your devc++ was installed) then “Program files” then “Dec-cpp” then “MinGW12” then “Include” then “GL” and paste file “glut”.

9. Now go to folder “glutming” then “GLUTMingw32” then “lib” and copy file “libglut32.a” then go to Drive “C” (Where your devc++ was installed) then “Program files” then “Dec-cpp” then “MinGW12” then “lib” and paste file “libglut32.a”

10. Now go to folder “glutming” then “GLUTMingw32” then copy file “glut32.dll” then go to Drive “C” then “Windows” then “System32” and paste “glut32.dll”

11. Note: in Step 10, For 64bit windows go to “C” then “Windows” then “SysWOW32” and paste file “glut32.dll”

12. Now open Dev-c++ application Now go to “Tools’ Then “Compiler Option” and Check “Add the following commands when calling the compiler” and Type (Add the linker) in empty box “-lglu32 -lglut32 -lopengl32” then click on “Ok”


Tutorial Title: Downloading, Installing and running Python IDE on Microsoft Windows

Tutorial Title: Downloading, Installing and running Python IDE on Microsoft Windows
Tutorial Title: Downloading, Installing and running Python IDE on Microsoft Windows

Course: Programming

Instructor: Muhammad Samim

Note: ">>" Indicates to select or open



  1. Open your browser and go to www.python.org
  2. >>Downloads >> Windows
  3. Click on Python latest version to download
  4. Open downloaded Python IDE setup file
  5. Check the box of "Add Python to PATH" >> Install Now >> Yes>> Close
  6. Press windows key + r (to open the Run program)
  7. Type CMD and press enter
  8. Type Python in CMD and press enter to start your coding !

How to make VHD (Virtual Hard Drive) to install two windows in one drive

How to make VHD (Virtual Hard Drive) to install two windows in one drive
Tutorial Title: How to make VHD (Virtual Hard Drive) to install two windows in one drive

Course: MCITP (Windows)

Instructor: Muhammad Samim

Note: ">>" Indicates to select or open




1. Press Windows button + R to open Run
2. diskpart Enter
3. list volume Enter
4. select volume 5 (5 is an example select flash disk volume number) Enter
5. format fs=ntfs quick Enter
6. active Enter
7. exit Enter
8. Copy Windows 7, 8, 8.1 or 10 and paste in flash disk
9. Restart your computer
10. Select flash disk in boot menu
11. The installation will be begun!