Profile cover photo
Profile photo
Monde Masiza
10 followers
10 followers
About
Monde's posts

Post has attachment

Java and VB.net should you require a free help to run a program don’t be scared to e-mail me at mondemasiza@gmail.com
 

Post has attachment
Java allows programmers to spread their wings by showing their talents in drawing. Rectangle and ovals can also be drawn.


// Shave.java
// Display the drawing in java
import java.awt.Graphics;
import javax.swing.JPanel;
 public class Shave extends JPanel
 {
 private int Choice;
 public Shave( int userChoice)
 {
 Choice = userChoice;
}
 public void paintComponent( Graphics g)
 {
 super.paintComponent(g);
 for( int i = 1; i <= 10; i++)
 {
 switch( Choice)
 {
 case 1:
 g.drawRect( 10 + i * 10, 10 + i * 10, 50 + i * 10, 50 + i * 10);
 case 2:
 g.drawOval( 10 + i * 10, 10 + i * 10, 50 + i * 10, 50 + i * 10);
}

}

}

// ShaveTest.java
// Display the actual Drawings on the command window
import javax.swing.JOptionPane;
import javax.swing.JFrame;
 public class ShaveTest
 {
 public static void main( String[] args)
 {
 String input = JOptionPane.showInputDialog("Enter 1 to draw the rectangle" + "Enter 2 to draw overl");
 int Choice = Integer.parseInt(input);
  Shave panel = new Shave( Choice);
  JFrame application = new JFrame();

 application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
 application.add(panel);
 application.setSize(300,300);
 application.setVisible(true);
 

}
}
Photo
Photo
2012-02 (2 photos)
4 Photos - View album

Programmers live longer

Post has attachment
Someone deposited the amount of 1000 in the savings account yielding 5% interest. Assuming that all the interest is left on deposit, calculate using Java and print the amount of many in the account at the end of each year for 10 years.
Photo

Post has attachment
Photo

Post has shared content
Vb.net is liking government organisation, institutions and private company using  SQL post your Question for help mondemasiza@gmail.com

Post has attachment
Java is operating on the Panele
Photo
Wait while more posts are being loaded