Write pseudo code that uses a function which accepts a sing

Write pseudo - code that uses a function which accepts a single argument and then evaluates a given second - order polynomial:   

                   P ( x ) = 6 + 3 x ? 0.50 x 2        

(2) ww Pseudocode Function to Evaluate a Given Second Order Polynomial Write pseudo code that uses a function which accepts a single argument and then evaluates a given second-order polynomial: PCX) 6 3 x 0.50 x Function Secondorder(x End Function

Solution

Pseudo Code:

Function SecondOrder(x)
Initialize var1 to zero
Initialize var2 to zero
Initialize poly to zero
compute var1 as 0.5 time of square of x
compute var2 as 3 times x
compute var3 as addition of 6 and var2
compute poly as subtraction of var3 and var1
Display \"Second order polynomial is\"
Display poly

End Function

Write pseudo - code that uses a function which accepts a single argument and then evaluates a given second - order polynomial: P ( x ) = 6 + 3 x ? 0.50 x 2 (2)

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site