3 Pages

02

Course: CS 1371, Spring 2008
School: Georgia Tech
Rating:
 
 
 
 
 

Word Count: 204

Document Preview

Recitation9/02 CS1371M01 ifmyAnswer==true printMe=1; else printMe=0; end if(logicalexpression)istrue thiscoderuns elseif(logicalexpression)istrue thiscoderuns else end ifmyAnswer==2 printMe=5; elseifmyAnswer==5 printMe=2; else printMe=0; end switchmyAnswer case2 printMe=5; case5 printMe=2; otherwise printMe=0; end D=3 switch(D) case3(akaifD==3) [runthiscode] case0 [runthiscode] otherwise [runthiscode] end...

Register Now

Unformatted Document Excerpt

Coursehero >> Georgia >> Georgia Tech >> CS 1371

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
Recitation9/02 CS1371M01 ifmyAnswer==true printMe=1; else printMe=0; end if(logicalexpression)istrue thiscoderuns elseif(logicalexpression)istrue thiscoderuns else end ifmyAnswer==2 printMe=5; elseifmyAnswer==5 printMe=2; else printMe=0; end switchmyAnswer case2 printMe=5; case5 printMe=2; otherwise printMe=0; end D=3 switch(D) case3(akaifD==3) [runthiscode] case0 [runthiscode] otherwise [runthiscode] end Month=# switchMonth case1 value=1 case2 value=4 ****mod(number,dividedby) number# var=mod(number,2); switchvar case0 even=true case1 even=false end A=ones(1,5) A(k)=2wherekisthelengthofthevector A(k)=2 fork=1:length(A) end vec=[247] out=[] fori=vec out=[i,out] end ********* forcounter=1:4%executesequence4times day=# if(day==1)%Sunday itIs='Weekend' elseif(day==7)%Saturday itIs='Weekend' else itIs='Weekday'%MondayFriday end switchday case1 dayName='Sunday' case2 dayName='Monday' ********* and&&bothhavetobetrue orlleitherorcanbetrue not~true=falseandfalse=true elementwiseops ********* done=false; whiledone day=# if(day==0) done=true; else &checkforweekend if(day==1)&Sunday itIs='Weekend' elseif(day==7)%Saturday itIs='Weekend' else itIs='Weekday'%MondayFriday end
Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

