test02-fall07

test02-fall07 - CSC 110-04: Engineering Computation with...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CSC 110-04: Engineering Computation with Matlab Test 2 – Fall 07 Prof. Johnson Page 1 of 4 There are 6 problems on this exam, for a total of 100 points. Name: ______________________________ Problem 1 ____________ of 14 points Problem 2 ____________ of 14 points Problem 3 ____________ of 14 points Problem 4 ____________ of 14 points Problem 5 ____________ of 14 points Problem 6 ____________ of 30 points Total ____________ of 100 points
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CSC 110-04: Engineering Computation with Matlab Test 2 – Fall 07 Prof. Johnson Page 2 of 4 1. 14 Pts. Write a script to create an Excel spread sheet named “ data.xls ” from the following table of data Name Age Weight Smith 20 220 John 25 180 Kim 19 110 Answer: 2. 14 Pts. Given the following file “ temp.txt” 125 40 45 Jones 0 20 80 90 Smith What are the contents of the file after running the following script? ----------------- v.name = 'Tim'; v.phone = '123 - 555 - 3456'; v.age = '20'; f = fopen('temp.txt','a'); fprintf(f,'%s \n %s %d',v.name,v.phone,v.age); fclose(f); ----------------- Answer:
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

test02-fall07 - CSC 110-04: Engineering Computation with...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online