# 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.

1 Page

### ch8.2c

Course: EME 5, Fall 2008
School: UC Davis
Rating:

#### Document Preview

int #include&lt;stdio.h&gt; main(){ int a; float b=.1234, c=1, d, e; for(a=0;a&lt;=4; a=a+1){ e=b*pow(10,a); d=c*pow(10,a); printf(&quot;%5.0f%13.3E\n&quot;,d,e); } return 0; }

Register Now

#### Unformatted Document Excerpt

Coursehero >> California >> UC Davis >> EME 5

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.
int #include<stdio.h> main(){ int a; float b=.1234, c=1, d, e; for(a=0;a<=4; a=a+1){ e=b*pow(10,a); d=c*pow(10,a); printf("%5.0f%13.3E\n",d,e); } return 0; }
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:

UC Davis - EME - 5
/* File: #include #include #includecommandline.c */ &lt;stdio.h&gt; &lt;stdbool.h&gt; &lt;stdlib.h&gt;int main(int argc, char *argv[]) { char *s, *cmd; int a_option = false; / default, no -a option int v_option = false; / default, no -v option cmd = argv[0]; if(ar
UC Davis - EME - 5
1 John Smith 101 3.4 2 Mary Jone 102 3.2 3 Bill Bush 103 2.4 4 George Clinton 104 2.8 (more data)
UC Davis - EME - 5
/evenodd.c #include&lt;stdio.h&gt; int main() { int x; printf(&quot;Please imput integer\n&quot;); scanf(&quot;%d&quot;, &amp;x); if(x%2)=0) { printf(&quot;Even\n&quot;); } else { printf(&quot;Odd\n&quot;); } return 0; }
UC Davis - EME - 5
/factorial.c #include&lt;stdio.h&gt; int main() { int x, t; printf(&quot;Please input a number\n&quot;); scanf(&quot;%d&quot;, &amp;x); for (x*(x-1), t=1; x&gt;=1; x-) { t*=x; } printf(&quot;The factorial is equal to %d\n&quot;, t); return 0; }
UC Davis - EME - 5
/money.c #include&lt;stdio.h&gt; #define N 30 int main() { float total, p, r, k; printf(&quot;Please input rate of interest in decimal form\n&quot;); scanf(&quot;%fl&quot;, &amp;r); printf(&quot;Please input pricipal invested\n&quot;); scanf(&quot;%fl&quot;, &amp;p); k=1+r; total=(p*(pow(k,N); printf(&quot;%
UC Davis - EME - 5
/projectile.c #include&lt;stdio.h&gt; #include&lt;math.h&gt; #include&lt;chplot.h&gt; #define M_G 9.80 #define NUM 100 double v0, theta0; double func(double x) { double y; y = tan(theta0)*x -M_G*x*x/(2*v0*v0*cos(theta0)*cos(theta0); return y; } int main() { double x0
UC Davis - EME - 5
#include&lt;stdio.h&gt; int f(int n, int m, int a[n][m], int t[m][n]); int f(int n,int m,int a[n][m],int t[m][n]){ int i,j; for(i=0; i&lt;n; i+) { for(j=0; j&lt;m; j+) { t[j][i] = a[i][j]; } } return a[i][j]; } int main(){ int a[n][m] = {1,2,3,4,5,6}; int t[m][n
UC Davis - EME - 5
#include&lt;stdio.h&gt; #include&lt;math.h&gt; #define VOL(r) r*r*r*4.0/3.0*M_PI int main() { float r, t; printf(&quot;Radius Volume\n&quot;); printf(&quot;-\n&quot;); for(r=1;r&lt;=10;r+){ t= VOL(r); printf(&quot;%3.0f %12.4f\n&quot;, r, t); } return 0; }
UC Davis - EME - 5
/volume.c #include &lt;stdio.h&gt; #include &lt;math.h&gt; float volume(float r){ float s; s=(M_PI*r*r*r*(4.0/3); return s; } int main () { float vol= volume(5); printf(&quot;The volume of the sphere is equal to %f\n&quot;, vol); return 0; }
UC Davis - EME - 5
#include&lt;stdio.h&gt; #define WEEK 5 #define DAY 7 int main () { int a [WEEK][DAY]={367,654,545,556,565,526,437, 389,689,554,526,625,537,468, 429,644,586,626,652,546,493, 449,689,597,679,696,568,522, 489,729,627,729,737,598,552}; int i,j,total=0,weektota
Illinois State - POL - 105
Constitution Party 1. Was Founded as the U.S. Taxpayers party in 1992. The parties official name was changed to Constitution Party in 1996. 2. According to the Constitution Party of Illinois website which states that &quot;The Constitution Party stands fi
Illinois State - POL - 105
Dear Senator Obama:My name is and I am a undergraduate student at Illinois State University. As a college student, I am writing you to express my strong appreciation of your support of the College Cost Reduction and Access Act.This bill which wil
Illinois State - POL - 105
Exam #3Fall 2007 American Government &amp; Politics POL 105 Erik RankinGrade:Name_ UID # _Points:/100Section I Short Answer Use the back if necessary (One paragraph minimum 10 pts each) 1. Discuss the influences that shape our political opin
Maryland - ECON - 424
Econ 424 Spring 2003 Midterm April 3, 2002Your Name _ Student ID _Midterm for Econ 424 Spring 2003 This midterm is an open book exam. Please feel free to use any material, hard copy or computer file. But you must work independently. You only need
Illinois State - HIST - 111
Fredrick Douglass changes his view of slavery and slave owners many times throughout his life as shown in My Bondage and My Freedom. As a young boy Fredrick Douglass fears the whip from the first time he was a witness to the first beating of a slave.
Illinois State - POL - 105
Pol 105 Judicial Review The Judicial Experience was a very interesting event that gave us an ability to see how the court functions on a day to day basis. Most people only have experience with what they hear on the news regarding high profile cases l
Illinois State - POL - 140
Khaled Hosseini, The Kite Runner ( Riverhead Books, Inc. 2005), 384pp. &quot;I have been peeking into that deserted alley for the last twenty-six years.&quot;,(pp1). The Kite Runner is a wonderful novel about humanity told through the eyes of Amir. Amir belong
Illinois State - HIST - 111
Nisei Daughter by Monica Sone tells the true autobiographic tale of growing up as a young Japanese-American on Seattles waterfront during the 1930s, the experience of being &quot;relocated&quot; during World War II, and her initial adjustment to life outside C
Illinois State - COM - 110
Purpose: To persuade people that due to the growing use of multimedia communication people should be taught how to communicate using forms of communication in addition to the oral communication commonly taught at schools. Thesis: In a constantly grow
Illinois State - COM - 110
Mrs. Owens Com 110 Synthesis Paper &quot;According to most studies, people's number one fear is public speaking. Number two is death. Death is number two. Does that sound right? This means to the average person, if you go to a funeral, you're better off i
Illinois State - POL - 105
0In The Presidential Difference by Fred Greenstein, Greenstein analyzes the leadership style of the &quot;modern presidents&quot; a term that describes FDR to George W. Bush. Greenstein points out that recently the presidential role has seen a great increase
RPI - PHYS - 2330
u |w p | n | | yz | | | tuz n y n u !AsvswW{~yvar~wq~la{#s yw x u uz n p t zu uw y }zu nu wuz w p tr p n u n z t w r p | | !kAAasslhl{alslsl~uFa{sl~uvt{Vsk~ww e r u a u l~ { alT # h h} ee AlT } eA r u ws
University of Texas - PHY - 303K
homework 01 KERR, KELSEY Due: Jan 18 2008, 11:00 pm Can molecules be broken into parts? Question 1, chap 1, sect 1. part 1 of 2 10 points The rectangular and polar coordinates of a point are (x, y) and (r, ), where x = 9 and = 56 . Determine the v
University of Texas - PHY - 303K
homework 02 KERR, KELSEY Due: Jan 21 2008, 11:00 pm Question 1, chap 2, sect 1. part 1 of 3 10 points Two cars approach each other; both cars are moving westward, one at 79 km/h, the other at 58 km/h. What is the magnitude of the velocity of the fi
University of Texas - PHY - 303K
homework 03 KERR, KELSEY Due: Jan 25 2008, 11:00 pm Separating variables, Question 1, chap 2, sect 5. part 1 of 1 10 points An electron, starting from rest and moving with a constant acceleration, travels 5.9 cm in 7 ms. What is the magnitude of th
McGill - POLI - 212
A. Historical Legacies1. The long 19th Century (1789-1945):. begins with the French Revolution and ends w/ military defeat of fascism What kinds of political innovations are introduced in Europe as a consequence of the French revolution? 1) Introd
University of Texas - PHY - 303K
homework 04 KERR, KELSEY Due: Jan 28 2008, 11:00 pm Question 1, chap 3, sect 3. part 1 of 2 10 points A boy runs 12.7 blocks North, 12 blocks Northeast, and 7.6 blocks West. Determine the length of the displacement vector that goes from the startin
University of Texas - PHY - 303K
homework 05 KERR, KELSEY Due: Feb 1 2008, 11:00 pm Question 1, chap 3, sect 4. part 1 of 3 10 points Consider two vectors A and B shown on the following isometric diagram: z Explanation: Basic Concept: ^ i A B = Ax Bx = B Ay By + + ^ Ay By ^ k Az
FSU - BIOLOGY - BSC2010
NAME_Last 4 digits of Social Security Number_ BSC2010-02 Biological Science I Jan. 31 2008 Test # 1 - 100 pts. You are on your honor to neither give nor receive help with this exam.Part I: Multiple Choices (80 pts; choose one correct answer for eac
FSU - BIOLOGY - BSC2010
NAME_Signature_ BSC2010 Section 02 Feb. 26 2008 Test # 2 - 100 pts. You are on your honor to neither give nor receive help with this exam. (One correct answer per question)1. All of the following are part of a prokaryotic cell except a. DNA b. a ce
FSU - BIOLOGY - BSC2010
NAME_Signature_ BSC2010 Section 02 March. 27 2008 Test # 3 - 100 pts. You are on your honor to neither give nor receive help with this exam. (One correct answer per question) 1. What is the name for the special region on a duplicated chromosome that
FIU - FINANCE - 4604
Why Exchange Traded Funds?Why Exchange Traded Funds?by ETFZone staffExchange-Traded Funds, or ETFs, are index funds that trade just like stocks on major stock exchanges. Want to invest in the market qui ckly and cheaply? ETFs are the most practi
FIU - FINANCE - 3403
Commercial Banking Corporate Finance Financial Planning Insurance Investment Banking Money Management Real EstateCredit Analyst This is a common entry level job which requires that you evaluate business and consumer loan applications made to your b
FIU - FINANCE - 3403
Technical analysis is a method of forecasting price movements by looking at purely market-generated data. Price data from a particular market is most commonly the type of information analyzed by a technician, though most will also keep a close watch
FIU - FINANCE - 4604
Treasury and Eurodollar Futures Tumble, Dollar PacesFRIDAY, 05 JANUARY 2007 23:24:50 GMT Printer Friendly | Email Article | RSS | Previous articlesWritten by David Rodriguez and John Kicklighter, Currency AnalystsChange in Nonfarm Payrolls (DEC)
FIU - FINANCE - 4604
Euro (EUR) Traders Insecure Ahead of ECB Rate DecisionWEDNESDAY, 10 JANUARY 2007 21:57:32 GMT Printer Friendly | Email Article | RSS | Previous articlesWritten by Kathy Lien, Chief StrategistEuro (EUR) Traders Insecure Ahead of ECB Rate Decision
Purdue - IDIS - IDIS 373/4
AMISTADFILM REVIEWSJoseph C. Dorsey IDIS 373, 491M Spring 20081/30/20081.LA AMISTADHOME | BIOLOGY | FILMS | GEOGRAPHY | HISTORY | INDEX | INVESTORS | MUSIC | SOLAR BOATS | SPORTLa Amistad (Spanish: &quot;Friendship&quot;) was a 19th-century two-ma
Cornell - AS&RC - 100
Lionel Sims III AS &amp; RC 100.4 Prof. J. YoungSuper Fly and its Effect on my View of BlaxploitationRecently I screened the movie Super Fly with my class and we discussed it based on its value to the Blaxplopitation movement. The term Blaxploitation
Cornell - BIO G - 105
The Relationship between the Sex of an Individual and their Heart Rate and Breathing Rate after Various Amounts of Aerobic ExerciseLab T.A.: Neil Vijay Shah Date of Lab: 10/14/07Lionel Sims IIIAbstract This experiment was intended to analyze th
Cornell - CHEM - 2070
Densities of Liquids and Solids By Lionel Sims IIILab Instructor: Roy September 14, 2007Results and Discussion: The densities of an unknown solid and an unknown liquid were attained through measurements and calculations and then looked over for h
Cornell - AS&RC - 100
Lionel Sims III AS &amp; RC 100.4 Prof. J. Young&quot;Do the Right Thing&quot; and its Social Implications Spike Lee's film, &quot;Do the Right Thing&quot; focused on many aspects of the lowerclass black Brooklyn neighborhood all with the purpose of presenting the complex
McGill - POLI - 212
Patterns of political developmentInstitutional convergence in West Continuity, Divergence in EastWestern Incremental change vs. Eastern statist discontinuity W. Mainstreaming of political options / Territorial stability vs. E. instability of bord
Cornell - AM ST - 141
Lionel Sims III 11/13/07 American Studies 141 Easy Rider Analysis In the film Easy Rider by Peter Fonda, a plethora of metaphors and symbols present themselves to the viewer in an attempt to express a wide variety of different concepts and ideas. One
McGill - POLI - 212
Early State Formation: Britain and France(post war settlement: reference to how class conflict is resolved in various cases and how the patterns of consensus which emerge in the post war period, corporatism: how relations between labor and business
Cornell - BIO G - 105
The Effects of Temperature and Concentration on the Activity of the Enzyme Catalase found in BroccoliLab T.A.: Ali McGregor Date of Lab: 09/16/07Lionel Sims IIIAbstract This lab report basically evaluates the function of enzymes. In particular
Cornell - AM ST - 141
Lionel Sims III American Studies 141 Jonathan Pickett 12/02/07Analysis of Meanings within Ghost Town and Fight ClubIn the two stories of Ghost Town by Robert Coover, and the movie Fight Club (based on the original novel with the same name by Chuc
McGill - POLI - 212
Post-war settlements and break-downs 1945-1970Class alignments (political expressions) and Post war settlements:labour included/excludedDistinctive problems: Germany, UK, France and ItalyEach cases develops distinctive post-war settlement. Becau
McGill - POLI - 212
Social Democracy and The Electoral Dilemma Germany Post war (PW) Settlement1) De-Radicalization 2) Wage Restraint 3) &quot;Chancellor Democracy&quot; 4) State Regulation-Social Market Economy: importance of state regulation in the political economy in West G
Cornell - CHEM - 2070
Hot and Cold PacksBy Lionel Sims IIILab Instructor: Anund February 15, 2008Results and Discussion: This lab was broken into two different weeks in order to fit in all the different procedures and calculations. The ultimate purpose of this exper
Cornell - CHEM - 342132
Iodine Clock ReactionBy Lionel Sims IIILab Instructor: Anund February 29, 2008Results and Discussion: This lab was done with the intention of determining the complete concentration and temperature dependence of the reaction rate for a reaction
Cornell - CHEM - 2070
Results and Discussion: Transition metal complexes come in a variety of colors which arise from the absorption of visible light by the complexes. The color of the light absorbed is complementary to the color that is seen. The wavelength of the colors
Purdue - STAT - STAT 113
1- A 2- E 3- A 4- B 5- E 6- C 7- A 8- B 9- A 10- D 11- A 12- C 13- E 14- B 15- C 16- A 17- D 18- D 19- B 20- A 21- A 22- C23- B 24- A 25- A(1) How well does the number of beers a student drinks predict his or her blood alcohol content? Twenty fiv
Cornell - CHEM - 342132
pKa of an Unknown Acid-Base Indicatorby Lionel Sims IIILab Instructor: Anand April 18, 2008Results and Discussion: The purpose of this lab was to determine the pKa of an indicator provided by the lab instructor. Both qualitatively and quantitat
Cornell - CHEM - 342132
Molecular Shape and Polarity By: Lionel Sims IIILab Instructor: Roy November 2, 2007Results and Discussion: In this lab, a computer program named SPARTAN was introduced to us and we were made familiar with it before using it to view and craft par
Cornell - CHEM - 342132
Optical Spectroscopy By: Lionel Sims IIILab Instructor: Roy October 26, 2007Results and Discussion The results on the attached supplementary materials are the wavelengths of the various substances burned and measured with a spectrometer. For thes
Cornell - BIO G - 106
Lionel Sims III 02/06/08 Lab T.A.: Dr. Darlene Campbell (Parts A and B) Determining Allelic Frequencies Using PCR Technology and Gel Electrophoresis Abstract This experiment was designed to provide understanding of and practice with PCR (polymerase c
Cornell - AS&RC - 100
Lionel Sims III AS &amp; RC 100.4 Prof. J. YoungThe Personal Response EssayI recently screened a shortened version of the film &quot;The Birth of a Nation&quot;, and my initial response was that of somewhat shock. My shock came from the idea that a movie with s
Cornell - AM ST - 141
Lionel Sims III American Studies 141 Jonathan Pickett In-Depth Literature Analysis In Nadine Gordimer's novel &quot;The Pickup&quot; diction and syntax lend to the expression of central meanings and concepts that arise in other passages from novels such as &quot;Th
Cornell - AM ST - 141
Lionel Sims III American Studies 141 Jonathon Pickett Passage AnalysisIn the novels &quot;One Flew over the Cuckoo's Nest&quot; by Ken Kesey and &quot;On the Road&quot; by Jack Kerouac, particular syntax and diction of the two reflect each other in the sense that they
Cornell - BIO G - 106
Understanding the Ecology of the Oral Cavity and its Susceptibility to Disease/Decay through Environmental and Microorganism AnalysisLab T.A.: Stacy Scofield Date of Lab: 03/30/08Lionel Sims IIIAbstractThe mammalian oral cavity is one of the
Cornell - CHEM - 342132
The Spectrochemical Series By: Lionel Sims IIILab Instructor: Roy November 30, 2007Results and Discussion: The experiment for this week focused on transition metal complexes, you see transition metal complexes can be in a variety of colors which