Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Which program calculates the following equation where error checking must be included in the answer? f = X3 + 3x 7Xa +1 VX + a

image text in transcribed
image text in transcribed
Which program calculates the following equation where error checking must be included in the answer? f = X3 + 3x 7Xa +1 VX + a X = input ("Enter X:'); a = input ('Enter a:"); S1 = sqrt(X+a); S2 = 7*X*a + 1; if((51>=0)&&(S2== 0)) f = (x^3 +3*X)/(7*X*a+1) - sqrt(S1); a) fprintf('f = %f ', f); else fprintf('Error'); end a= X = input ('Enter X:"); = input ("Enter a:"); S1 = X+a; S2 = 7*X*a + 1; if((51>=0)&&(52!=0)) f=(x^3 +3*X) 7 (7*X*a+1 - sqrt(S1)); fprintf('f = %f ', f); else fprintf('Error'); end b) X = input ("Enter X:"); a = input ('Enter a:'); S1 = X+a; S2 = 7*X*a + 1; if((S1>=0)&&(S21=0)) f = (x^3 +3*x)/ (7*X*a+1 - sqrt(51)); b) fprintf('f = %f ', f); else fprintf("Error'); end X = input ('Enter X:"); a = input ("Enter a:"); S1 = X+a; S2 = 7*X*a+1; if((S1>=0)&&(S2=0)) f= (x^3 + 3*X)/(7*X*a+1) - sqrt(S1); c) Ofprintf('f = %f ', f); else fprintf('Error'); end X = input ("Enter X:"); a = input ("Enter a:"); S1 = X+a; S2 = 7*X*a+1; if((S1>=0)&&($2>0)) f= (x^3 + 3*x/7*X*a+1) - S1; d) fprintf('f= %f ', f); else fprintf("Error'); end

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Seven NoSQL Databases In A Week Get Up And Running With The Fundamentals And Functionalities Of Seven Of The Most Popular NoSQL Databases

Authors: Aaron Ploetz ,Devram Kandhare ,Sudarshan Kadambi ,Xun Wu

1st Edition

1787288862, 978-1787288867

More Books

Students also viewed these Databases questions

Question

Define what is meant by communication.

Answered: 1 week ago

Question

=+6 Who is the peer of the IA ?

Answered: 1 week ago

Question

=+herself to in terms of equity with regard to this assignment?

Answered: 1 week ago

Question

=+ What typical employee will the IA compare him/

Answered: 1 week ago