I'm currently have a task to make but i can't complete it because of my weak knowledge.
I need to draw half of sin parabola with straight lines .
Like this http://www.mif.vu.lt/matinf/asm/vs/pask/java_pr/uzd/7.jpg
It gives me a headache because i really don't like JAVA (I think it's not for me) but i need to do to get positive mark from it :D
thanks in advance for the answer.
What i need. How to make that those lines would end within the parabola top, because I can make that lines would end within parabole. They're all the same lenght

I have tried to make something, but final result doesn't look very good

import java.awt.*;
import java.applet.*;

public class Kazkband extends Applet {

    public void init() {}

    public void paint(Graphics g) {
        int j=-100; 
        int i=-10;
        int v;
        while(j<=100) {
        g.drawString("J",j,v ); 
        j=j+10; i=i+1;}
        int a=-100;
        for (int b=0;b<20; b++ )
        g.drawLine(a , 0, a, 100);