08Fall_MT1 - Duration 75 minutes Good Luck 1 The volume V...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
BIL108E Introduction to Scientific and Engineering Computing Fall2008 Midterm Exam I November 1, 2008 Duration: 75 minutes Good Luck 1. The volume, V and the area, A of a sphere is expressed with the following formulas, respectively: 2 3 r 4 A 3 r 4 V π = π = where r is the radius of the sphere. Write a MATLAB program which computes V and A for 0 r 3, and draws V against A in a figure. 2. Complete the following code which computes the values of y = 2 x – 4 for the given x data, and plots a y versus x plot for the data set. Make sure to label the graph properly. x = [2 3 5 7 9]; for k = 0: y = 2^ - 4; end 3. The area and circumference of a circle is calculated depending on its radius, according the below flowchart. Write the corresponding Matlab code.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
BIL108E Introduction to Scientific and Engineering Computing Fall2008 Midterm Exam I November 1, 2008
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Duration: 75 minutes Good Luck 1. The volume V of liquid in a hollow horizontal cylinder of radius r and length L is related to the depth of liquid h by L h rh 2 ) h r ( r h r cos r V 2 1 2       − − −       − = − Develop an M-file to create a plot of volume versus depth for 0 ≤ h ≤ 3. Test the program for r = 2m and L = 5m. 2. Complete the following code which computes the values of y = 2 x – 4 for the given x data, and plots a y versus x plot for the data set. Make sure to label the graph properly. x = [2 3 5 7 9]; for k = x( y = 2^ - 4; end 3. Letter grades for a freshman course are P (Pass), C (Conditional Pass) and F (Fail). The flowchart below calculates the letter grade for a student based on his/her test scores. Write the corresponding Matlab code....
View Full Document

This note was uploaded on 05/12/2010 for the course MATH 123 taught by Professor Sait during the Spring '09 term at Istanbul Technical University.

Page1 / 2

08Fall_MT1 - Duration 75 minutes Good Luck 1 The volume V...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online