Posts

Showing posts from March, 2016

Intermediate Code Generation > C Program

Intermediate Code Generation > C Program System Programming and Compiler Construction Program: #include<stdio.h> #include<conio.h> #include<string.h> char op[2],arg1[5],arg2[5],result[5]; void main() {   FILE *fp1,*fp2;   fp1=fopen("input.txt","r");   fp2=fopen("output.txt","w");   while(!feof(fp1))   {

To create and use program Libraries in Linux > C Program

To create and use program Libraries in Linux > C Program System Programming and Compiler Construction main.c #include<stdio.h> #include<math.h> #include "shared.h" int main() { double result=5.0; result=factorial(result); printf("\n The factorial is [%g] \n",result); return 0; }

Telnet Configuration > Network Programming

Image
Telnet Configuration Network Programming [root@localhost ~]# ifconfig eth0      Link encap:Ethernet  HWaddr 00:0C:29:FD:19:13             inet addr:172.20.101.50  Bcast:172.20.101.255  Mask:255.255.255.0           inet6 addr: fe80::20c:29ff:fefd:1913/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:8768 errors:0 dropped:0 overruns:0 frame:0           TX packets:856 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:0            RX bytes:1055718 (1.0 MiB)  TX bytes:65114 (63.5 KiB) lo        Link encap:Local Loopback             inet addr:127.0.0.1  Mask:255.0.0.0           inet...

Deadlock Detection > Java Program

Deadlock Detection > Java Program Distributed Databases Program: import java.util.Scanner; /**  *  * @author PRATHAMESH PANDIT  */ public class DeadlockDD {         public static void main(String[] args) {         // TODO code application logic here         Scanner sc = new Scanner(System.in);

Program to design and implement Macro > Assembly Program

Image
Program to design and implement Macro  > Assembly Program System Programming and Compiler Construction Program 1: macro.c #include<stdio.h> #include<conio.h> #include<string.h> struct mnt { int sr; char mn[30]; int mdtc; int p; }ntab[10];

To Develop App demonstrating transfer of Data between multiple Activities > Android App Development

Image
To Develop App demonstrating transfer of Data between multiple Activities > Android App Development Mobile Communication and Computing Programs:

To create Basic Calculator App > Android App Development

Image
To Develop Basic Calculator App > Android  Mobile Computation and Computing PROGRAM: MainActivity.java

To implement Shift Reduce Parser > C Program

Image
To Implement Shift Reduce Parser > C Program System Programming and Compiler Construction  Program:

To implement Recursive Descent Parser > C Program

Image
To implement Recursive Descent Parser > C Program System Programming and Compiler Construction  Program: #include"stdio.h" #include"conio.h" #include"string.h" #include"stdlib.h" #include"ctype.h"

To implement a Midlet that shows a Bouncing Ball > Java ME Program

Image
To implement a Midlet that shows a Bouncing Ball > Java ME Program Mobile Communication and Computing Program: package mobileapplication1; import java.util.Timer; import java.util.TimerTask; import javax.microedition.lcdui.Canvas; import javax.microedition.lcdui.Command; import javax.microedition.lcdui.CommandListener; import javax.microedition.lcdui.Display; import javax.microedition.lcdui.Displayable; import javax.microedition.lcdui.Graphics; import javax.microedition.midlet.*; public class Midlet_2 extends MIDlet {     Display d;         MyCanvas m;      Timer t;     MyTask mt;     int x=10,y=10;     int xiner=1,yiner=1;     Command start, stop;      Command c;

To change color of a shape using Timer > Java ME Program

Image
To change color of a shape using Timer > Java ME Program Mobile Communication and Computing Program: package prat; import java.util.*; import javax.microedition.lcdui.*; import javax.microedition.midlet.*; public class Midlet extends MIDlet { Display d; MyCanvas m; Command rect; Timer t; MyTask mt; public void startApp() {

To develop menu based application to draw shapes > Java ME Program

Image
To develop menu based application to draw shapes > Java ME Program Mobile Communication and Computing Program: package mobileapplication1; import javax.microedition.lcdui.*; import javax.microedition.midlet.*; public class Midlet extends MIDlet {     Display d;     DrawCan dv;     public void startApp(){