HW1 preprogramming

# HW1 preprogramming - 2 a = E hcÎ the units for stress would...

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

Gabriela Velez Student ID: 905428081 PID: gabby1 HW #1: Chapter 1 Pregrogramming exercises 2 and 4 1. a. = S LdcI the units for stress would be lbs x inches x inchesinches4 = lbsinches2 b. = S LdcI = . I 21 4 in4 = c 6 in = L 700lbs = d 8ft = ( ) . S 700lbs8ft 6in 21 4in4 = 2x10 3 lbsinches2 c. Inputs would be L is weight in pounds, I for the beam’s rectangular moment of inertia in units of inches 4 , d is the distance in inches, c is one half the height in inches. The output would be S for stress in pounds per inches squared. The algorithm would start out by inputting the weight, distance, and height and multiplying the three variables together. The last variable, I for the moment of inertia, is inputted. Then taking the result of the multiplication and dividing it by the moment of inertia and outputting the result. 2. a.

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.

Unformatted text preview: 2. a. = E hcÎ» the units for stress would be Joulessecmsm = Joule b. = E hcÎ» = .-/ h 6 6256x10 34Joules sec = , , / c 299 792 458 m s = .-Î» 5 9x10 6 meters = .-/ ( , , ) .- E 6 6256x10 34Joules sec 299 792 458ms 5 9x10 6 meters = 1.2x10-30 Joule c. The inputs would be h is known as Planckâ€™s constant, c for the speed of light which is 299,792,458 m/s, and for the wavelength of light in meters. The outputs would be E which Î» is the energy of the photon. The algorithm would start off with inputting Planckâ€™s constant and the speed of light and multiplying them together. Then inputting the last variable which is the wavelength of light in meters. Then taking the result of the multiplication and dividing it by the wavelength of light and outputting the result....
View Full 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