List of Operating System Emulators

Unix Emulator: 

  • Cygwin: is a software availabe for Microsoft Windows, which provides a POSIX environment and system libraries (contained in cygwin.dll). This does not allow one to run unaltered Linux/Unix binaries. However, it allows use of the gcc compiler collection to compile software written for these operating systems from source code.
  • Users can use it to perform C, C++ and Scripting Programs.
  • Some programs such as Python and Perl may require libraries.

Windows

:

  • WINE: Available for most Unix like operating systems, such as Linux, BSD, and macOS . It provides a Win32 like functionality in which many windows softwares can be installed including supported video games. PlayOnLinux provides custom Windows configurations for playing a very large list of videogames.

Terminal Emulators
  • PuTTY is a free and open source terminal emulator and network file transfer application. It supports several network protocols, including SCP, SSH, Telnet, rlogin, and raw socket connection. It can also connect to a serial port. It is a free implementation of SSH and Telnet for Windows and Unix platforms, along with an xterm terminal emulator.

List of Video Game Emulators

 

Atari 2600

Nintendo Entertainment System (NES) & Super Nintendo Entertainment System (SNES):
  • Mesen is an emulator for multiple operating systems including Windows, Linux and macOS. It supports NES, SNES, Game Boy (Color), Game Boy Advance, PC Engine and SMS/Game Gear games.
  • Bsnes is an open source SNES emulator for Multiple OS like  Windows, Mac, Linux, Android and IOS devices. Here you can also find some roms to play.
Nintendo 64 (N64) :
  • Project64 : is a free and open-source emulator for the Nintendo 64 and Nintendo 64 Disk Drive currently only for Windows.
  • Mupen64Plus is a cross-platform plugin-based N64 emulator which is capable of accurately playing many games. 
Playstation emulators

1.Playstation 1:
  • epsxe  is a free emulator for multiple operating systems including Windows, Linux, macOS and Android. 
2.  Playstation 2:
  • pcsx2 is a free emulator for multiple operating systems including Windows, Linux, macOS and Android. But you have to dump your own PS2 bios since it is a proprietary Software.
3. Playstation 3: 
  • RPCS3 is a free emulator for multiple operating systems including Windows, Linux and macOS. Download all required utilities for the proper functioning of the software.
4. Playstation Portable (PSP):
  • PPSSPP PPSSPP can run your PSP games on your PC or Android phone in full HD resolution or even higher. It can also upscale textures, enable post-processing shaders and other effects

Disclaimer : We do not host any softwares, we just provide links with which the user can download the softwares at their own risk.

Python App to Add, Subtract, Multiply and Divide Two Numbers using Tkinter

import tkinter as tk

from tkinter import messagebox 

def check_entry():

     if entry1.get() == "" or entry2.get() == "":

        messagebox.showinfo("Information","Enter Both Numbers") 

    

def add_numbers():

    check_entry() 

    num1 = int(entry1.get())

    num2 = int(entry2.get())

    result = num1 + num2

    result_label.config(text=f"Result: {result}")

def sub_numbers():

    check_entry() 

    num1 = int(entry1.get())

    num2 = int(entry2.get())

    result = num1 - num2

    result_label.config(text=f"Result: {result}")

def mul_numbers():

    check_entry() 

    num1 = int(entry1.get())

    num2 = int(entry2.get())

    result = num1 * num2

    result_label.config(text=f"Result: {result}")

def div_numbers():

    check_entry() 

    num1 = int(entry1.get())

    num2 = int(entry2.get())

    if num1==0 or num2==0:

        messagebox.showinfo("Information","Enter Numbers greater than Zero")

    else:

        result = num1 / num2

        result_label.config(text=f"Result: {result}")

# Create the main window

window = tk.Tk()

window.title("Number Adder")


# Create labels and entry fields

label1 = tk.Label(window, text="Enter the first number:")

label1.grid(row=0, column=0)

entry1 = tk.Entry(window)

entry1.grid(row=0, column=1)


label2 = tk.Label(window, text="Enter the second number:")

label2.grid(row=1, column=0)

