# Register now to access 7 million high quality study materials (What's Course Hero?) Course Hero is the premier provider of high quality online educational resources. With millions of study documents, online tutors, digital flashcards and free courseware, Course Hero is helping students learn more efficiently and effectively. Whether you're interested in exploring new subjects or mastering key topics for your next exam, Course Hero has the tools you need to achieve your goals.

2 Pages

### lab2

Course: ME 218, Spring 2008
School: University of Texas
Rating:

#### Document Preview

Rivas Doug Lab 2 ME 218 2.1. Run for TA the following code in code warrior: #include &lt;stdio.h&gt; int main(void) { fprintf(stdout, &quot;Hello World, this is CodeWarrior!\n&quot;); return 0; } 2.2 2.3 #include &lt;stdio.h&gt; #include &lt;math.h&gt; int main(void) { int a; int m; float exactage; int int currentage; monthage; printf( &quot;Enter the year you were...

Register Now

#### Unformatted Document Excerpt

Coursehero >> Texas >> University of Texas >> ME 218

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.
Rivas Doug Lab 2 ME 218 2.1. Run for TA the following code in code warrior: #include <stdio.h> int main(void) { fprintf(stdout, "Hello World, this is CodeWarrior!\n"); return 0; } 2.2 2.3 #include <stdio.h> #include <math.h> int main(void) { int a; int m; float exactage; int int currentage; monthage; printf( "Enter the year you were born:\n"); scanf("%d", &a); printf("Enter the month you were born:\n"); scanf("%d", &m); exactage== ((2007-a)); printf("Your current age in years is: %f\n", exactage); return 0; } 2.4
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:

