Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You need to write scripts for all problems. Each script should contain the comments on each line. You also need to publish your scripts to

image text in transcribed
image text in transcribed
You need to write scripts for all problems. Each script should contain the comments on each line. You also need to publish your scripts to pdf files. 1. (Chapter.1) Store a number with a decimal place in a double variable (the default). Convert the variable to type int32 and store the result in a new variable. (10pts) 2. (Chapter.1) Create a variable ftemp to store a temperature in degrees Fahrenheit F). Convert this to degrees Celsius C) and store the result in a variable ctemp. The conversion factor is C (F-32) 5/9. (10pts) 3. (Chapter.1) What would be the results of the following expressions? Write the script to produce the results. State your reasoning in the comments in your script. (15pts) a, 'b' a 'c -1 b, 3 a 241 c. (3 2) 1 d. xor (5 4) 4. (Chapter.1) A chemical plant releases an amount A of pollutant into a stream. The maximum concentration of the pollutant at a point which is a distance x from the plant is: (10pts) A 2 Create variables for the values of A and x, and then for C.Assume that the distance x is in meters. Experiment with different values for x, (e in this case is Euler's number, 2.71828) 5. (Chapter.2) Create a vector x which consists of 20 equally spaced points in the range from -r to +n. Create a y vector which is sin(x). (10pts) 6. (Chapter.2) Find the following sum by first creating vectors for the numerators and denominators: (15pts) Continued on the next page

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

Students also viewed these Databases questions

Question

Write a paper on "Multi-Decision Making Technique"

Answered: 1 week ago

Question

Psychological, financial, and career counseling.

Answered: 1 week ago