entry2 = tk.Entry(window)

entry2.grid(row=1, column=1)


# Create a button to add the numbers

add_button = tk.Button(window, text="Add", command=add_numbers)

add_button.grid(row=2, column=0)

sub_button = tk.Button(window, text="Subtract", command=sub_numbers)

sub_button.grid(row=2, column=1)

mul_button = tk.Button(window, text="Multiply", command=mul_numbers)

mul_button.grid(row=3, column=0)

div_button = tk.Button(window, text="Divide", command=div_numbers)

div_button.grid(row=3, column=1)


# Create a label to display the result

result_label = tk.Label(window, text="")

result_label.grid(row=4, columnspan=2)


# Start the event loop

window.mainloop()

Credits : Inspired and partly Generated by Gemini AI

Python GUI sample using Tkinter

This is a sample program for Python GUI using tkinter

Python program to find palindrome

python program to find palindrome using reverse string method 

str=input('Enter a String : ')

a=str
rev=a[::-1]

print('Given String : ',str)
print('Reversed String : ',rev)

if(str==rev):
    print('Result : Palindrome')
else:
    print('Result : Not Palindrome')

Python program to find greatest of three numbers



num1=int(input('Enter Number 1 \t: '))
num2=int(input('Enter Number 2 \t: '))
num3=int(input('Enter Number 3 \t: '))

if(num1>num2) & (num1>num3):
    print('Number 1 is Greater \t= ', num1)

elif(num2>num1) & (num2>num3):
    print('Number 2 is Greater \t= ', num2)

elif(num3>num1) & (num3>num2):
    print('Number 3 is Greater \t= ', num3)

else:
    print('Enter a different number')

Installing Python

1. To install Python in Windows
Step 1 : go to python.org
Step 2 : Download the installer.
Step 3 : Double click on the installer and follow the instructions.

Some known issues in Windows:
windows OS may sometime require Visual Studio runtime, which can be downloaded from  VC++ runtime

2. To install in Debian based Linux
Python is already installed in most linux os if its not then
Step 1 : open terminal, switch to sudo
Step 2 : type 'sudo apt-get  install python3'
Step 3 : type 'sudo apt-get  install idle3' to install python IDLE



Arithmetic using List

simple arithmetic using List to store the results




num1=int(input('Enter Number 1 \t: '))
num2=int(input('Enter Number 2 \t: '))

sum=num1+num2
diff=num1-num2
mul=num1*num2
div=num1/num2

arith=[sum,diff,mul,div]

print('The Sum is \t\t= \t', arith[0])
print('The Difference is \t= \t', arith[1])
print('The Product is \t\t= \t', arith[2])
print('The Division is \t= \t', arith[3])

Python prog to find Odd or Even

Python program to find Odd or Even




num=int(input('Enter a Number\t: '))

if(num%2==0):
    print('The given number ',num,' is an Even Number')
else:
    print('The given number ',num,' is an Odd Number')

Simple calculator using Python

Simple Artihmetic calculator using python using if-else statement



num1=int(input('Enter Number 1 \t: '))
num2=int(input('Enter Number 2 \t: '))
print('1. Addition')
print('2. Subtraction')
print('3. Multiplication')
print('4. Division')

choice=input('Enter a choice, Press Q to quit : ')

if(choice)=='1':
    sum=num1+num2   
    print('The Sum is \t\t= \t', sum)
elif(choice)=='2':
    diff=num1-num2
    print('The Difference is \t= \t', diff)
elif(choice)=='3':
    mul=num1*num2
    print('The Product is \t\t= \t', mul)
elif(choice)=='4':
    div=num1/num2
    print('The Division is \t= \t', div)
elif(choice=='q' or choice=='Q'):
    print('Exiting...')
else:
    print('Enter a valid choice')

Copy large files in pendrive

Note: Before you try this, backup your data first, i cannot guarantee about the data

To copy a large file into pendrive, first make sure that the drive has sufficient memory and then the following steps are suitable only for Windows 7 or greater operating  systems

Step 1:
Right click the device and click "Format"

Step 2: 
In this menu select File System as NTFS and click start, 