University of Texas - ME - 218
Doug Rivas- M 5-7 ME 218 Lab 3 3.1 size of y= 1x9, each entry of y will be natural log to the powers of 1 through 9. 3.2 The second index of the function is at x = 1.5, which is not an integer 3.3 The first plot command, plot(y), plots length(x) on t
University of Texas - ME - 218
Doug Rivas M5-7 ME 218 Lab 4 4.1 #include &lt;stdio.h&gt; int main(void) { int ac; ac= 281; int* acPtr; acPtr= &amp;ac; printf(&quot;area code= %d\n&quot;, ac); printf(&quot;area code= %d\n&quot;, *acPtr ); printf(&quot;pointer adress: %d&quot;, &amp;ac); }4.2/ 4.3 #include &lt;stdio.h&gt; #includ
University of Texas - ME - 218
Doug Rivas ME218 Lab 5 M 5-7 5.1 M-File : onevariable.mx= [-10:.01:20]; plot(x, f(x) title('Doug Rivas') xlabel('X') ylabel('F')5.2 I made a slight modification to the m- file in order to see the zeros better:x= [-10:.01:20]; plot(x, f(x), x , 0)
University of Texas - ME - 218
Doug Rivas ME 218 Lab 6 M 5- 76.1 # include &lt;stdio.h&gt; # include &lt;math.h&gt; # define Pi 3.141592654 double alpha; double beta; double Freudenval; double Freud; double Freudenstein(double alpha, double beta); int main (void) { printf(&quot;Alpha Beta Error\
University of Texas - ME - 218
Doug Rivas ME 218 Lab 7 M 5-7 7.1 robotlab.m:alpha = [0:pi/100:pi/2]; beta = [0: pi/100: pi];[alpha, beta]= meshgrid(0: pi/100: pi/2,0: pi/100: pi/2); R= cos(alpha) + cos(alpha + beta); surf(alpha, beta, R)(Matlab outputs graph, therefore dimens
University of Texas - ME - 218
1815 1825 1835 1845 1855 1865 1875 1885 1895 1905 1915 1925 1935 1945 1955 1965 19758.3 11 14.7 19.7 26.7 35.2 44.4 55.9 68.9 83.2 98.8 114.2 127.1 140.1 164 190.9 214.32.116256 2.397895 2.687847 2.980619 3.284664 3.561046 3.793239 4.023564 4.232
University of Texas - ME - 218
Doug Rivas ME 218 M 5-7 Lab 8 8.1 M-file 1:function [ y] = f( x ) y= -1.7*x + 7.5;M-file 2:dist =[.15 1.04 1.44 1.84 2.24 2.64 3.04 3.44 3.84 4.24]; amp= [7.5 5.6 4.4 3.6 3 2.5 2.2 1.9 1.5 1.1]; scatter(dist, amp, f(dist) hold; plot(dist, f(dist)
University of Texas - ME - 218
Doug Rivas ME 218 Lab 9 M5-7 9.19.29.3 Passing the matrix A=[2 4 through the function inverse yields a result of. 1000 0]9.4Using the functioned in 9.3 to find the inverse of matrix A, I determined that y0 = 2E-15.00000 and lambda equals -.02
University of Texas - ME - 218
Doug Rivas M5-7 ME 218- Lab 10 10.1 Falling.m:CLF; p= 1.4; g= 32; C= g/p; v= C*exp(-p*t)-g/p; plot(t,v); xlabel('Time (s)'); ylabel('Velocity (m/s)'); title('Doug Rivas');10.2 Falling.m:clear all; g = 32; % in feet per second rho = 1.0; % the dra
University of Texas - ME - 218
Doug Rivas ME 218 Lab 12 M 5-7 12.1prb1.m:[t,x] = ode45('ex1',[0 15], 1); plot(t,x); gridex1.m:function xprime=ex1(t,x) xprime=sin(t*x);fun1.m:function yprime = fun1(t,y) yprime = -2 * t * y^2;fun2.m:function yprime = fun2(t,y) yprime = [
UCLA - HIST - M10A
Review for Final ExaminationThe examinationThe final exam will consist of seven questions, divided into two sections Section A will contain five questions Section B will contain two questionsYou will be asked to answer two questions from
UMass (Amherst) - MILTARY - 290A
LIFE IN ANCIENT MESOPOTAMIA&quot;The land between two Rivers&quot; By: Jenn Bexiga, Kevin Maio, Alex Berry, Lindsay Robidoux, and Jen OrcuttINTRODUCTION Sumerians inhabited this land from Turkish Plateau Man changed from being a hunter-gatherer to worki
RIT - EMEM - ----
Lab Report #2: Poisson's Ratio Date Submitted: 1/31/08 Group Members: 1. John Matthews 2. Ray Casper 3. Nathan DeweyName: Matt Turner Section 10-12 ThursdayTitle: Torsion Testing of Al Alloy 2024-T351 Equipment: Tinius Olsen Torsion Tester (10,00
RIT - EMEM - ----
Lab Report #2: Poisson's Ratio Date Submitted: 1/17/08 Group Members: 1. John MatthewsName: Matt Turner Section 10-12 ThursdayTitle: Poisson's Ratio of Al Alloy 2024-T351 Equipment: Tinius Olsen Hydraulic 60 kips Universal Tester Strain Gages (Ga
Grand Valley State - ACC - 213
Sales Current Assets: Cash Accounts Receivable Inventory Total Current Assets Current LiabilitiesYear 5 \$5,625 64 590 896 1520 39025% -20% 48% 12% 19% 30%Year 4 \$5,400 72 496 880 1448 31820% -10% 24% 10% 13% 6%Year 3 \$4,950 84 432 816 1332
UMass (Amherst) - MILTARY - 290A
5 Pillars -Creed -Prayer -Giving Alms -Fasting -Pilgrimage Religious Sects Iran is dominantly Shia Iraq 60% Shia 35% Sunni Caliph- leader of Sunni (elected) Sheik- old person, tribal leader Imam- priest/minster that leads Shia church Sayid- a person
Arcadia University - BIO - 101
ProbabilityDescribes the chance a particular event will happen. ranges from 0 to 1. o 0 = no change o 1 = 100% changethe number of events that can produce a specific outcome / total number of possible outcomes. Punnett square YR yrYRYYRRYyR
CofC - CHEMISTRY - 112
Chem 112 - Study Guide Solutions 1-11-08 Chapter 12 problems 16,18,22 Problem 16: Calculate the amount of water in grams that must be added to 5.00 g of urea (Molar Mass = 60 g/mole)in the preparation of a 16.2 percent by mass solution. Let x be the
University of Iowa - FIN - 128
Mid-Term Exam 6F:126 3/10/2008 Use the following information to answer questions 1-8. Show all steps in your calculations and circle or box your final answer. Questions 1-8 are worth 5 points each, question 9 is worth 10 points, and the multiple choi
University of Iowa - BUS - 100
Mid-Term I 60 Multiple Choices (Chapters 1-7) Date: Feb. 22, Thursday Time: 5:30 ~ 7:30pm Location Lecture A (TTH 8:05-9:20) Last Name A-K go to Phillips Hall 100 (100 PH) Last Name L-Z go to W10 PBB Lecture B (MWF 10:30-11:20) All go to Ch
Arcadia University - BIO - 101
Terms: Reductionism Systems biology Emergent properties Atoms Biological molecules Organelles Cells Tissues Organs Organ systems Organisms Populations Ecosystems Biosphere DNA Structure Function Open system Closed system Metabolism Metabolic processe
CofC - CHEMISTRY - 112
Chem 112 002 Guided Study Assignment Jan 9, 2008 1. Read Chapter 11 2. Hypothetical Question: You just got engaged. Your future in-laws have thrown a cocktail party at which the engagement will be announced. At the party your future father-in-law i
City College of San Francisco - SOC - 1
Auguste Comte: commonly known as the founder of sociology. He emphasized that the study of society must be scientific, and he urged sociologists to employ systematic observationism, experimentation and comparative historical analysis as their methods
BU - CALC - MA 123
MA 123Arazyan, Spring 2008Quiz#1Student Name _Key_ Discussion Section #_ BU ID#_Show all your work for full credit. 1. (12 points) Given f ( x ) x 2 9 , g ( x) cos x , and h( x) g h f . Simplify your answer if possible.f ( g ( x 3 ) g ( f (
BU - CALC - MA 123
MA 123Arazyan, Spring 2008 Show all your work for full credit.Quiz#2Student Name _Key_ Discussion Section #_ BU ID#_1. (12 points) Solve the following equation for x .2(log 2 xSolution:log 2 ( x 1)log2 23 x12(log 2 x ( x x2 x2 x1)
BU - CALC - MA 123
MA 123 Section A1Arazyan, Spring 2008Quiz#3Student Name _Key_ Discussion Section #_ BU ID#_Show all your work for full credit. 1. (10 points) Find the following derivative :d x2/3 2 dx e 2 x 3xSolution:d x2/3 2 dx e 2 x 3 x (2 / 3) x1/ 3
Grand Valley State - ECO - 210
Foreclosure 1Foreclosure Prevention Plan Anna Veldman Economics 210-05 February 21, 2008Foreclosure 2 The proposed plan would allow about 600,000 homeowners to avoid foreclosure between this year and next year. The plan allows judges to reduce th
Texas San Antonio - HIST - 1013
Chapter 16 and 18 Quiz 13th amendment- est. 1865, Abolishes Slavery 14th Amendment- est.1868, Makes African Americans citizens and equal protection of the laws. 15th Amendment- est. 1870, Prohibits racial discrimination in voting rights in all states
Grand Valley State - ECO - 210
Interest Rates 1Interest Rates to be lowered by Fed again Anna Veldman Econ 210-05 February 27, 2008Interest Rates 2As the fears of a recession remain, the Fed is considering lower interest rates, yet again. This is also during a time when oil
Grand Valley State - ECO - 210
Tax Cuts 1Tax Cuts Anna Veldman Economics 210-05 January 24, 2008Tax Cuts 2 Thursday a deal was reached between congress and the White house regarding an &quot;economic stimulus package&quot; which includes tax cuts for many Americans. Most tax filers will
Grand Valley State - ECO - 210
Anna Veldman January 10, 2008 ECO 210-05 The Fed to the Rescue The chairman of the Federal Reserve, Ben Bernanke stated in a speech that the central bank will continue to lower interest rates, hoping to stop the economy from going into a recession. M
Grand Valley State - ECO - 210
Fed 1Anna Veldman Is the Fed doing the right thing? Econ 210-05 February 14, 2008Fed 2The Fed has at this point lowered the interest rate to 4.25 percent, which is a whole percentage point lower than before. The fears are currently high that ou
Grand Valley State - ECO - 210
Veldman 1Struggles for the Stock Market Anna Veldman Economics 210-05 January 31, 2008Veldman 2 The stock market has made a little bit of a recovery today after it got off to a rough start. The Nasdaq and Standard &amp; Poor's 500 both ended up. Stoc
Grand Valley State - ECO - 210
Oil Inventories 1Oil Inventories Anna Veldman April 2, 2008 Professor Edelman Economics 210-05Oil Inventories 2The slowing economy is now even having an impact on the oil refining companies. The demand for gasoline is not as high as it has been
BU - WR - WR 100
WR100 Writing on Art Roger Fry, &quot;An Essay in Aesthetics&quot;: Guiding Questions 1. What, according to Fry, is the traditional definition of art? Why is it important that he introduce this concept at the beginning of his essay? *Plato: In The Republic, Pl
BU - CALC - MA 123
WR100 Writing on Art Charles Baudelaire, &quot;The Painter of Modern Life&quot;: Guiding Questions *Baudelaire: Major French poet and theorist of the mid-to-late 19th century, best known for a collection of poems entitled Flowers of Evil that created much cont
Dupage - A+P - 1100
Vocabulary &quot;Going to Meet the Man&quot; Wretchedly- feeling very unhappy or ill Peculiar- unusual, strange, or unconventional Tranquil- free of any disturbance or commotion Articulate- able to express thoughts, ideas, and feelings coherently Sputtered- to
Illinois State - HIST - 111
1. 6 states of NE- Maine, Vermont, Connecticut, New Hampshire, Rhode Island, Massachusetts. 2. Bacon's Rebellion (1696)- He was an upper middle class elected assembly man and he realized that the indentured servants had a valid argument by being mad
Illinois State - HIST - 111
1. Palmer Raids- skip 2. Irish Potato Famine- In the mid 1800's, there was a potato blight in Ireland. Potatoes were a staple of the Irish diet since they were inexpensive and easy to grow. At first, Britain did nothing to help relief. The Irish who
Illinois State - HIST - 111
11. Civil War2/28/2008 12:27:00 PMI. Slave power conspiracy 1. Kansas-Nebraska Act, 1854 o Has to do with westward expansion How to turn territories into states o Issue of infrastructure railroads Where should railroad that links east coast to
Illinois State - HIST - 111
Essay 1 The impact of demographics and culture on the status of Afro Americans, Native Americans and white women: Afro Americans: The colonies needed more labor because they were starving to death. Many of them were also unskilled at providing for th
Illinois State - HIST - 111
Lesley LuekeExam 1 Supplement True/False 1.F 2. F. 3.T 4. F 5. F 7. F 8.F 9. T 11.T 13.F Short answer 1. 3 Core features of a state: a. Territory, people, sovereignty 2. Name the 4 stages of state formation a. State formation, nation building, mass
Illinois State - HIST - 225
Lesley Lueke PHIL 104 Ideals of Democracy March 6, 2008 Terrorism: Immoral to Us, Justified to Them Terrorism is an act of violence against civilians by a non state person or organization. It is usually used as a means of carrying out a political mes
Illinois State - PSY - 331
Some would argue that the trans-continental railroad was the most important element in modernizing the United States. What impact did it have on industrialization, urbanization, immigration, and Westward expansion? The tans-continental railroad was e
A.T. Still University - GEO - 110
Daniel Zimmerman April 2nd, 2008 Mrs. Parker Geo 111-01Costa Rica: A Demilitarized StateA Brief DescriptionSince December the 1st 1948 Costa Rica has been a military Free State. Central America has been an area of political unrest ever since the
A.T. Still University - GEO - 110
Daniel Zimmerman 3/14/2005 Physics Mr. WindleyFor this project my intensions where to save money that I do not have. Balsa Wood is very expensive the way it is sold. When I was at Greenbrier Mall a few weeks ago I went into the hobby shop, called H
A.T. Still University - ENG - 112
Daniel Zimmerman Eng-112-03 Knight 2/08/2007 A Bilingual Society Ariel Dorfman's essay expresses an idea and dream by an expanding number of Americans in today's society. America does not have a set language; English is only spoken as a majority beca
A.T. Still University - BIO - 101
Daniel Zimmerman March 9th Biology Lab 1. Introduction: a) We are experimenting on Gel Electrophoresis and how it works. When a specimen is inserted in to the gel and electricity is applied the negative aspect of DNA moves closer to the positive pole
Dupage - ANTHRO - 1100
Jimmy Belanger March 17, 2008 Anthropology 1100 Anthropology in the News! The Grim Story of Maya Blue After going through New York Times online, and searching for anthropology articles I came across a wide variety of editorials to read. I didn't real
Emerson - VM - 100
Film History: Chapter 6 What were the Kuleshov experiments? What techniques were involved in Soviet montage? Why was it successful? Why did Dziga Vertov dislike fiction filmmaking? What caused the end of the montage movement? Film History: Chapter 8
Emerson - VM - 100
Film History: An Introduction (2nd Edition) David Bordwell and Kristen Thompson Chapter 4: France in the 1920's -Problems with imports and exports -Disunity within the film industry (small production facilities, production vs. distribution vs. exhibi
Emerson - VM - 100
HISTORY OF MEDIA ARTS I FINAL EXAMINATION REVIEW PART I MULTIPLE CHOICE 1. By 1928, two radio networks were on the air broadcasting programs. These two networks were A. ABC and CBS B. NBC and DuMont C. CBS and MBS D. NBC and CBS E. MBS and DuMont 2.
Emerson - VM - 100
HISTORY OF MEDIA ARTS I FINAL EXAMINATION REVIEW ANSWER KEY PART I MULTIPLE CHOICE 1. D 2. C 3. A 4. A 5. E 6. E 7. B 8. C 9. D 10. D 11. E 12. A 13. E 14. B 15. A 16. E 17. A 18. E 19. D 20. C 21. E 22. E 23. B 24. A 25. A 26. B 27. E 28. E 29. B 3
Emerson - VM - 100
HISTORY OF MEDIA ARTS I QUIZ #5 REVIEW PART I MULTIPLE CHOICE 1. Which of the following statements BEST describes the Kuleshov experiments? A. The experiments expanded on elements of German Expressionism B. The experiments resulted in the implicatio
Emerson - VM - 100
HISTORY OF MEDIA ARTS I QUIZ #6 REVIEW PART I MULTIPLE CHOICE 1. The film industry expanded in the late 1920's because of A. Vertical integration B. Horizontal integration C. Blind and block booking D. Talent poaching E. Quota quickies 2. Although i
Emerson - VM - 100
HISTORY OF MEDIA ARTS I QUIZ #7 REVIEW PART I MULTIPLE CHOICE 1. Which movie company was formed as a result of the advent of sound? A. Paramount B. RKO C. RCA D. Universal E. MGM 2. In order to be a Major, a film company had to be A. Vertically inte
Emerson - VM - 100
HISTORY OF MEDIA ARTS I QUIZ #8 REVIEW PART I MULTIPLE CHOICE 1. What created the problems confronting French film production between 1918 and 1928? A. Imported films continued to pour into France in the 1920's B. The situation for exports was littl
Emerson - VM - 100
HISTORY OF MEDIA ARTS I QUIZ #9 REVIEW PART I MULTIPLE CHOICE 1. According to the Thomas Schatz article, what is &quot;the equation of pictures&quot;? A. Without classical Hollywood, &quot;the genius of the system&quot; would be nonexistent B. Actor + Director + Produc
Emerson - VM - 100
Listening In: Radio and the American Imagination Susan Douglas Chapter 5: Radio Comedy and Linguistic Slapstick -Radio provided &quot;verbal agility&quot; to the mass audiences -The art of diction: proper English (BBC standards of pronunciation) vs. comedic, m
Dupage - ANTHRO - 1100
Jimmy Belanger February 4, 2008 Anthropology 1100 Extra Credit Major points There were a lot of major points from all the lectures. I think that one major point was the characteristics of culture. I thought that this was very important to help everyo
UConn - COMM - 100
This is a study guide for COMM 100 Exam 1. This is only a guide. Be aware that just because something does not appear below does not guarantee that it will not appear on the exam. Be sure that you can answer the following questions, including definit