Showing posts with label program. Show all posts
Showing posts with label program. Show all posts

Monday, October 24, 2016

Summer Games Learn to Program



Looking for ways to engage your kids in constructive, meaningful learning? We’ve just launched Blockly Games, our next extension of Blockly, a web­-based graphical programming environment. As part of the generation of new programming environments that provide a more accessible introduction to coding, Blockly Games allows users to create and run programs by arranging blocks with a simple click, drag and drop.
Blockly Games requires little or no typing, which facilitates young or novice programmers to learn core coding principles in an intuitive way. By minimizing the use of syntax, users are able to focus on the logic and concepts used by computer scientists, progressing at their own pace as they venture through mazes and more advanced arenas.

Blockly was featured during the 2013 Computer Science Education week where people of all ages tried programming for the first time. Blockly is universally accessible with translations for a number of languages, including German, Vietnamese, Russian and even Klingon.

We encourage you and your child to explore Blockly Games, where novice programmers of any age begin to learn together. With Blockly Games, the whole family can learn and master basic computer science concepts.
Read More..

Saturday, September 10, 2016

20 Resources for Teaching Kids How to Program Code

Educators now admit that the past decades of ITC teaching were flawed. Teaching kids to use MS Word or PowerPoint is not empowering them to join the IT revolution. Current thinking is that everyone should know how to code (at least the fundamentals). This will help everyone understand that computer programs arent something magical, that only a select few can create, but a tool anyone can use. To this end more and more ways of teaching kids to code are being created. This article lists "20 Resources for Teaching Kids How to Program & Code".



from The Universal Machine http://universal-machine.blogspot.com/

IFTTT

Put the internet to work for you.

via Personal Recipe 895909

Read More..

Saturday, August 20, 2016

Program for calculator in JAVA

This is the source code for a calculater in java
import java.io.*;
import java.awt.*;
import java.applet.*;
import javax.swing.*;
import java.awt.event.*;

public class Calculator extends JApplet implements ActionListener
{
int choice;
double a,b, result = 0;
String str;
JTextField jt;
JButton btn0, btn1, btn2, btn3, btn4, btn5, btn6, btn7, btn8, btn9;
JButton btnAdd, btnSub, btnMul, btnDiv, btnEqual, btnDot, btnCl;
JPanel pn1, pn2;
Container cp;
public void init() // Initializing Applet & its Components
{
cp = getContentPane();
cp.setLayout ( new BorderLayout() );
jt = new JTextField(10);
jt.setHorizontalAlignment(4);
pn1 = new JPanel();
pn2 = new JPanel();
pn1.setLayout ( new FlowLayout() );
pn2.setLayout ( new GridLayout(4, 4) );
btnCl = new JButton ("Clear");
btn0 = new JButton ("0");
btn1 = new JButton ("1");
btn2 = new JButton ("2");
btn3 = new JButton ("3");
btn4 = new JButton ("4");
btn5 = new JButton ("5");
btn6 = new JButton ("6");
btn7 = new JButton ("7");
btn8 = new JButton ("8");
btn9 = new JButton ("9");
btnAdd = new JButton ("+");
btnSub = new JButton ("-");
btnMul = new JButton ("*");
btnDiv = new JButton ("/");
btnEqual = new JButton ("=");
btnDot = new JButton (".");
addButtons();
addListeners();
pn1.add (jt);
pn1.add (btnCl);
cp.add (pn1, BorderLayout.NORTH);
cp.add (pn2, BorderLayout.CENTER);
jt.setText("");
}

public void addListeners() // Adding Listeners to all Components
{
btn0.addActionListener ( this );
btn1.addActionListener ( this );
btn2.addActionListener ( this );
btn3.addActionListener ( this );
btn4.addActionListener ( this );
btn5.addActionListener ( this );
btn6.addActionListener ( this );
btn7.addActionListener ( this );
btn8.addActionListener ( this );
btn9.addActionListener ( this );
btnDot.addActionListener ( this );
btnCl.addActionListener ( this );
btnAdd.addActionListener ( this );
btnSub.addActionListener ( this );
btnMul.addActionListener ( this );
btnDiv.addActionListener ( this );
btnEqual.addActionListener ( this );
}

public void addButtons() // Adding all Components to JPanel
{
pn2.add ( btn7 );
pn2.add ( btn8 );
pn2.add ( btn9 );
pn2.add ( btnDiv );
pn2.add ( btn4 );
pn2.add ( btn5 );
pn2.add ( btn6 );
pn2.add ( btnMul );
pn2.add ( btn1 );
pn2.add ( btn2 );
pn2.add ( btn3 );
pn2.add ( btnSub );
pn2.add ( btn0 );
pn2.add ( btnDot );
pn2.add ( btnAdd );
pn2.add ( btnEqual );
}
public void operation(double a, double b, int op)
{
switch ( choice )
{
case 1 :
{ result = a + b; break; }
case 2 :
{ result = a - b; break; }
case 3 :
{ result = a * b; break; }
case 4 :
{ result = a / b; break; }
default :
{ jt.setText("0"); break; }
}
}

public void actionPerformed(ActionEvent e) // Actions to be performed
{ // whenever event is triggered
try
{
str = (String)e.getActionCommand();
if ( str = = "+" )
{
a=Double.parseDouble (jt.getText());
jt.setText("");
choice = 1;
}
else if ( str = = "-" )
{
a=Double.parseDouble (jt.getText());
jt.setText("");
choice = 2;
}
else if ( str = = "*" )
{
a=Double.parseDouble (jt.getText());
jt.setText("");
choice = 3;
}
else if ( str = = "/" )
{
a=Double.parseDouble (jt.getText());
jt.setText("");
choice = 4;
}
else if ( str = = "=" )
{
b = Double.parseDouble (jt.getText());
operation(a, b, choice);
jt.setText("");
System.out.println(result);
}
else if ( str = = "Clear" )
{
jt.setText("");
choice = 0;
a = b = result = 0;
}
else
{
jt.setText( jt.getText() +str );
}
}
catch(Exception ex)
{
jt.setText("Invalid Operation");
System.out.println("Invalid Operation");
}
}
}

//<applet code="Calculator.class" width=200 height=200></applet>
Read More..

Thursday, August 4, 2016

Announcing the Google CS Engagement Small Awards Program



(cross-posted on the Google for Education blog)

College students are more interested than ever in studying computer science. There has been an unprecedented increase in enrollment in Computer Science undergraduate programs over the past six years. Harvard University’s popular introductory CS course CS50 has recently claimed the spot as the most enrolled course on campus. An astounding 50% of Harvey Mudd’s graduates received engineering degrees this year. However, while the overall number of students in introductory computer science courses continue to climb, the number of students who go on to complete undergraduate degrees in this field, particularly among women and under-represented minorities, does not match this increase in individual course enrollment (2013 Taulbee Survey).

Recent findings show that while students may begin a CS degree program, retaining students after their first year remains an issue. Research indicates that one of the strongest factors in the retention of students in undergraduate CS degrees is early exposure to engaging courses and course material, such as high quality assignments that are meaningful and relevant to the student’s life or classroom activities that encourage student-to-student interaction. When an instructor or department imbeds these practices into the introductory CS classroom, students remain excited about CS and are more likely to complete their undergraduate CS degree.

At Google we believe in the importance of preparing the next generation of computer scientists. To this end, we’ve created the CS Engagement Small Grants Program to support educators teaching introductory computer science courses in reaching their engagement and retention goals. We’ll give unrestricted gifts of $5,000 to the selected applicants’ universities, towards the execution of engaging CS1 or CS2 courses in the 2014-2015 school year. We encourage educators who are teaching CS1 and CS2 courses at the post-secondary level to apply to the Google CS Engagement Small Grants Program. Applications will be accepted through November 15, 2014 and will be evaluated on an ongoing basis. If you’re interested in applying, please check out the Call for Proposals.
Read More..

Friday, March 4, 2016

Meet Hopscotch the iOS app teaching kids how to program

Ive blogged before about the growing movement to teach young children how to program. Hopscotch is a new iPad app that lets kids drag and drop blocks of code to create their own programs. Kids can make games, stories, animations, interactive art, apps...if they can imagine it, they can build it with Hopscotch. But the important thing about teaching kids to code is not just that theyll have fun but theyll learn problem solving, critical thinking, and the fundamentals of computer programming. Check Hopscotch out its free and you dont have to be a kid to use it.

from The Universal Machine http://universal-machine.blogspot.com/

IFTTT

Put the internet to work for you.

Turn off or edit this Recipe

Read More..

Monday, September 22, 2014

A C PROGRAM TO PRINT HELLO WORLD WITHOUT USING SEMICOLON

using if

main()
{
if(printf("Hello World")){
}}



using switch


main()
{
switch(printf("Hello World")){
}}



using while


main()
{
while(!printf("Hello World")){
}}


                                            TRY THIS

Read More..

Sunday, July 13, 2014

What Is a Drawing Program

While a lot of people see drawing as something done with a pencil and a piece of paper, many illustrators choose to use drawing programs that can be purchased and installed on their computers. These programs are economical and more convenient in many ways.

    Identification

  1. Your computer can be used to create illustrations using drawing programs.
    Image by Flickr.com, courtesy of Blake Patterson
    Your computer can be used to create illustrations using drawing programs.
    Drawing programs allow users to create drawings using a computer. These drawings are saved in file formats that can be opened by other programs. These images can usually be printed by a printer.
  2. History

  3. The first vector program, Adobe Illustrator, was created in 1987. The first raster program, Adobe Photoshop, was created in 1990.
  4. Input

  5. Drawing programs use a variety of input devices to create the art, such as scanners, tablets, webcams, mouses and keyboards.
  6. Types

  7. Drawing programs are raster or vector. Raster images are made out of small pixels colored differently. Vectors are made out of lines and points. Vectors are more difficult to edit and take up more space than raster images, but they can be resized without ruining the resolution of the image.
  8. Benefits

  9. Drawing programs allow users to create drawings that can be mass produced and that do not degrade in quality. Large quantities of drawings can be stored on a computer and money can also be saved over time, since drawing supplies do not have to be replaced.
Read More..

Friday, April 4, 2014

malloc swap function program

/*swapping two values through malloc function C program*/
#include<stdio.h>
#include<conio.h>
struct stud
{
 char nam[30];
 struct stud *next;
};
struct stud *p,*q;
int main()
{
 p=(struct stud *)malloc(sizeof(struct stud));
 q=(struct stud *)malloc(sizeof(struct stud));
 printf("Enter name p : ");
 gets(p->nam);
 //fflush(stdin);
 printf("Enter name q : ");
 gets(q->nam);
 p->next=q;
 q->next=p;
 printf("
Name of p : %s"
,p->next->nam);
 printf("
Name of q : %s"
,q->next->nam);

 getch();
 return 0;
}

       Output of above program : 

Enter name p : Peter
Enter name q : Jhon

Name of p : Jhon
Name of q : Peter
Read More..
 
Copyright 2009 Information Blog
Powered By Blogger