It will format the USB disk with NTFS file system and it will let you copy files greater than 2GBs or so.

How to convert a Mac drive(GPT) to Windows (MBR) using command prompt

So, you have used a USB device to install Mac OS, and when you plug it in a Windows OS, it will show you either one of the following

  • To format the drive
  • Even after formatting, the size will be less like for instance for a 32GB pendrive the available memory will only be 5GB or so.
  • Sometimes, the device will not be shown in "My Computer"
In that what will you do? How can you recover that extra space?

Note: Before you try this, backup your data first, this is for educational purpose only, we are not liable to any damage to drives.

Windows has a command in Command Prompt called "DISKPART"!
Using this, you can convert your GPT table that is in Mac drive format to MBR table that is in Windows drive format.

Step 1:
Click Start -> Run -> Type "cmd" (without quotes), it will open command window.

Step 2:
Type DISKPART and in diskpart prompt, type LIST DISK
it will display a list of available devices
for instance:
DISKPART> LIST DISK
     Disk ###    Status       Size        Free     Dyn   Gpt
     ----------          --------          ------           -----     -----  ------
     Disk 0          Online       466 GB      0 B
     Disk 1          Online        5.8 GB      0 B
Step 3: 
Select the disk by typing SELECT DISK and disk number in our case its Disk 1, the usb disk
DISKPART> SELECT DISK 1
Disk 1 is now the selected disk.

Step 4:
Type CONVERT MBR 
if that fails 
Type CLEAN
whole table will be cleaned

and if you check the device it will be in windows drive format.

do.. while loop and switch statement using C++

A sample C++ program to demonstrate the use of  a "do... while" loop and a "switch" statement
A program in c++ which accepts two integer values and performs addition, subtraction, multiplication and division using a switch statement, while keeping it in a loop

#include<iostream.h>
#include<conio.h>
void main()
{
int a,b,choice;         // declaration

clrscr();

cout<<"The value of A is ="<<endl;
cin>>a;                        // value of A is entered & stored
cout<<"The value of B is ="<<endl;
cin>>b;                        // value of B is entered & stored
do                               // loop begins
{
cout<<"1. Addition"<<endl;
cout<<"2. Subtraction"<<endl;
cout<<"3. Multiplication"<<endl;
cout<<"4. Division"<<endl;
cout<<"5. Exit Program"<<endl;
cout<<"Enter Your Choice , Hit 5 to Quit"<<endl;
cin>>choice;
   switch(choice)                            //switch statement begins
   {
case 1 : cout<<"Sum of A & B is ="<<a+b<<endl;                 // Addition
 break;

case 2 : cout<<"Difference of A & B is ="<<a-b<<endl;        // Subtraction
 break;

case 3 : cout<<"Product of A & B is ="<<a*b<<endl;          // Multiplication
 break;

case 4 : cout<<"Division of A & B is ="<<a/b<<endl;           // Division
 break;

default : cout<<"Enter a valid choice "<<endl;
  break;

   }

}while(choice != 5);                                    // if choice is greater than 5, program ends along with loop
}

C++ Program to add,subtract, multiply and divide two numbers

C++ Program to add,subtract, multiply and divide two numbers 

#include<iostream.h>
#include<conio.h>
main()
{
int a,b,add,sub,mul,div;            // declaration statement
        clrscr();
cout<<"The value of A is =";
cin>>a;               // value of A is entered & stored
cout<<"The value of B is =";
cin>>b;               // value of B is entered & stored

add=a+b;              // Addition of A & B
sub=a-b;              // Difference of A & B
mul=a*b;              // Product of A & B 
div=a-b;              // Division of A & B
cout<<"Sum of A & B is "<<add;   
cout<<"Difference of A & B is "<<sub;
cout<<"Product of A & B is "<<mul;
cout<<"Division of A & B is "<<div;
        getch();
}

Patterns in C using nested for loop

C program to print the following pattern

*
**
***
****
*****


