Programacion
#include <iostream.h>
#include <conio.h>
#include <math.h>
//--------------------------------------------
float fncGenerarSerie(int N)
{
int n;float Se, SS;
n = 1;
Se = 0;
cout << " ________________________________________ \n";
while (n <= N)
{
Se = (2*n) / sqrt((2*n)-1);
SS+= Se;
cout << Se << endl;
n++;
}
return SS;
}
//--------------------------------------------
main()
{
int a;
cout << "Ingresela cantidad de Terminos \n";
cin >> a;
cout << "Sumatoria de la serie:" << fncGenerarSerie(a) << endl;
cout << "________________________________________ \n";
getch();
}
Pregunta N°2 de la hoja
#include <iostream.h>
#include <conio.h>
#include <math.h>
//--------------------------------------------
doublefncRelativo(float Mi, float Vi, float C)
{
double d, Vf;
if(C != 0)
{
d = sqrt( 1 - (Vi / C));
if (d > 0)
{
Vf = Mi / d;return Vf;
}
else
{
return Mi;
}
}
else
{
return Mi;
}
}//--------------------------------------------
main()
{
// Dar Valores desde el teclado
float a, b, c;
cout << "El valor de Mi es : \n" ;
cin >> a;
cout << "El valor de Vi es : \n" ;cin >> b;
cout << "El valor de C es : \n" ;
cin >> c;
cout << " Vf = " << fncRelativo(a, b, c) << endl;
getch();
}
PreguntaN°3 de la hoja
#include <iostream.h>
#include <conio.h>
#define pi 3.14
//--------------------------------------------
double fncImpedancia(float F, float C)
{
double z;...
Regístrate para leer el documento completo.