DOC PREVIEW
MIT 16 01 - Study Notes

This preview shows page 1-2-3 out of 9 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 9 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 9 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 9 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 9 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Massachusetts Institute of Technology Department of Aeronautics and Astronautics Cambridge, MA 02139 16.01/16.02 Unified Engineering I, II Fall 2003 Problem Set 5 Name: Due Date: 10/7/03 Time Spent (min) C11 C12 C13 S2 S3 S4 S5 S6 Study Time Announcements: Thermo Exam on Friday, 9amUNIFIED ENGINEERING Fall 2003 I. Kristina LundqvistProblem C11. (Unified Computers and programming) 1. What is the output of the code fragment in Figure 1? 2. Write an Ada95 program to implement the Euler’s 2nd order integration method. Turn in a hard copy of your algorithm and code listing and an electronic copy of your code. 3. Write an Ada95 program to accept 10 numbers from the user and find the average of the numbers. Implement your code using the WHILE – LOOP construct. Turn in a hard copy of your algorithm and code listing, and an electronic copy of your code. Hint: Compute the sum every time the user enters a number and the average outside the loop. Count := 1; for I in 1 .. 10 loop if I MOD 2 = 0 then for J in 1 .. 10 loop Count:= Count + 2; end loop; else for J in 1 .. 5 loop Count := Count - 1; end loop; end if; end loop; Figure 1. Code FragmentUNIFIED ENGINEERING Fall 2003 I. Kristina LundqvistProblem C12. (Unified Computers and programming) 1. Write an Ada95 program to iteratively compute the factorial of a number (get the number from the user). Turn in a hard copy for your algorithm and code listing, and an electronic copy of your code. 2. Does your program work for all possible inputs? List the instances in which it fails. 3. Write a recursive Ada95 program to compute the first ‘N’ Fibonacci numbers, where ‘N’ is user defined. Turn in a hard copy for your algorithm and code listing, and an electronic copy of your code. Hint: The Fibonacci numbers are the numbers of the series 1, 1, 2, 3, 5, 8, 13, 21, … What is the mathematical formula used to compute the numbers? Do you need more than one function/ procedure?UNIFIED ENGINEERING Fall 2003 I. Kristina Lundqvist Problem C13. (Unified Computers and programming) 1. Solve the following recurrence equation using the iteration method. Show all the steps in your derivation. c n = 1 n T  n) ( = aT √+cn n > 1 b↵ Where a,b,c >=1.Unified Engineering I Fall 2003 Problem S2 (Signals and Systems) For the circuit below, solve for all the branch currents and branch voltages, using the following steps. (Note: This problem will be easier once you learn the node method and the loop method. You should do just this one problem the long way.) 1. Label each circuit element with a branch voltage and branch current. 2. Write down Kirchhoff’s voltage law for each loop in the circuit. 3. Write down Kirchoff’s current law for all the nodes, except one. 4. Write down the constitutive relation for each circuit element. 5. Verify that there are as many equations as unknowns, and solve for all the unknowns. Hint: You should do this in an organized way, as there are a large number of variables.    V1 = 4 V, R2 = 4 Ω, R3 = 6 Ω, R4 = 12 Ω, V5 = 6 V� Unified Engineering I Fall 2003 Problem S3 (Signals and Systems) Ð+R5R3R2R4V7I6R11. For the circuit above, find the branch voltages and branch currents using the node method. The component values are: R1 = 3 Ω R2 = 2 Ω R3 = 3 Ω R4 = 3 Ω R5 = 1 Ω I8 = 5 A V7 = 3 V 2. Verify that the net power dissipation of the circuit is zero, that is, that 7invn = 0 (1) n=1Unified Engineering I Fall 2003 Problem S4 (Signals and Systems) For the circuit of Problem S3, find the branch voltages and branch currents using the loop method. Of course, your answer should agree with that of Problem S3.Unified Engineering I Fall 2003 Problem S5 (Signals and Systems) Consider the circuit below: –+–+R3R6R5R4R7V2V1+–voSupernodewhere R3 = 2 Ω, R4 = 1 Ω, R4 = 2 Ω, R6 = 2 Ω, R7 = 1 Ω, V1 = 10 V, V2 = 5 V Find the output voltage, v0, using the node method. Note that because the two voltage sources do not have a common terminal, it is not possible to choose a ground node that is the negative terminal of both. As a result, one of the voltage sources will be “floating.” Therefore, you will have to use the “supernode” method discussed in recitation. The basic idea is to add the two node equations for the “floating” voltage source. Each node equation has one term for the unknown current through the voltage source. By adding the two equations together, the current terms cancel. In essence, you are applying conservation of charge to the whole dashed region, rather than just to a node. Note: Feel free to use the lo op method to check your answer, but use the node method for your final answer.R2R1R3R4I5Unified Engineering I Fall 2003 Problem S6 (Signals and Systems) Find the Thevinin and Norton equivalent circuits for the circuits below: 1. R2–+R3R1V4where R1 = 3 Ω, R2 = 4 Ω, R3 = 2 Ω, V4 = 12 V 2. where R1 = 1 Ω, R2 = 4 Ω, R3 = 4 Ω, R4 = 1 Ω, V5 = 10


View Full Document

MIT 16 01 - Study Notes

Documents in this Course
Fluids

Fluids

3 pages

Fluids

Fluids

4 pages

Fluids

Fluids

4 pages

Fluids

Fluids

5 pages

Load more
Download Study Notes
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Study Notes and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Study Notes 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?