HW1 preprogramming

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

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

View Full Document Right Arrow Icon
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.
Background image of page 1

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

View Full DocumentRight Arrow Icon
Background image of page 2
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

This note was uploaded on 02/15/2011 for the course ECE 1574 taught by Professor Rpbroadwater during the Spring '08 term at Virginia Tech.

Page1 / 2

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

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online