<?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>download codes | Student Projects</title>
	<atom:link href="https://studentprojects.in/tag/download-codes/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Thu, 10 Mar 2022 10:36:41 +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>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[download codes]]></category>
		<category><![CDATA[program]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[java calculator]]></category>
		<category><![CDATA[calculator]]></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>Sudoku Solver using C++</title>
		<link>https://studentprojects.in/software-development/software-projects/software/sudoku-solver-using-c/</link>
					<comments>https://studentprojects.in/software-development/software-projects/software/sudoku-solver-using-c/#comments</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Thu, 20 Nov 2008 10:01:11 +0000</pubDate>
				<category><![CDATA[Software Engineering Projects]]></category>
		<category><![CDATA[C codes]]></category>
		<category><![CDATA[c graphics]]></category>
		<category><![CDATA[Sudoku Solver]]></category>
		<category><![CDATA[download codes]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=249</guid>

					<description><![CDATA[<p>You have seen it in the news papers, you have seen it in the magazines or in the web sites, you might have sat hours &#8216;n hours to solve it. Yes, it is the king of all number puzzles, it is &#8220;SUDOKU&#8221;. We bring to you the ultimate solution for all your struggles, The SUDOKU</p>
<p>The post <a href="https://studentprojects.in/software-development/software-projects/software/sudoku-solver-using-c/">Sudoku Solver using C++</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>You have seen it in the news papers, you have seen it in the magazines or in the web sites, you might have sat hours &#8216;n hours to solve it. Yes, it is the king of all number puzzles, it is &#8220;SUDOKU&#8221;.</p>
<p>We bring to you the ultimate solution for all your struggles, The SUDOKU Solver.</p>
<p>As you know, now a days mathematical puzzle-SUDOKU is in boom all over the world. Sudoku is a 9X9 matrix with nine 3&#215;3 sub-matrices, that we need to fill by entering the numbers from 1 through 9, without the repetition of the a number in the rows, columns or in the sub matrices.</p>
<figure id="attachment_250" aria-describedby="caption-attachment-250" style="width: 275px" class="wp-caption aligncenter"><img decoding="async" class="size-full wp-image-250" title="Figure: 1- Sudoku Problem" src="https://studentprojects.in/wp-content/uploads/2008/11/sudoku.gif" alt="Figure: 1- Sudoku Problem" width="275" height="218" /><figcaption id="caption-attachment-250" class="wp-caption-text">Figure: 1- Sudoku Problem</figcaption></figure>
<p>We can get the Sudoku puzzle in ease by different means, as discussed. You might have struggled a lot to solve the same. To be true, even me too. Here I developed a fast and robust package, that solves the puzzles, that are not easy to solve by hands. It will solve the Sudoku entered in fraction of a milli-second and will display the solved result.</p>
<figure id="attachment_251" aria-describedby="caption-attachment-251" style="width: 282px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" class="size-full wp-image-251" title="Figure: 2 - Sudoku Result " src="https://studentprojects.in/wp-content/uploads/2008/11/sudoku_ans.gif" alt="Figure: 2 - Sudoku Result " width="282" height="225" /><figcaption id="caption-attachment-251" class="wp-caption-text">Figure: 2 &#8211; Sudoku Result</figcaption></figure>
<p style="text-align: center;"><a href="https://studentprojects.in/wp-content/uploads/2008/11/sudoku.zip">Click here to download the executable files</a></p>
<p>When the code executes, a blank Sudoku will be displayed with 9&#215;9 red boxes. The user is needed to enter the numbers corresponding to the source puzzle (Figure 1). To enter this, user should use the arrow keys to cruse to the required box. The selected box will be highlighted with a blue boundary. You have to enter the number through the keyboard. Once you have done entering all the numbers in the puzzle just hit the &#8216;Enter&#8217; key on the keyboard till you get the solved result (Figure 2). If the Sudoku cannot be solved by this program a message will be displayed telling that the given puzzle cannot be solved.</p><p>The post <a href="https://studentprojects.in/software-development/software-projects/software/sudoku-solver-using-c/">Sudoku Solver using C++</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/software-projects/software/sudoku-solver-using-c/feed/</wfw:commentRss>
			<slash:comments>71</slash:comments>
		
		
			</item>
	</channel>
</rss>
