Answer to Question #162753 in Algorithms for Hidr

Question #162753

provide


(a) an algorithm

(b) flowchart

(c) pseudocode


(1) illustrate the assignment from 10 to x

If x<y otherwise 5 Is assigned to x

(2) compute the sum of the series ;

f(x) = 1+x+x^2+x^3+...........+x^n



1
Expert's answer
2021-02-11T04:20:52-0500

a) Algorithm: In computer science and mathematics, we define a finite set of rules to solve the problem for the computer implementable instructions .

b) Flowchart: A flowchart is graphical representation of steps to solve any problem.

c) Pseudo-code:It in an artificial and informal language which helps the programmer to develop algorithm.

1)

start
initiate x
if (x>y)
assigned value is 5
if (x<y)
then assigned value be 1 to 10
end
2)start
define first term as a, total number of terms as n
common ratio r=t_(n+1)/t_n
if r>1 then,
sum =a*(r^n-1)/(r-1)
else
sum = a*(1-r^n)/(1-r)
end

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS