Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Given x, y, z. Calculate a, b, if 2. Given positive real numbers a, b, c, x,

ID: 3791027 • Letter: 1

Question

1. Given x, y, z. Calculate a, b, if

2. Given positive real numbers a, b, c, x, y. To find out whether a brick with edges held, b, c in a rectangular opening with sides x and y. Brick slips permitted only so that each of its edges is parallel or perpendicular to each side of the hole.
3. Given a positive integer. To attribute to it the same number on the left. 34 => 3434
4. Find the number of even digits in the whole number entered from the keyboard.
5. Given a real number, and a natural number n. Calculate a (a + 1) ... (a + n-1).
6. Calculate the sum of the infinite with a given accuracy ? (?> 0). Assume that the required accuracy is achieved if the calculated sum of the first few terms and the next term has appeared in modulus less than ?, - this and all subsequent terms can no longer be taken into account. Set an infinite sum:

write C++ program, sample is below

#include <iostream>

#include <cmath>

using namespace std;

void main()

{

       float x, y, z;

       cout << "Vvedite x:   ";

       cin >> x;

       cout << "Vvedite y:   ";

       cin >> y;

       cout << "Vvedite z:   ";

       cin >> z;

       double a, b;

       a = y + x / (pow(y, 2) + fabs(pow(x, 2) / (y + pow(x, 3) / 3)));

       b = 1 + pow(tan(z / 2), 2);

       cout << "a = " << a << endl;

       cout << "b = " << b << endl;

       system("pause");

}

#include <iostream>

#include <cmath>

using namespace std;

void main()

{

       float x, y, z;

       cout << "Vvedite x:   ";

       cin >> x;

       cout << "Vvedite y:   ";

       cin >> y;

       cout << "Vvedite z:   ";

       cin >> z;

       double a, b;

       a = y + x / (pow(y, 2) + fabs(pow(x, 2) / (y + pow(x, 3) / 3)));

       b = 1 + pow(tan(z / 2), 2);

       cout << "a = " << a << endl;

       cout << "b = " << b << endl;

       system("pause");

}

a=y+

Explanation / Answer

#include <iostream>
#include <cmath>
using namespace std;

int main()
{
int n;
cout<<"Enter the value: ";
cin >> n;
double sum = 0;
for(int i=0; i<=n; i++){
sum = sum + 1.0/((pow(4, i)+pow(5, i+2)));
}
cout<<"Result: "<<sum<<endl;
  
return 0;
}

Output:

sh-4.2$ g++ -o main *.cpp                                                                                                                                                                                                                                              

sh-4.2$ main                                                                                                                                                                                                                                                           

Enter the value: 5                                                                                                                                                                                                                                                     

Result: 0.0481627