This preview shows pages 1–4. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: 3 Write a program calculates the average and geometric mean of a set of numbers Pseudo code/Approach: 1. Prompt the user to enter values in the format of an array 2. Read values using a while loop 3. exit while loop with negative integers 4. output=the geometric mean and average MATLAB code: (see attached) Results: (see attached) Assignment #: 3 Due date: 6/22/2009 Name: Maria Bobadilla Problem #: 4 Write a program the will accept any numbers and calculate the rootmeansquare Pseudo code/Approach: 1. Prompt the user for the values; 2. Use a for loop to accept input; 3. Write a function representing and calculating the rms 4. output= rms for the given values MATLAB code: (see attached) Results: ( see attached)...
View
Full
Document
 Spring '09
 marayong

Click to edit the document details