Академический Документы
Профессиональный Документы
Культура Документы
PRESENTADO POR:
1010073796
PRESENTADO A:
; encabezado. (residuo r)
; variables. r: radio
(define (residuo r)
(if(exact-integer? r)
))
(residuo(read))
package pnto2;
import java.util.Scanner;
import java.lang.Math;
import java.util.Scanner;
Scanner obj;
int ban;
do{
try{
ban=0;
int x;
x=obj.nextInt();
return x;
while(ban != 0);
return 0;
{float b,ts,volumen,tiempo;
if(((a>0)&&(m>0)&&(l>0)&&(r>0)&&(h>0))&&((a<50000)&&(m<50000)&&(l<50000)&&(r<50000)
&&(h<50000)))
b=(float) (Math.sin(45)*m);
ts=(10*l*b)+(10*l*a);
volumen=(float) (Math.PI*Math.pow(r,2)*h*1000);
tiempo=volumen/ts;
return tiempo;
else
{System.out.print("Datos incorrectos");
return 0;}
int m,l,a,r,h;
m=filtro();
l=filtro();
a=filtro();
h=filtro();
3)Distancia total-C++
#include<iostream>
#include<conio.h>
#include<math.h>
/*3.Donde a es una aceleracion en m/s2 mayor que la gravedad y donde t1 y t2 son dos tiempos
en segundos
{
float d1;
float d2;
float d3;
float dt;
float vf1;
float v2;
if (((a > 9.8) && (t1 > 0) && (t2 > 0)) && ((a < 50000) && (t1 < 50000) && (t2 < 50000))){
vf1=(a * t1);
d2=vf1*t2;
y la velocidad inicial que sigue siendo vf1 debido a que en el final del tramo 2 por ser un m.r.u
d3=pow(vf1,2)/(2*9,8);
dt=d1+d2+d3;
return dt;
}
}
bool b = true;
b = false;
b = false;
} else {
int i;
i = 1;
else
i = 0;
if (!isdigit(linea[i])) {
b = false;
break;
i++;
}
}
return b;
int filtro()
string linea;
int numero;
do {
getline(cin, linea);
if (esNumerico(linea)) {
repite = false;
} else {
} while (repite);
numero = atoi(linea.c_str());
return numero;
main ()
{ int a;
int t1;
int t2;
a=filtro();
t1=filtro();
t2=filtro();
cout<<distancia(a,t1,t2);