CSE 155N Lab 8 Assignment

CSE 155N Lab 8 Assignment - CSE 155MN (Lab ­8)...

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

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CSE 155MN (Lab ­8) 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, 31st Oct at 11:59 pm Activity 1: Write a recursive function (catalan.m) to get a sequence of Catalan numbers. Catalan numbers are a sequence of numbers, which can be defined directly: Or recursively: Or alternatively (also recursive): Activity 2: The following script prtftlens loops to: • • • Call a function to prompt the user for a length in feet. Call a function to convert the length to inches. Call function to print both. Prtftlens.m For i=1:3 lenf=lenprompt(); leni=convert_f_to_i(lenf); printlens(lenf,leni) end ...
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