This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: COLLEGE OF ENGINEERING THE UNIVERSITY OF TEXAS AT AUSTIN Department of Chemical EngineeringAustin, Texas 78712-1062(512)471-5238FAX(512)471-7060 ChE 210 Homework 1 Due: Wednesday, September 15 Simple Scripts In class we are examining how to write simple MATLAB scripts to solve problems. Weve seen the very basic use of the input and fprintf functions to handle input and output and solved problems in a simple sequence of assignment statements. You are to write working MATLAB scripts (using m-files) to solve these problems and run these scripts for the cases listed in each problem. 1. The equation that is used to determine the volume of a hollow sphere is ( 29 3 3 4 3 o i V r r =- Write a script that asks the user for the outer, r o , and inner, r i radius and then computes the volume. The script should then print all quantities (r o , r i , and V) on separate lines with each quantity identified by text. Maybe something like the following: Outer radius: 5.0 Inner radius : 4.0 4....
View Full Document
This note was uploaded on 09/26/2010 for the course CHE 210 taught by Professor Swinnea during the Fall '08 term at University of Texas at Austin.
- Fall '08
- Chemical Engineering