Lab317 - Inputs = JOptionPane.showInputDialog(null,...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
import javax.swing.*; import java.text.*; import java.util.*; public class Lab317 { public static void main(String[] args){ Sin Sin2; Integer n, i; Double x, btmSum, Sin1, Cos1; String Inputs; btmSum = 0.0; i = 0; Inputs = JOptionPane.showInputDialog(null, "Enter an Angle: " ); x = Double.parseDouble(Inputs);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Inputs = JOptionPane.showInputDialog(null, "Enter the number of terms to depict how accurate: " ); n = Integer.parseInt(Inputs); Sin2 = new Sin(); Sin2.setSin(x, n, 0.0, 0, 0); Sin1 = Sin2.getSin(); JOptionPane.showMessageDialog(null, Sin1); } }...
View Full Document

This note was uploaded on 05/01/2008 for the course ECE 172 taught by Professor Olabe during the Spring '08 term at Christian Brothers.

Ask a homework question - tutors are online