4 Pages

# HW #6

Course: PHY 303K, Spring 2008

School: University of Texas

Word Count: 1289

Rating:

###### Document Preview

homework 06 FONTENOT, BRIAN Due: Feb 25 2008, 4:00 am 4. N 480 N Question 1, chap 7, sect 1. part 1 of 3 10 points Assume you are on a planet similar to Earth where the acceleration of gravity g 10 m/s2 . A plane 50 m in length is inclined at an angle of 16.3 as shown. A block of weight 500 N is placed at the top of the plane and allowed to slide down. 5. N 200 N 6. N 400 N 7. N 120 N 8. N 80 N Question...

##### Unformatted Document Excerpt
Coursehero >> Texas >> University of Texas >> PHY 303K

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.

Textbooks related to the document above:

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 - EE - 312
EE 312 Notes February 19, 2008Quiz for Friday Write a function to subtract two matrices from each other Write a function that takes no parameters and returns a random integer between 1 and 10 inclusive Question 13.3 Question 13.5 (a) Exams will be
University of Texas - ECON - 304K
HW #2 Economics 304K: Principles of Microeconomics Prof. Meg Ledyard Due Thursday, 9/27/07(25 Points total) Remember to type the homework except for charts and graphs. In order to get full credit, you must show all of your work. Homework is due in c
University of Texas - EE - 312
Announcements Lecture 2/28 Assignment 4 Designs due on Tuesday in class Q&amp;AInput file: 1 299 492 495 399 492 495 399 283 279 689 078 100 000 000 000Your DecMack Emulator(from a text file on disk)DecMack Machine language program Topics for
University of Texas - EE - 312
10 299 492 495 399 492 495 399 283 279 689 078 100 000 000 000 456 789 234 453 125 175 183 256 012 100 000 212 415 521 721 532 439 543 631 339 923 029 873 674 027 023 610 621 632 643 654 665 676 687698 609 201 805 229 429 100 100 456 789 234 453 12
University of Texas - EE - 312
Assignment 4: Computer EmulationEE312 The University of Texas at Austin Spring 2008 Assigned: Tuesday Feb 26 Design due: March 4, at the beginning of class Program due: Thursday, Mar 6, 11:59PM Total Value: 20 points total (see Deliverables below
University of Texas - EE - 312
Lecture 12 Announcements Assignment 3 Due today before midnight; Q&amp;AFriday's Quiz Write a program named cntword that counts the number of words in a text file (a word is any sequence of non-white-space characters). Obtain the file name from the
University of Texas - EE - 312
Assignment 3: Fun with Primes Assigned: Design Due: Program Due: Total Value: EE312 The University of Texas at Austin Spring 2008 Tuesday, February 12th Tuesday, February 19, at the beginning of class Tuesday, February 26, before midnight 20 po
University of Texas - EE - 312
Assignment 1: Introduction to the LRC Lab, Visual Studio, and CEE312 The University of Texas at Austin Spring 2008 Assigned: Due: Value: Tuesday, January 15, 2008 Thursday, January 24, 2008, before midnight 20 points (for successfully submitting a
University of Texas - EE - 312
Announcements Assignment 4 D i Designs due RIGHT NOW d RIGHT NOW Due Thursday before midnight Topics for today RecursionRecursion Recursion in C is simply when a function calls itself It is also an important problem solving approach A fun
University of Texas - EE - 312
Announcements Assignment 3 D Due next Tuesday by midnight t T d b id i ht Assignment 4 Out next Tuesday Out next Tuesday I'm out of town all next week Professor Krasner will be in next week to continue lectures Professor Krasner will be in n
University of Texas - EE - 312
University of Texas - EE - 312
Announcements Assignment 2 Offi Office Hours today d Topics for today Type conversions and casting Typedef and sizeof arrays 1D arrays 1DUsual Arithmetic Conversions in Expressions Promotions, e.g: A + B Promotions e g: A + BIn mixed type
University of Texas - EE - 312
Announcements Assignment 2 due today! Exam 1 next Thursday 50 minute exam (9:30 10:20) Topics for today Functions Scope of variables1Functions in a Nutshell A named collection of statements Somewhat like mathematical functions: y = f(
University of Texas - EE - 312
Announcements Assignment 2 Topics for today i f d Partially filled arrays Array algorithms Array algorithms Multidimensional arraysPartially Filled Array Arrays cannot grow after they have been allocated p ( ) y You can allocate more space
University of Texas - EE - 312
Announcements Blackboard Discussion Blackboard Discussion Avoid emailing your TAs with questions about assignments/lectures Course Communication Groups Opt out by today 5pm Optout by today 5pm For today: Finish floating point numbers Format
University of Texas - EE - 312
Announcements Assignment 3 out today Assignment 3 and 4 logisitics Exam 1 Thursday 55 minute exam (9:30 10:25) Program Development Measurement g p SLOC, person hours, logic defects Topics for today Topics for today Scope of variables Ex
University of Texas - EE - 312
Announcements Assignment 3 Exam 1 Graded Back in recitations on Friday Statistics on Thursday (hopefully) Read Chapters 11,12, 13 and 22 Topics for today Matrices Random numbers Strings (time permitting)Review: 2D Arrays Used for table
University of Texas - EE - 312
Announcements Assignment 2 posted today Assignment 2 posted today Quizzes C Coding Style C C di S l For today: Finish looping control statements (Chap. 6) More on types (Chap. 7)For loop The for statement has the formfor ( expression1 ; exp
University of Texas - EE - 312
E E 312 Notes 2.5Arrays Matrix Int variable [r][c] Int my2Darray [3,3] o That means evaluate 3 for 3 Use for statement and nested loops Allows you to make a change in the rows and columns Scan ( %f, &amp;energy[][]); 2d arrays Not easier for us to do
University of Texas - EE - 312
E E 312 Notes February 7, 2008--A named collection of statements o Somewhat like mathematical functions o Arguments are not required Does not need to return a value Functions are like &quot;mini-programs&quot; called by name Top line: declarations Libra
University of Texas - EE - 312
E E 312 Notes February 12, 2008Know Source Lines of Codes Know how many hours you spent on your assignment o Need to do this for Assignment #2 Global Variables o Also called external variables o Are declared outside of your main function o Should
University of Texas - EE - 312
Announcements Assignment 1 due tonight Assignment 1 due tonight Blackboard assignment manager More on Blackboard discussion board More on Blackboard discussion board getchar() For today: Introduction to algorithm design using flowcharts or ps
University of Texas - EE - 312
EE 312 Notes--------Malloc = sets a memory block for the size of bytes you need o Used as a pointer o Ex: p = malloc(sizeof(int); o Will return null if cannot find size o Make sure to check for null Calloc= allocates space for an ar
University of Texas - EE - 312
EE312 Lecture 2 Announcements Topics for today will answer the questions: Survey Results What is the C programming language ? What is C syntax ? What is C s nta ? Assignment statement Numerical expressions Numerical expressions Number stora
University of Texas - EE - 312
University of Texas - EE - 312
16 Frequency Table Type Instruction count 0 3 1 1 2 3 3 2 4 4 5 0 6 3 7 0 8 0 9 0 5 Frequency Table Type Instruction count 0 0 1 1 2 1 3 0 4 2 5 0 6 0 7 1 8 0 9 0 835 Frequency Table Type Instruction count 0 822 1 1 2 1 3 1 4 2 5 3 6 2 7 1 8 1 9 1 15
University of Texas - EE - 312
EE312 Introduction to Programming I d i P iSpring 2008 Christine Julien Christine Julien Assistant Professor c.julien@mail.utexas.edu Office: ACES 5.140 Offi ACES 5 140 Office Hours: TTh: 1112:30Introductions The Teaching Team Instructor Chris
University of Texas - PHY - 303K
homework 05 FONTENOT, BRIAN Due: Feb 18 2008, 4:00 am Question 1, chap 5, sect 5. part 1 of 2 10 points A child holds a sled on a frictionless, snowcovered hill, inclined at an angle of 26 . F87 N 01Question 4, chap 5, sect 5. part 2 of 2 10 p
University of Texas - EE - 312
E E 312 Notes 1.27For Loops For (expression 1; expression 2; expression 3) statement Ex: for (i=10; I &gt; 0; i-) o Printf(&quot;T Minus %d and counting\n&quot;, i) - I is at 10, check if I is greater than zero, then decrement I and go back and check to see if
University of Texas - PHY - 303K
oldmidterm 01 FONTENOT, BRIAN Due: Feb 14 2008, 3:00 pm Question 1, chap 1, sect 5. part 1 of 1 10 points A newly discovered Jupiter-like planet has an average radius 10.6 times that of the Earth and a mass 313 times that of the Earth. Calculate th
University of Texas - PHY - 303K
midterm 01 FONTENOT, BRIAN Due: Feb 13 2008, 11:00 pm1Mechanics - Basic Physical ConceptsMath: Circle: 2 r, r2 ; Sphere: 4 r2 , (4/3) r3 b2 Quadratic Eq.: a x2 + b x + c = 0, x = -b 2 a-4 a cCartesian and polar coordinates: y x = r cos ,
University of Texas - EE - 312
E E 312 Discussion Notes How to Read arrays: /* Int couter, coutner2 For (coutner=0, array[coutner] &lt; nextinput; coutner+); For (counter 2= arraysize; counter2&gt;count; coutner2 -) { Array[count2]=array[count 2-1]; Arrayszie+ Scanf(&quot;); */
University of Texas - PHY - 303K
homework 04 FONTENOT, BRIAN Due: Feb 11 2008, 4:00 am Question 1, chap 4, sect 5. part 1 of 3 10 points An athlete swings a 6.72 kg ball horizontally on the end of a rope. The ball moves in a circle of radius 0.995 m at an angular speed of 0.787 re
University of Texas - PHY - 303K
homework 04 FONTENOT, BRIAN Due: Feb 11 2008, 4:00 am Question 1, chap 4, sect 5. part 1 of 3 10 points An athlete swings a 6.72 kg ball horizontally on the end of a rope. The ball moves in a circle of radius 0.995 m at an angular speed of 0.787 re
University of Texas - PHY - 303K
homework 05 FONTENOT, BRIAN Due: Feb 18 2008, 4:00 am Question 1, chap 5, sect 5. part 1 of 2 10 points A child holds a sled on a frictionless, snowcovered hill, inclined at an angle of 26 . F87 N1= T = W sin = (87 N) sin 26 = 38.1383 N .Qu
University of Texas - PHY - 303K
homework 02 FONTENOT, BRIAN Due: Jan 28 2008, 4:00 am Question 1, chap 2, sect 5. part 1 of 3 10 points In deep space (no gravity), the bolt (arrow) of a crossbow accelerates at 129 m/s2 and attains a speed of 125 m/s when it leaves the bow. For ho
University of Texas - PHY - 303K
homework 03 FONTENOT, BRIAN Due: Feb 4 2008, 4:00 am Question 1, chap 3, sect 4. part 1 of 3 10 points Consider the two vectors M = (a, b) = a^+ i b ^ and N = (c, d) = c^ + d ^, where a = 4, i b = 4, c = 3, and d = -3. a and c represent the x-dis
University of Texas - PHY - 303K
homework 03 FONTENOT, BRIAN Due: Feb 4 2008, 4:00 am and Question 1, chap 3, sect 4. part 1 of 3 10 points Consider the two vectors M = (a, b) = a^+ i b ^ and N = (c, d) = c^ + d ^, where a = 4, i b = 4, c = 3, and d = -3. a and c represent the x
University of Texas - PHY - 303K
homework 07 FONTENOT, BRIAN Due: Mar 3 2008, 4:00 am Question 1, chap 8, sect 1. part 1 of 3 10 points A 3 kg block collides with a massless spring of spring constant 94 N/m attached to a wall. The speed of the block was observed to be 1.3 m/s at t
University of Texas - EE - 312
E E 312 NotesArithmetic Conversions With Floats o o Float + Double = Double Double + Int = DoubleNot With Floats o Int + int = int o Int &lt; unsigned int &lt; long int o Never combine unsigned ints and regular ints in expressions The value on the righ
University of Texas - EE - 312
EE 312 Notes Recursion using the stack Parameters are stored in the stack Stacks are LIFO Pushing = Adding an Item Popping = Removing an Item System Support Maintains an activation record Activation Record (Stack Frame) looks like the following o Inc
University of Texas - EE - 312
EE 312 NotesExam 2: Chapters 9.6 11-13; 15-17; 22. File Inclusion Want to include own file. Use #include &quot;filename&quot; Looks in local directories first Only One source file must contain a definition of main Create header files to include just your hea
University of Texas - PHY - 303K
homework 06 FONTENOT, BRIAN Due: Feb 25 2008, 4:00 am Question 1, chap 7, sect 1. part 1 of 3 10 points Assume you are on a planet similar to Earth where the acceleration of gravity g 10 m/s2 . A plane 50 m in length is inclined at an angle of 16.
University of Texas - PHY - 303K
midterm 01 FONTENOT, BRIAN Due: Feb 13 2008, 11:00 pm1Mechanics - Basic Physical ConceptsMath: Circle: 2 r, r2 ; Sphere: 4 r2 , (4/3) r3 b2 Quadratic Eq.: a x2 + b x + c = 0, x = -b 2 a-4 a cCartesian and polar coordinates: y x = r cos ,
University of Texas - EE - 312
EE312 C Coding Standards Spring 2008Writing code that is easy for others (or you later) to read is an important part of programming. Style entails a program's readability and logic structuring. Style is almost as important as correctness in program
University of Texas - EE - 312
E E 312 Discussion 1.18.2008 Most general computer Consist of a microprocessor o o o Intel x86 Takes instructions Computes a resultProgrammer o o o o o Job is to write instructions to build jobs Use programming language Our language is C Something
University of Texas - EE - 312
Dicussion Session EE 312 1/25/08Printf (&quot; %4d&quot;, 86); Printf(&quot;%06d&quot;, 86); Printf(&quot;%4d&quot;, 10405); shows*/ Printf(&quot;%12.5e, 30.253); Control Statements: If(i&gt;2) J = 100; Else J =-100; Can set Multiple Parameters= = = =|_|_86| |000086| |10405| /* On
University of Texas - EE - 312
C PROGRAMMING A Modern ApproachAnswers to Even-Numbered ExercisesSusan A. Cole K. N. KingW W Norton &amp; Company New York LondonCopyright 1996 W. W. Norton &amp; Company, Inc. All rights reserved. W. W. Norton &amp; Company, Inc. 500 Fifth Avenue, Ne
University of Texas - EE - 312
EE 312 Programming Project #3 Flow Chart Brian Fontenot (BLF339) 15670 F: 11-12
University of Texas - EE - 312
EE 312 Programming Project #3 Flow Chart Brian Fontenot (BLF339) 15670 F: 11-12Start programdeclare variablesdeclare arrayIntialize arrayIntialize variablesprompt user informationscan for user inputread user inputsort out prime num
University of Texas - EE - 312
10 299 492 495 399 492 495 399 283 279 689 078 100 000 000 000 456 789 234 453 125 175 183 256 012 100 000 212 415 521 721 532 439 543 631 339 923 029 873 674 027 023 610 621 632 643 654 665 676 687698 609 201 805 229 429 100 100 456 789 234 453 12
University of Texas - EE - 312
EE312 Introduction to Programming I d i P iSpring 2008 Christine Julien Christine Julien Assistant Professor c.julien@mail.utexas.edu Office: ACES 5.140 Offi ACES 5 140 Office Hours: TTh: 1112:30Introductions The Teaching Team Instructor Chris
University of Texas - EE - 312
EE312 Lecture 2 Announcements Topics for today will answer the questions: Survey Results What is the C programming language ? What is C syntax ? What is C s nta ? Assignment statement Numerical expressions Numerical expressions Number stora
University of Texas - EE - 312
Micro architecture, logic circuits, and device technology -1st layer hardware vs. software Machine assembly language instruction set machine code High level programming language - c programming Not finished Need the designModels, design, and abstr
University of Texas - EE - 312
Notes 1.17 The History of C Was called NB o BCPL Orignated from the UNIX System By Denins Ritchie in Bell Labs Between 1969 and 1973 Became popular in the 1980s Original C o Called K&amp;R C By Kernighan and Ritchie o ANSI C ANSI Standard X3.159-1989
University of Texas - EE - 312
Read Chapter 3, 7, 22 Know Chapter 2 for Quiz on FridayNotes 1.22 Floats Float single precision Double double precision Long double extreme precision Must contain decimal point or exponent By default stored as double-precision numbers F or f, L
University of Texas - EE - 312
EE 312 Notes January 24, 2008Selection o Deciding among alternative executive paths Boolean values stored in variables Tested by program Using If and Else Statements Nested and Cascaded If statements Using Switch Statements Conditional Operators
University of Texas - EE - 312
EE 312 Notes January 24, 2008Sequence Follow Sequence 1, 2, 3 Condition is True Do until false Iteration False loop back to beginSelection Condition is true go to end Condition is not true, then do functionSelection o Deciding among a
University of Texas - EE - 312
E E 312 Notes Argc = number of pointers Char *argv[] = each value that is pass into function Int main ( int argc, char *argv[]) Command line &gt;myprog.c one two three Argc = 4 Argv[0] = &quot;my prog.c&quot; Argv[1]=&quot;one&quot; Argv[2] = &quot;two&quot; Argv[3] = &quot;three&quot; File i
University of Texas - BIO - 311C
Chapter 7Membrane Structure and FunctionLecture OutlineOverview: Life at the Edge The plasma membrane separates the living cell from its nonliving surroundings. This thin barrier, 8 nm thick, controls traffic into and out of the cell. Like all
University of Texas - BIO - 311C
Chapter 13Meiosis and Sexual Life CyclesLecture OutlineOverview: Hereditary Similarity and Variation Living organisms are distinguished by their ability to reproduce their own kind. Offspring resemble their parents more than they do less closely