Docsity

Exam - Problems with Solutions -Computing for Engineers | CS 1371, Exams of Computer Science

Partial preview of the text

Download Exam - Problems with Solutions -Computing for Engineers | CS 1371 and more Exams Computer Science in PDF only on Docsity!

CS81371 Practice Exam 1 Fall 2004 1. Basic Functions Write a Matlab function called weather that takes in a temperature (given in degrees Fahrenheit) and returns a character string with an appropriate simple message describing what the weather is like. Use the following table to determine which message to return for a given value of t (temperature): Temperature Weather t=32 Freezing 32