<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>program | Student Projects</title>
	<atom:link href="https://studentprojects.in/tag/program/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Sat, 09 Jun 2012 08:49:58 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>Verilog HDL Program for 3-8 ENCODER</title>
		<link>https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-3-8-encoder/</link>
					<comments>https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-3-8-encoder/#respond</comments>
		
		<dc:creator><![CDATA[Ansten Lobo]]></dc:creator>
		<pubDate>Sat, 02 Jun 2012 10:05:33 +0000</pubDate>
				<category><![CDATA[Verilog HDL]]></category>
		<category><![CDATA[verilog]]></category>
		<category><![CDATA[program]]></category>
		<category><![CDATA[3-8 ENCODER]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=3030</guid>

					<description><![CDATA[<p>An encoder is a device, circuit, transducer, software program, algorithm or person that converts information from one format or code to another, for the purposes of standardization, speed, secrecy, security, or saving space by shrinking size. module encoder83(o,i); output [2:0]o; input [7:0]i; wire x,y,k,l,m; or1 u1(x,i[5],i[4]); or1 u2(y,i[7],i[6]); or1 u3(o[2],x,y); or1 u4(k,i[3],i[2]); or1 u5(o[1],y,k); or1</p>
<p>The post <a href="https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-3-8-encoder/">Verilog HDL Program for 3-8 ENCODER</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>An encoder is a device, circuit, transducer, software program, algorithm or person that converts information from one format or code to another, for the purposes of standardization, speed, secrecy, security, or saving space by shrinking size.</p>
<pre lang="VHDL" line="1">
module encoder83(o,i);
    output [2:0]o;
    input [7:0]i;
    wire x,y,k,l,m;
    or1 u1(x,i[5],i[4]);
    or1 u2(y,i[7],i[6]);
    or1 u3(o[2],x,y);
    or1 u4(k,i[3],i[2]);
    or1 u5(o[1],y,k);
    or1 u6(l,i[7],i[5]);
    or1 u7(m,i[3],i[1]);
    or1 u8(o[0],l,m);
endmodule
</pre>
<figure id="attachment_3031" aria-describedby="caption-attachment-3031" style="width: 615px" class="wp-caption aligncenter"><img decoding="async" src="https://studentprojects.in/wp-content/uploads/2012/06/Simulated-waveform-for-3-8-Encoder.jpg" alt="Simulated waveform for  3-8 Encoder" title="Simulated waveform for  3-8 Encoder" width="615" height="99" class="size-full wp-image-3031" /><figcaption id="caption-attachment-3031" class="wp-caption-text">Simulated waveform for  3-8 Encoder</figcaption></figure><p>The post <a href="https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-3-8-encoder/">Verilog HDL Program for 3-8 ENCODER</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/verilog-hdl/verilog-hdl-program-for-3-8-encoder/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Java program to display Local machines IP Address</title>
		<link>https://studentprojects.in/software-development/java/java-programs/advanced/java-program-to-display-local-machines-ip-address/</link>
					<comments>https://studentprojects.in/software-development/java/java-programs/advanced/java-program-to-display-local-machines-ip-address/#comments</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Fri, 30 Apr 2010 05:51:24 +0000</pubDate>
				<category><![CDATA[Advanced programs]]></category>
		<category><![CDATA[Local machines IP Address]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[program]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=1168</guid>

					<description><![CDATA[<p>Program : To display Local machines IP Address By : Kapil Lohia import java.net.*; import java.io.*; public class ip_localmachine { public static void main(String args[]) throws Exception { InetAddress ipadd =InetAddress.getLocalHost(); System.out.println("Host and Address :"+ipadd); System.out.println("Host name :"+ipadd.getHostName()); String n=ipadd.toString(); System.out.println("IP address :"+n.substring(n.indexOf("/")+1)); } }</p>
<p>The post <a href="https://studentprojects.in/software-development/java/java-programs/advanced/java-program-to-display-local-machines-ip-address/">Java program to display Local machines IP Address</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Program : To display Local machines IP Address<br />
By : Kapil Lohia </p>
<pre lang="java">
import java.net.*;
import java.io.*;

public class ip_localmachine
{
	public static void main(String args[]) throws Exception
	{
		InetAddress ipadd =InetAddress.getLocalHost();
		System.out.println("Host and Address :"+ipadd);
		System.out.println("Host name :"+ipadd.getHostName());

		String n=ipadd.toString();
		System.out.println("IP address :"+n.substring(n.indexOf("/")+1));
	}
}
</pre><p>The post <a href="https://studentprojects.in/software-development/java/java-programs/advanced/java-program-to-display-local-machines-ip-address/">Java program to display Local machines IP Address</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/java/java-programs/advanced/java-program-to-display-local-machines-ip-address/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>C++ program to solve the single source shortest path problem Using Dijkstra’s algorithm</title>
		<link>https://studentprojects.in/software-development/cpp/cpp-programs/cpp-data-structure/c-program-to-solve-the-single-source-shortest-path-problem-using-dijkstra%e2%80%99s-algorithm/</link>
					<comments>https://studentprojects.in/software-development/cpp/cpp-programs/cpp-data-structure/c-program-to-solve-the-single-source-shortest-path-problem-using-dijkstra%e2%80%99s-algorithm/#comments</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Thu, 11 Mar 2010 17:09:21 +0000</pubDate>
				<category><![CDATA[Data structure]]></category>
		<category><![CDATA[Dijkstra’s algorithm]]></category>
		<category><![CDATA[Shortest path]]></category>
		<category><![CDATA[program]]></category>
		<category><![CDATA[Source Codes]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=1026</guid>

					<description><![CDATA[<p>/* Write a C++ program to solve the single source shortest path problem using Dijkstra’s algorithm */ #include #include #include using namespace std; int shortest(int ,int); int cost[10][10],dist[20],i,j,n,k,m,S[20],v,totcost,path[20],p; main() { int c; cout n; cout m; cout > j >>c; cost[i][j]=c; } for(i=1;i</p>
<p>The post <a href="https://studentprojects.in/software-development/cpp/cpp-programs/cpp-data-structure/c-program-to-solve-the-single-source-shortest-path-problem-using-dijkstra%e2%80%99s-algorithm/">C++ program to solve the single source shortest path problem Using Dijkstra’s algorithm</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>/* Write a C++ program to solve the single source shortest path problem using Dijkstra’s algorithm */</p>
<pre lang="cpp">
#include<iostream>
#include<conio.h>
#include<stdio.h>
using namespace std;
int shortest(int ,int);
int cost[10][10],dist[20],i,j,n,k,m,S[20],v,totcost,path[20],p;
main()
{
int c;
cout <<"enter no of vertices";
cin >> n;
cout <<"enter no of edges"; 
cin >>m;
cout <<"\nenter\nEDGE Cost\n";
for(k=1;k<=m;k++)
{
cin >> i >> j >>c;
cost[i][j]=c;
}
for(i=1;i<=n;i++)
for(j=1;j<=n;j++)
if(cost[i][j]==0)
cost[i][j]=31999;
cout <<"enter initial vertex";
cin >>v;
cout << v<<"\n";
shortest(v,n);
 }

int shortest(int v,int n)
{
int min;
for(i=1;i<=n;i++)
{
S[i]=0;
dist[i]=cost[v][i];
}
path[++p]=v;
S[v]=1;
dist[v]=0;
for(i=2;i<=n-1;i++)
{
k=-1;
min=31999;
for(j=1;j<=n;j++)
{
if(dist[j]<min &#038;&#038; S[j]!=1)
{
min=dist[j];
k=j;
} 
}
if(cost[v][k]<=dist[k])
p=1;
path[++p]=k;
for(j=1;j<=p;j++)
cout<<path[j];
cout <<"\n";
//cout <<k;
S[k]=1;
for(j=1;j<=n;j++)
if(cost[k][j]!=31999 &#038;&#038; dist[j]>=dist[k]+cost[k][j] && S[j]!=1)
 dist[j]=dist[k]+cost[k][j];
}
}
</pre>
<p><strong>OUTPUT</strong></p>
<p>enter no of vertices6<br />
enter no of edges11</p>
<p>enter<br />
EDGE Cost<br />
1 2 50<br />
1 3 45<br />
1 4 10<br />
2 3 10<br />
2 4 15<br />
3 5 30<br />
4 1 10<br />
4 5 15<br />
5 2 20<br />
5 3 35<br />
6 5 3<br />
enter initial vertex1<br />
1<br />
14<br />
145<br />
1452<br />
13</p><p>The post <a href="https://studentprojects.in/software-development/cpp/cpp-programs/cpp-data-structure/c-program-to-solve-the-single-source-shortest-path-problem-using-dijkstra%e2%80%99s-algorithm/">C++ program to solve the single source shortest path problem Using Dijkstra’s algorithm</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/cpp/cpp-programs/cpp-data-structure/c-program-to-solve-the-single-source-shortest-path-problem-using-dijkstra%e2%80%99s-algorithm/feed/</wfw:commentRss>
			<slash:comments>12</slash:comments>
		
		
			</item>
		<item>
		<title>Java Program for calculator</title>
		<link>https://studentprojects.in/software-development/java/java-programs/advanced/java-program-for-calculator/</link>
					<comments>https://studentprojects.in/software-development/java/java-programs/advanced/java-program-for-calculator/#comments</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Thu, 03 Dec 2009 11:41:13 +0000</pubDate>
				<category><![CDATA[Advanced programs]]></category>
		<category><![CDATA[calculator]]></category>
		<category><![CDATA[java calculator]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[program]]></category>
		<category><![CDATA[download codes]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=971</guid>

					<description><![CDATA[<p>JPanel p = new JPanel();<br />
    p.setLayout(new GridLayout(4, 4));<br />
    String buttons = "789/456*123-0.=+";<br />
    for (int i = 0; i < buttons.length(); i++)
      addButton(p, buttons.substring(i, i + 1));
    add(p, "Center");
</p>
<p>The post <a href="https://studentprojects.in/software-development/java/java-programs/advanced/java-program-for-calculator/">Java Program for calculator</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Program by Avinash Kumar Pandey</p>
<pre lang="java">
import java.awt.BorderLayout;
import java.awt.Button;
import java.awt.Container;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JApplet;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class PopupCalculatorApplet extends JApplet implements ActionListener {
  public void init() {
    Button calcButton = new Button("Calculator");
    calcButton.addActionListener(this);
    Container contentPane = getContentPane();
    contentPane.add(calcButton);
  }

  public void actionPerformed(ActionEvent evt) {
    if (calc.isVisible())
      calc.setVisible(false);
    else
      calc.show();
  }

  private JFrame calc = new CalculatorFrame();
}

class CalculatorPanel extends JPanel implements ActionListener {
  public CalculatorPanel() {
    setLayout(new BorderLayout());

    display = new JTextField("0");
    display.setEditable(false);
    add(display, "North");

    JPanel p = new JPanel();
    p.setLayout(new GridLayout(4, 4));
    String buttons = "789/456*123-0.=+";
    for (int i = 0; i < buttons.length(); i++)
      addButton(p, buttons.substring(i, i + 1));
    add(p, "Center");
  }

  private void addButton(Container c, String s) {
    JButton b = new JButton(s);
    c.add(b);
    b.addActionListener(this);
  }

  public void actionPerformed(ActionEvent evt) {
    String s = evt.getActionCommand();
    if ('0' <= s.charAt(0) &#038;&#038; s.charAt(0) <= '9' || s.equals(".")) {
      if (start)
        display.setText(s);
      else
        display.setText(display.getText() + s);
      start = false;
    } else {
      if (start) {
        if (s.equals("-")) {
          display.setText(s);
          start = false;
        } else
          op = s;
      } else {
        calculate(Double.parseDouble(display.getText()));
        op = s;
        start = true;
      }
    }
  }

  public void calculate(double n) {
    if (op.equals("+"))
      arg += n;
    else if (op.equals("-"))
      arg -= n;
    else if (op.equals("*"))
      arg *= n;
    else if (op.equals("/"))
      arg /= n;
    else if (op.equals("="))
      arg = n;
    display.setText("" + arg);
  }

  private JTextField display;

  private double arg = 0;

  private String op = "=";

  private boolean start = true;
}

class CalculatorFrame extends JFrame {
  public CalculatorFrame() {
    setTitle("Calculator");
    setSize(200, 200);

    Container contentPane = getContentPane();
    contentPane.add(new CalculatorPanel());
  }
}
</pre><p>The post <a href="https://studentprojects.in/software-development/java/java-programs/advanced/java-program-for-calculator/">Java Program for calculator</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/java/java-programs/advanced/java-program-for-calculator/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>Java program that prints all real solutions to the quadratic equation ax2+bx+c=0</title>
		<link>https://studentprojects.in/software-development/java/java-programs/basic/java-program-that-prints-all-real-solutions-to-the-quadratic-equation-ax2bxc0/</link>
					<comments>https://studentprojects.in/software-development/java/java-programs/basic/java-program-that-prints-all-real-solutions-to-the-quadratic-equation-ax2bxc0/#comments</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Fri, 02 Oct 2009 14:28:27 +0000</pubDate>
				<category><![CDATA[Basic Programs]]></category>
		<category><![CDATA[java sourcecodes]]></category>
		<category><![CDATA[ax2+bx+c=0]]></category>
		<category><![CDATA[quadratic equation]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[program]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=848</guid>

					<description><![CDATA[<p>Write a Java program that prints all real solutions to the quadratic equation ax2+bx+c=0. Read in a,b,c and use the quadratic formula.If the discriminant b2-4ac is negative, display a message stating that there are no real roots.</p>
<p>The post <a href="https://studentprojects.in/software-development/java/java-programs/basic/java-program-that-prints-all-real-solutions-to-the-quadratic-equation-ax2bxc0/">Java program that prints all real solutions to the quadratic equation ax2+bx+c=0</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Write a Java program that prints all real solutions to the quadratic equation ax2+bx+c=0. Read in a,b,c and use the quadratic formula.If the discriminant b2-4ac is negative, display a message stating that there are no real roots.</p>
<pre lang="java" escaped="true" line="1">
import java.util.Scanner;
 class solutions
{
	public static void main(String[] args)
	{
		int a,b,c;
		double x,y;
		Scanner s=new Scanner(System.in);
		System.out.println(“Enter the values of a,b, and c”);
		a=s.nextInt();
		b=s.nextInt();
		c=s.nextInt();
		int k=(b*b)-4*a*c;
		if(k<0)
		{
			System.out.println(“No real roots”);
		}
		else
		{
			double l=Math.sqrt(k);
			x=(-b-l)/2*a;
			y=(-b+l)/2*a;
			System.out.println(“Roots of given equation:”+x+” “+y);
		}
	}
} 
</pre>
<p><strong>Output:</strong></p>
<p>Enter the values of a,b,c<br />
1<br />
5<br />
6<br />
Roots of given equation:-3.0   -2.0</p>
<p>Enter the values of a, b, c<br />
1<br />
2<br />
2<br />
No real solutions</p>
<p>Enter the values of a, b, c<br />
1<br />
3<br />
2<br />
Roots of given equation: -2.0  -1.0</p><p>The post <a href="https://studentprojects.in/software-development/java/java-programs/basic/java-program-that-prints-all-real-solutions-to-the-quadratic-equation-ax2bxc0/">Java program that prints all real solutions to the quadratic equation ax2+bx+c=0</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/java/java-programs/basic/java-program-that-prints-all-real-solutions-to-the-quadratic-equation-ax2bxc0/feed/</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
			</item>
		<item>
		<title>C program to find the Shortest path for a given graph</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/c-program-to-find-the-shortest-path-for-a-given-graph/</link>
					<comments>https://studentprojects.in/software-development/c-tutorials/c/c-program-to-find-the-shortest-path-for-a-given-graph/#comments</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Sun, 20 Sep 2009 06:51:07 +0000</pubDate>
				<category><![CDATA[C Programs]]></category>
		<category><![CDATA[source code]]></category>
		<category><![CDATA[Shortest path]]></category>
		<category><![CDATA[program]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=791</guid>

					<description><![CDATA[<p>OUTPUT:<br />
enter the cost matrix :<br />
0 1 4 2 0<br />
0 0 0 2 3<br />
0 0 0 3 0<br />
0 0 0 0 5<br />
0 0 0 0 0<br />
enter number of paths : 4<br />
enter possible paths :<br />
1 2 4 5 0<br />
1 2 5 0 0<br />
1 4 5 0 0<br />
1 3 4 5 0<br />
minimum cost : 4<br />
minimum cost path :<br />
  1-->2-->5</p>
<p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/c-program-to-find-the-shortest-path-for-a-given-graph/">C program to find the Shortest path for a given graph</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>OUTPUT:<br />
enter the cost matrix :<br />
0 1 4 2 0<br />
0 0 0 2 3<br />
0 0 0 3 0<br />
0 0 0 0 5<br />
0 0 0 0 0<br />
enter number of paths : 4<br />
enter possible paths :<br />
1 2 4 5 0<br />
1 2 5 0 0<br />
1 4 5 0 0<br />
1 3 4 5 0<br />
minimum cost : 4<br />
minimum cost path :<br />
  1&#8211;>2&#8211;>5</p>
<pre lang="c" escaped="true" line="1">
#include<stdio.h>
#include<conio.h>
void main()
{
int path[5][5],i,j,min,a[5][5],p,st=1,ed=5,stp,edp,t[5],index;
clrscr();
printf("enter the cost matrix\n");
for(i=1;i<=5;i++)
for(j=1;j<=5;j++)
scanf("%d",&#038;a[i][j]);
printf("enter  number of paths\n");
scanf("%d",&#038;p);
printf("enter possible paths\n");
for(i=1;i<=p;i++)
for(j=1;j<=5;j++)
scanf("%d",&#038;path[i][j]);
for(i=1;i<=p;i++)
{
t[i]=0;
stp=st;
for(j=1;j<=5;j++)
{
edp=path[i][j+1];
t[i]=t[i]+a[stp][edp];
if(edp==ed)
break;
else
stp=edp;
}
}
min=t[st];index=st;
for(i=1;i<=p;i++)
{
if(min>t[i])
{
min=t[i];
index=i;
}
}
printf("minimum cost %d",min);
printf("\n minimum cost path ");
for(i=1;i<=5;i++)
{
printf("--> %d",path[index][i]);
if(path[index][i]==ed)
break;
}
getch();
}
</pre>
<p>OUTPUT:<br />
enter the cost matrix :<br />
0 1 4 2 0<br />
0 0 0 2 3<br />
0 0 0 3 0<br />
0 0 0 0 5<br />
0 0 0 0 0<br />
enter number of paths : 4<br />
enter possible paths :<br />
1 2 4 5 0<br />
1 2 5 0 0<br />
1 4 5 0 0<br />
1 3 4 5 0<br />
minimum cost : 4<br />
minimum cost path :<br />
  1&#8211;>2&#8211;>5</p><p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/c-program-to-find-the-shortest-path-for-a-given-graph/">C program to find the Shortest path for a given graph</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/c-tutorials/c/c-program-to-find-the-shortest-path-for-a-given-graph/feed/</wfw:commentRss>
			<slash:comments>10</slash:comments>
		
		
			</item>
	</channel>
</rss>
