2. Write a script file that will accept an input from a user for the variable x. After the user inputs a value the script will use conditional statements and calculate a corresponding value f(x) under...

Computer science
2. Write a script file that will accept an input from a user for the variable x. After the user<br>inputs a value the script will use conditional statements and calculate a corresponding value<br>f(x) under the following conditions:<br>Corresponding function<br>X+1<br>f(x) = e*<br>Input value for x<br>X<-1<br>f(x) = 2 + cos(Tx)<br>f(x) = 10(x-5) + 1<br>-1 <X< 5<br>X> 5<br>Test your script with the following inputs:<br>a. x= -6<br>b. x = 4<br>C. X= 12<br>

Extracted text: 2. Write a script file that will accept an input from a user for the variable x. After the user inputs a value the script will use conditional statements and calculate a corresponding value f(x) under the following conditions: Corresponding function X+1 f(x) = e* Input value for x X<-1 f(x)="2" +="" cos(tx)="" f(x)="10(x-5)" +="" 1="" -1=""><>< 5="" x=""> 5 Test your script with the following inputs: a. x= -6 b. x = 4 C. X= 12

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here