Monday 27 July 2015

Make a Bouncing Ball Using VPython

Visual Python or VPython as Wikipedia says that VPython is the one of Python Programming Language to make a 3D graphics module called Visual.

As we know that, using VPython we can create objects such as cones, boxes, and spheres in 3D space and displays these objects. This makes it easy to create some illustration especially to visualization physics' subject.

In this tutorial I want to make a simple visualization using VPython it is how to make a bouncing ball :)

1. Firstly open VIDLE Visual Python, I use VPython version 6.10 for Python version 2.7 win32.
if you don't have the program, you can download by click the link below:


2. After you open the VIDLE VPython, type the syntax as shown below. You can copy the syntax.

from visual import *

floor = box (pos=(0, 4, 0), lenght=4, height=0.5, width=4, color=color.green)
ball = sphere (pos=(0,4,0), radius=1, color=color.red)
ball.velocity = vector(0,-1,0)
dt = 0.01

while 1:
    rate (100)
    ball.pos = ball.pos + ball.velocity*dt
    if ball.y < ball.radius:
        ball.velocity.y = abs(ball.velocity.y)
    else:
        ball.velocity.y = ball.velocity.y - 9.8*dt

3. You can change the size of floor, radius of ball, the vellocity and the colour of ball and floor as you want.

4. Before running the syntax you have to save it first with file extension .py (for example: bouncing ball.py)

Make a Database Using Microsoft Access

Hello guys.. thanks for reading my blog :D

In this article I want to show you how to make a database using Microsoft Access. I'm sure that all of you know about the one of program from Microsoft Office, actually there are so many program from Microsoft Office such as Ms. Word, Ms. Excel and Ms. Power Point. 

In this opportunity I want to make a database for input student's database.


1.  Firstly open Microsoft Access. I use Ms. Access 2010.


This is a display of Ms. Access .
2. We can give a name in the file name and then click Create
3.  After we give a name for a database and click Create then will appear worksheet of Ms. Access as shown below.


 To start creating a database click View and  select Design View



4.      After click  Design View will appear display as shown below:


In the dialog of Save As we can give a name, for example: Nilai UTS. After that click OK

5.    In Design View ther are Field Name, Data Type and Description
Field Name : to add form for input
Data Type   : to determine the data type
Description : to description every Field Name (optional)


6.      After make Design View, let's move to Datasheet View by clicking View and then select Datasheet View.


7. In the Datasheet View we can input data


I think it's enough tutorial from me, thank you for your attention and for reading my blog. I'm sorry if there are mistakes :D