270 likes | 396 Views
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.
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