ITEC 2600 Study Guide - Quiz Guide: Matlab

77 views1 pages

Document Summary

Lab exercise 5: pratice debugging techniques in the following questions, redo all examples from the lecture, write a user-de ned function to calculate the volume and surface area of a hollow cylinder. It receives as input arguments the radius of the cylinder base and the height of the cylinder. The volume is given by r2h and the surface area is 2 rh: write a script that will. Prompt the user to input a radius of the cylinder base and the height of the cylinder. Call the user-de ned function wrote in question 2 to calculate and return the volume and surface. Output the results: sample problems from textbook: matlab an introduction with applications. Sample problem 7-6: problems from textbook: matlab an introduction with applications.