270 likes | 413 Vues
This guide delves into the power of Visual Basic programming for Excel, shedding light on the dual impact of programming on engineering skills. It explores common misconceptions among programmers and the importance of debugging and understanding code functionality. The document includes practical examples, such as calculating the area of a circle using intrinsic functions, and offers valuable insights into the flow of fluid dynamics equations. Gain confidence in enhancing your programming abilities and understanding the relevance of coding in engineering.
E N D
Visual Basic Programming Using Excel September 12, 2006
What Programming Will Do • Make a good engineer better • Make a bad engineer worse by magnifying his/her ineptitude
Common Lies of Programmers • The program ran fine yesterday and I did not change a thing but now it will not work. • I used the same program as was given in class, but it does not want to work for me. • I looked through all of the code 10 times and I am sure that there are no mistakes. Why won’t it run?
y = 0 For k = 1 To 50 Step 1 y1 = 0 For i = 1 To 20 Step 1 y1 = y1 + k + i^2 Next i y = y + y1 Next k
Open up Excel and write a function subroutine which calculates the area of a circle given its diameter.Before writing the program, listen to the instructor about macro security.
Fully Developed Flow of a Quasi-Incompressible Fluid W H y x