Georgia Tech - CS - 1371
CS1371 9/09/08 outputsinputs function[isBig,cMax,iMax]=evalString(str) isBig=length(str)>10; [cMax,iMax]=max(str); 4classes doublex=1 cell{} char'a' logicalx=trueA=65 B=66 a=65+32=97 cellarray=truck cell=boxcA(2) element=what'sintheboxcA{2} output
Georgia Tech - CS - 1371
Recitation CS1371 9/23/08 makefunctionthatproducesanarraythathastherowsflippedandonlytheoddcolumns. functionyarr1=flipOdds(yarr) yarr1=yarr(end:1:1,1:2:end) rowscolumns A=[26] [45] size(a)=[22] [r,c]=size(A) %switchestherowsandcolumnsofeachelement t
Georgia Tech - CS - 1371
CS1371Recitation 9/30/08 Miniquiz: fh=fopen('encyclopedia.txt','r'); count=0 txt=fgetl(fh); whileischar(txt) count=count+1 txt=fgetl(fh); end fclose(fh) load/save x.mat loadx savey xlsread xlswrite dblcellcell [num,txt,raw]=xlsread(filename) Nan=no
Georgia Tech - CS - 1371
CS1371 Recitation10/7 TEST Structures FileI/O Recursion Arrays Plotting BodiesofRotation AnythingHW18 Miniquiz: writerecursivefunctionrmult(a,b)thatusesonlyadditionandsubtractiontomultiplya byb. functionret=rmult(a,b) ifb=0 ret=0 else ret=a+rmult(a,
Cornell - AS&RC - 205
African Film Voices of the ForestThe National Geographic African Film Voices of the Forest, is a vivid portrayal of the culture of the Cameroon and Bakapeople. It does a fantastic job at depicting the theme that the rainforest affects so many peopl
Cornell - AS&RC - 205
African Film Review: Voices of the ForestThe National Geographic African Film Voices of the Forest,is a vivid portrayal of the culture of the Cameroon and Baka people. It does a fantastic job at depicting the theme that the rainforest affects so ma
Cornell - AS&RC - 205
Question 9 There are a wide range of functions of music in African societies and cultures. In African societies music is connected to many experiences of life. People use them in everyday activities, entertainment, worship, or rituals. Other societie
Cornell - AS&RC - 205
Article ReviewI believe one of the best articles I have read so far is Igbo Culture and History. This article does a fantastic job at introducing the Igbo people. It covers every part of the life of the Igbo people. The articles main strength is tha
Cornell - AS&RC - 205
Article Review # 3The article Contribution of Ethiopia-Nubia and Egypt was a very interesting article. This article had many strengths. The article introduces a topic that many readers are unfamiliar with. It does a great job of showing how Egypt a
Rensselaer Polytechnic Institute - ENGR - engr2600
SectionYour Name(Print Clearly)RPI ID#ENGR-2600 Modeling& Analysis of UnSpring 2008 Exam # 1Laptop (with MINITPlease answerquestion (6~e Each any six i~wort~points questions seven1. Open Book/open notes.written aids you wish.2. Wr
Rensselaer Polytechnic Institute - ENGR - engr2600
Problem I:(a) Given XI andX2 are independent normal random variables:XIand- N (20,22],(15, l L ) ,Xz- NFind:6)iiE(Y)= ~ E ( ~ I ) - ~ E C X ~=L 3(20)-2(15)+5 )+~= 35v (u) = 327/&1)tz2v(x4 $-oq ( d ) + ~( I ),c +(iii)Pro
Rensselaer Polytechnic Institute - MGMT - finance
Quiz 1 1. Which of the following would be considered an advantage of the sole proprietorship form of organization? a. Wide access to capital markets b. Unlimited liability c. A pool of expertise d. Profits taxed at only on level Answer: D 2. Which of
Rensselaer Polytechnic Institute - MGMT - finance
HM9Chapter 19. 13. Month 3: $18,000 + (0.5 $90,000) + (0.3 $120,000) + (0.2 $100,000) = $119,000 Month 4: $14,000 + (0.5 $70,000) + (0.3 $90,000) + (0.2 $120,000) = $100,000Chapter 20. 13. PV(COST) = 96 PV(REV) = 101/1.01 = 100 a. The expected
Rensselaer Polytechnic Institute - MGMT - finance
HM8Chapter 1710.a.Current ratio will be unaffected. Inventories are replaced with either cash or accounts receivable, but total current assets are unchanged.b.Current ratio will be unaffected. Accounts due are replaced with the bank loan,
Hampton - CSC - 120
Cole TillmanCSC 120BrownRevenue Profit Stock Price2004 $40,000,000 $10,000,000 $102005 $60,000,000 $8,000,000 $202006 $80,000,000 $6,000,000 $302007 $100,000,000 $4,000,000 $402008 $120,000,000 $2,000,000 $50120000000 110000000 10000000
Hampton - CSC - 120
A 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28E F G H Transylvania College Radiology Department Payroll Hourly Regula Overtime Gross Withholdin Soc Sec Name Wage r Hours Hours Pay g Tax Tax Dwyer $8.00 40 8 $416.00 $11
Hampton - CSC - 120
1 2 3A B C D E F G H 2008-9-26 West Transylvania Athletics Grade Book - Final Semester Averages Test Average Homework 76.3 Poor 95.3 OK 76.8 OK 63.8 OK 86.5 OK 85.0 OK 57.3 OK 76.3 OK 87.5 Poor 74.8 OK 80.8 OK 89.0 OK 79.3 Poor 63.8 Poor HW Bonus 3
Hampton - CSC - 120
A B C D E 1 # School for Exceptional Children 2 3 PMT Function - The Purchase of a School Van 4 Purchase Price $26,000 5 Manufacturer's Rebate $1,000 6 Down Payment $3,000 7 Amount to Finance $22,000 8 Interest Rate 9% 9 Term (years) $3 10 Monthly Pa
Hampton - CSC - 120
A 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28BCE F G Smithtown Hospital Radiology Department PayrollDHIJKHourly Regular Overtime Name Wage Hours Hours Dwyer $8.00 40 8 Smith $7.20 40 8 Brown $8.00 40 1
UC Davis - ECON - 1A
Exam Name_MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. 1) A price ceiling A) is an illegal price. B) is the price that exists in a black market. C) is the maximum price that can legally be c
UC Davis - ECON - 1A
Exam Name_MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. 1) The "law of demand" refers to the fact that, other things remaining the same, when the price of a good rises, A) there is a movement
UCSD - BILD - 1
Problem Set 1 Chapters 1-4BILD1 / Spring 2007 Dr. Kiger1) Which four elements make up approximately 96% of living matter? A) carbon, sodium, chlorine, nitrogen B) carbon, sulfur, phosphorus, hydrogen C) oxygen, hydrogen, calcium, sodium D) carbon
UCSD - PSYC - 60
What are statistics? - Tools for organizing, summarizing, analyzing and interpreting data. (Descriptive) - These tools play a central role in scientific research (Rather or not there is a support for research) What is psychology? - Psychology is the
UCSD - PSYC - 60
Z-scores -Z-scores are standardized scores that tell where a raw scores (x) is located in an entire distribution in terms of standard deviation (SD) units. Purpose of z-scores Z-scores enable you to: -determine the relative standing of a raw score wi
UCSD - PSYC - 60
-z-test and one-sample t-test: These are used to compare one sample mean to a population mean or some other known value. -More common: compare two(or more) sample means to each other. -Two general research strategies: (1) Two completely separate (ind
UCSD - PSYC - 60
1. Dr. Andretti predicts that racecar drivers will have a greater tendency to make left hand instead of right hand turns. He recruits 32 race car drivers and has them drive down a narrow street, which has just as many possible left hand turns as it h
UCSD - PSYC - 60
z-test known known known unknownZ=M-MOne-sample:Compares M to t-testOne-sample M- t= SM s SM = n SS s= n 1df = n-1d=M SIndependent Samplest= x1 x2s x1 x2Independent Samples:Compares two independent sample meansd=
USC - COMM - 310
310 Notes-1/09/08 Robert Rosenthal- Journalist who went into Africa -Was captured, and tortured -Reported on Keballa Rosie -talked about the end of print journalism-newpapers Laurence ODonnel -had a position in the Senate -was a screenwriter -worked
USC - COMM - 310
310 notes- 9/30/08 Wag the Dog movie: Larry Bindhart: -Wrote the book that the movie was based on -Read two horrible mysteries and knew he couldnt worry that he wouldnt be able to sell any books because he could write better than ones he bought -stea
USC - COMM - 310
Comm 310- 9/23/08 First Guest SpeakerTalked about minorities and homosexuals in the media -as sidekicks who sacrifice themselves -usually have to redeem themselves through acts of heroism (taking the bullet) -Victims of ridicule- the brunt of a joke
USC - COMM - 310
Book/Film : Born on the 4th of July Ron Kovic Bob thought Kovic would be bitter after the war, but used his experience as his source of strength Bob wrote the book Born on the 4th of July 3 years after the war. On Jan. 1976 20th of January day he al
USC - COMM - 310
E-Journal 1 John Dean had many roles in the White House. The one he will most likely be remembered for was serving as former President Nixons legal counsel during the early 70s. It was this particular role which made him famous and put him in the spo
USC - COMM - 310
There was much discussion over what was to become a print media in the future. The first two of our guest speakers, Robert and Rosie talked about the changes that were taking place. They both agreed that the internet is starting to take over as a dom
USC - COMM - 310
The media has been said to be one of the most influential mechanisms of our time. If we examine our lives at this moment we can find evidence of how we are shaped and moved by the media. The media is everywhere and in everyones faces. Its power and i
USC - COMM - 310
Dr. Larry Gross had many perspectives on education in America. He discussed the typical formal education that one would receive in school growing up. He describes the formal education in terms of teachers, text books, and curriculum. He talked about
USC - COMM - 310
What is reality and what is fiction? These are among the most important questions one should ask when observing todays media. Everyday, we are bombarded with numerous images and emotional stories. Sometimes we get so caught up in these stories that w
USC - COMM - 310
During the class of Oct. 7th we watched the second presidential debate of the two presidential nominees Barrack Obama and John McCain. This debate was mediated by the esteemed broadcast journalist Tom Brokaw. The debate touched on the most pertinent
American University of Sharjah - MATHS - MTH 203
American University of Sharjah - MATHS - MTH 203
American University of Sharjah - MATHS - MTH 203
American University of Sharjah - MATHS - MTH 203
American University of Sharjah - MATHS - MTH 203
American University of Sharjah - MATHS - MTH 203
MTH203 Review Problems(EXAM#2)Q1. Consider the plane x+y+z=0. a)Give three distinct points with integer coordinates that lie on this plane. b) Find the area of the triangle formed by the three points. Q2. Suppose u=<1,0>, v=< 1 , 1 >, D u fa, b = 3
American University of Sharjah - MATHS - MTH 203
MTH203 Review Problems(EXAM#1)Q1. Find parametric equations for the line passing through (1,0,1) and parallel to the line with parametric equations x=4t, y=1-3t, z=2+5t. Q2. Find an equation of the plane that passing through (-4,1,2) and parallel to
American University of Sharjah - MATHS - MTH 203
American University of Sharjah - MATHS - MTH 203
American University of Sharjah - MATHS - MTH 203
American University of Sharjah - MATHS - MTH 203
American University of Sharjah - MATHS - MTH 203
Columbia - POLS - 1002
Political Theory 2-Introduction 22/01/2008 12:12:00Political Theory in ACTIONnot interpret but CHANGE Malcolm X edition with forward by daughter Erich Fromm, preface and pages 1-131, 153-169, 199-201 (new edition) older copy has all the right pages
Columbia - POLS - 1002
Throeau Walden (#16)25/03/2008 12:19:00Thoreaus idea on civic disobedience: Search for self Peaceful revolution through civic disobedience Civic Disobedience: Had begun with Antigone, not what Mill would have thought Attack on representative
Columbia - POLS - 1002
Political Theory Midterm Review 14:51:0006/03/2008Can quote Remember the context closely as you go over the paragraph 4, 6, 7, 13, 9, 2, 12 the tyranny of the majority (Mill, On Liberty) Context: [Lecture 13] The tyranny in the majority, is th
Columbia - POLS - 1002
Short IDs: 6 points, 100 words 10/05/2008 22:39:00If discussed earlier, indicate discussed above continue their pilgrimage compare with Malcolms views on truth. Thoreau, Civil Disobedience page 286 4 points: ContextThoreaus explanation of truth pur
Columbia - HIST - 1101
History BC 110lxIntroduction to European History STUDY SHEET FOR MID-TERM EXAMPART ONE.IDENTIFICATIONS (40 points)Some (but not all) of the terms below will appear on the exam. You will be asked to choose FOUR terms and discuss them in comple
Columbia - HIST - 1101
Jean Baptiste Colbert(1619-1683) Louis XIVs (r. 1643-1715) minister of finance (166583); part of the line of 17th century ministers who built royal strength (Henry IV, Richilieu, Mazarin, and Louis VIV); mercantilist goal of turning France into a sel
Georgia State - ECON - 2100
Business Cyclesby Christina D. RomerThe United States and all other modern industrial economies experience significant swings in economic activity. In some years most industries are booming and unemployment is low; in other years most industries a
Georgia State - ECON - 2100
Currency Union Prep Questions:1) List the exchange rate arrangements starting with the one that gives the central bank the most flexibility to the one that allows the least flexibility. Free float, dirty (managed float), crawling peg, fixed peg, cur
Georgia State - ECON - 2100
Exam Review 2True/False Indicate whether the sentence or statement is true or false. 1 Economic integration refers to the extent to which different countries real sectors, but not their financial sectors, are linked. A True B False 2 Exports minus i