Pseudocodiogo Pascal
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package trigonometrico.java;
import javax.swing.*;
/**
*
*@author 201311239586
*/
public class TrigonometricoJava {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {double r,x;
x=Double.parseDouble(JOptionPane.showInputDialog("digite el numero que represente a x") );r=Math.pow(Math.sin(x),2)/-(Math.sqrt(Math.sin(x)+1))/(Math.pow(Math.cos(x),2))+(Math.pow(Math.sin(x),2));
JOptionPane.showMessageDialog(null,"el resultado es "+r);
// TODO code application logic here
* To change this template, choose Tools | Templates* and open the template in the editor.
*/
package raiz.java;
import javax.swing.*;
/**
*
* @author 201311239586
*/
public class RaizJava {
/**
* @param args the commandline arguments
*/
public static void main(String[] args) {
double a,b,c,x1,x2;a=Double.parseDouble(JOptionPane.showInputDialog("digite el numero que corresponde a la letra a"));
b=Double.parseDouble(JOptionPane.showInputDialog("Digite el numero que corresponde a la letra b"));c=Double.parseDouble(JOptionPane.showInputDialog("Digite el numero que corresponde a la letra c"));
x1=(-b+Math.sqrt(Math.pow(b, 2)-4*a*c))/(2*a);
x2=(-b-Math.sqrt(Math.pow(b,2)-4*a*c))/(2*a);
JOptionPane.showMessageDialog(null,"los tresultados son "+x1+" y "+x2);
// TODO code application logic here
package rectangulo.java;
importjavax.swing.*;
/**
*
* @author 201311239586
*/
public class RectanguloJava {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {...
Regístrate para leer el documento completo.