#include<stdio.h>
void main()
{
int   i,  j ,  n;
        clrscr();

printf("Enter the number of rows \n");
scanf("%d",&n);

for(i=0;i<=n;i++)
   {
           for(j=1;j<=i;j++)
         {
             printf("*");
         }
      printf("\n");
   }
      getch();
}

C program to print a pattern using nested for loop

C program to print the following pattern

 

*****

****
***
**
*


#include<stdio.h>
void main()
{
 int   i,  j ,  n;

        clrscr();

 printf("Enter the number of rows \n");
 scanf("%d",&n);

    for(i=0;i<=n;i++)
    {
            for(j=i;j<=n;j++)
           {
                  printf("*");
              }
       printf("\n");
    }
getch();
}


Adding, Subtracting, Multiplication & Division of two numbers in Python

One of the greatest things about python language is its simplicity, consider adding two numbers in any other language you need to define variables, assign values etc., but python simplifies everything.

Open python shell , click File and select New File
and in a new file type the following code.


n1 = input("Enter number 1 : ")
n2 = input("Enter number 2 : ")
n3 = n1 + n2
print("The sum is ",n3)


Click "Run" and select "Run Module" or if you are a pro just hit "F5"
The output will be somewhat like this
>>>
Enter number 1 : 6
Enter number 2 : 6
The sum is  66

And what went wrong???  instead of adding two numbers its just concatenated!
 that's because python takes every value as "A STRING",
so we need to change the string to integer, how can this be done????
Simple, we convert string value using "int( )"

Open the python file and modify the following 

n3 = int(n1) + int(n2)

Save the file using "Ctrl + S"
Hit "F5"

The output will be somewhat like this
>>>
Enter number 1 : 6
Enter number 2 : 6
The sum is  12

and for subtraction set n3=int(n1)-int(n2), for multiplication set n3=int(n1)*int(n2) and division set n3=int(n1)/int(n2)

Drawing in Python

Drawing using turtle in python
Open python shell , click File and select New File
and in a new file type the following code.
------------------------------------------------
import turtle                                  # imports the turtle library
naS=input("Enter No.of sides")     #specifies the no of sides
nS=int(naS)
for i in range(nS) :                         # for iteration begins
    turtle.color('green')                    # remember to use the indentation until the end of iteration
    turtle.forward(100)                   # draws a line forward
    turtle.right(360/nS)                   # turns right and nS specifies the no of sides

Hit "F5" Sample Output for 5 Sides
>>>Enter No.of sides 5

Patterns in Java

various pattern programs in java using nested for loops


public class Pattern {

      public static void main(String[] args) {
           
            int i,j;
            for(i=0;i<=10;i++){
                  for(j=0;j<=i;j++){
                        System.out.print(i);
                  }
                  System.out.println();
            }
           
      }

}

0
11
222
3333
44444
555555
6666666
77777777
888888888
9999999999
1010101010101010101010


--------------------------
public class Pattern {

      public static void main(String[] args) {
           
            int i,j;
            for(i=0;i<=10;i++){
                  for(j=i;j<=10;j++){
                        System.out.print(i);
                  }
                  System.out.println();
            }
           
      }

}
00000000000
1111111111
222222222
33333333
4444444
555555
66666
7777
888
99
10

--------------------------

public class Pattern {

      public static void main(String[] args) {
           
            int i,j;
            for(i=0;i<=10;i++){
                  for(j=i;j<=10;j++){
                        System.out.print(j);
                  }
                  System.out.println();
            }
           
      }

}
0 1 2 3 4 5 6 7 8 9 10
 1 2 3 4 5 6 7 8 9 10
 2 3 4 5 6 7 8 9 10
 3 4 5 6 7 8 9 10
 4 5 6 7 8 9 10
 5 6 7 8 9 10
 6 7 8 9 10
 7 8 9 10
 8 9 10
 9 10
 10


--------------------------


public class Pattern {

      public static void main(String[] args) {
           
            int i,j;
            for(i=0;i<=10;i++){
                  for(j=1;j<=i;j++){
                        System.out.print(j);
                  }
                  System.out.println();
            }
           
      }

}

1
12
123
1234
12345
123456
1234567
12345678
123456789
12345678910