{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

homework_3

# homework_3 - ECE 1574 Homework Set#3 Engineering Problem...

This preview shows pages 1–2. Sign up to view the full content.

ECE 1574 Homework Set #3 Engineering Problem Solving with C++ Due date: 2/7/10 by 11:55PM Beware of the Super Bowl time sink on Sunday This assignment is to be done individually Solve problems 2, 3, 4, 5, 6, and 7 during the lab session. Work the additional exercises later. Potentially useful information: The cmath library provides the function atan2( double y, double x ), which returns the arctangent of the ratio y/x, where y is a “rise” and x is a corresponding “run.” The arctangent of 1.0/1.0 is 45 degrees, which in radians is π/4. This fact implies one good way of getting the computer to calculate the value of π. Problem 1 Use Einstein’s mass-energy equivalency to determine the energy of a mass of 5, 10, and 20 kilograms. Perform your calculations using integers and a second set of calculations using float values. Explain why the two sets of results are different. What are the units of energy? You lab instructor will show you how to create a global symbolic constant named DOUBLE_FEED that is defined to be two new line feeds.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern