CSE 155N Lab 7 Assignment copy

CSE 155N Lab 7 Assignment copy - • Write a program (...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
CSE 155MN (Lab-7) Create a script to accomplish the directions of each question. Hand in each script through the web-handin. http://cse.unl.edu/~handin/ Due: Monday, 17 th Oct at 11:59 pm Activity 1: Create a function ( multvectors.m ) to multiply two vectors. The function should return value of the resulting vector. Webhandin multvectors.m Document your file properly. Activity 2: Write a function (Circleac.m) to calculate the area and circumference of a circle. Write a function (Squareac.m) to calculate the area and circumference of a square.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: • Write a program ( SqCirc.m ) to o Take input from the users for the radius of circle and side of square. o Compare the areas of circle and square To calculate the area or circumference of a circle or square use your defined functions i.e. ( Circleac.m and Squareac.m) o Give the appropriate output to the user specifying whether the area of circle or square is greater. • Webhandin all three files SqCirc.m , Circleac.m and Squareac.m • Document your files properly....
View Full Document

This note was uploaded on 02/20/2012 for the course CSCE 155N taught by Professor Sandeep during the Spring '11 term at UNL.

Ask a homework question - tutors are online