Question

In: Mechanical Engineering

It is desired to compute the sum of the first 10 terms of the series 14k3 = 20k2 + 5k, k = 1, 2, 3, …

It is desired to compute the sum of the first 10 terms of the series

14k3 = 20k2 + 5k, k = 1, 2, 3, …

 

a. Develop a pseudocode description of the required program.

b. Write and run the program described in part a.

Solutions

Expert Solution

(a)

Write the pseudo code.

initialize sum = 0

loop for k = 1…..10

temp = 14k3 – 20k2 + 5k

sum = sum + temp

print sum

 

(b)

Write the program.

 

Copyable code:

sum = 0;

for k= 1 : 10

val =14 * k^3 - 20 * k^2 + 5 * k;

sum=sum+val;

end

disp(sum);


(a)

Write the pseudo code.

initialize sum = 0

Related Solutions

Use a for loop to determine the sum of the rst 10 terms in the series 5k3, k % 1, 2, 3, . . . , 10.
Use a for loop to determine the sum of the rst 10 terms in the series 5k3, k % 1, 2, 3, . . . , 10.
If the sum of first 6 terms is 9 times to the sum of first 3 terms of the same G.P., then common ratio of the series will be
If the sum of first 6 terms is 9 times to the sum of first 3 terms of the same G.P., then common ratio of the series will be
Use the formula for the sum of the first n terms of a geometric series to find S9 for the series 12, 6, 3, 3/2 , …
Use the formula for the sum of the first n terms of a geometric series to find S9 for the series 12, 6, 3, 3/2 , …  
Use the formula for the sum of the first n terms of an arithmetic series to find the sum of the first eleven terms of the arithmetic series 2.5, 4, 5.5, … .
Use the formula for the sum of the first n terms of an arithmetic series to find the sum of the first eleven terms of the arithmetic series 2.5, 4, 5.5, … .
Consider the series X∞ k=3 √ k/ (k − 1)^3/2 . (a) Determine whether or not...
Consider the series X∞ k=3 √ k/ (k − 1)^3/2 . (a) Determine whether or not the series converges or diverges. Show all your work! (b) Essay part. Which tests can be applied to determine the convergence or divergence of the above series. For each test explain in your own words why and how it can be applied, or why it cannot be applied. (i) (2 points) Divergence Test (ii) Limit Comparison test to X∞ k=2 1/k . (iii) Direct...
In Java!! Problem 2 – Compute the sum of the series (19%) The natural logarithm of...
In Java!! Problem 2 – Compute the sum of the series (19%) The natural logarithm of 2, ln(2), is an irrational number, and can be calculated by using the following series: 1 - 1/2 + 1/3 - 1/4 + 1/5 - 1/6 + 1/7 - 1/8 + ... 1/n The result is an approximation of ln(2). The result is more accurate when the number n goes larger. Compute the natural logarithm of 2, by adding up to n terms in...
-Write a program in C++: • to find the sum of the series 1! /1+2! /2+3!...
-Write a program in C++: • to find the sum of the series 1! /1+2! /2+3! /3+4! /4+5! /5 using the function1, • to convert decimal number to binary number using the function2, • to check whether a number is a prime number or not using the function3, • to check whether two given strings are an anagram using the function4. important must do in (Multi-Filing) of c++
Modify the sum_thread.cpp program to compute sum = 1 + 1/2 + 1/3 + 1/4 +...
Modify the sum_thread.cpp program to compute sum = 1 + 1/2 + 1/3 + 1/4 + … 1/n. Let’s estimate natural using n = 20. sum_thread.cpp #include <chrono> #include <iostream> #include <mutex> #include <random> #include <utility> #include <vector> #include <thread> using namespace std; constexpr long long size= 1000000; mutex myMutex; void sumUp(unsigned long long& sum, const vector<int>& val, unsigned long long beg, unsigned long long end){ long long localSum = 0; for (auto it= beg; it < end; ++it){ localSum+=...
1. Given the series: ∞∑k=1 2/k(k+2) does this series converge or diverge? converges diverges If the...
1. Given the series: ∞∑k=1 2/k(k+2) does this series converge or diverge? converges diverges If the series converges, find the sum of the series: ∞∑k=1 2/k(k+2)= 2. Given the series: 1+1/4+1/16+1/64+⋯ does this series converge or diverge? diverges converges If the series converges, find the sum of the series: 1+1/4+1/16+1/64+⋯=
2. Do the Maclaurin series expansion of 1 √(1−?) out to 3 terms 3. Find the...
2. Do the Maclaurin series expansion of 1 √(1−?) out to 3 terms 3. Find the Taylor series for the two functions: i. ?(?) = ? −6? about ? = −4 ii. ?(?) = 7 ? 4 about ? = −3
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT