{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# Lecture2 - Engineering Computation ENG 1D04 ENG 1D04...

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

Engineering Computation ENG ENG 1D04 1D04 Lecture 2: Algorithms Mihai Albu

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

View Full Document
© Copyright 2008 Mihai Albu & Alan Wassyng 1 Announcements square4 Labs (4/5) square4 Quizzes (next week) square4 Comp. club http://www.youtube.com/eng1d04
© Copyright 2008 Mihai Albu & Alan Wassyng 2 Let’s start working… square4 You should take advantage of Debug facilities User Controls repository Predefined classes Design mode facilities

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

View Full Document
© Copyright 2008 Mihai Albu & Alan Wassyng 3 Debug square4 A step-by-step execution of the program that allows variables observations, values, errors examinations. Build your project Set a breakpoint (F9) Run with F5 Execute one step at a time (F10) Examine variables, errors (hope not), expressions
© Copyright 2008 Mihai Albu & Alan Wassyng 4 Debug square4 It will greatly improve your understanding of code execution, loops, ifs, etc

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

View Full Document
© Copyright 2008 Mihai Albu & Alan Wassyng 5 Some samples… square4 Try debug your program… Use breakpoints Declare variables Implement ifs Implement loops
© Copyright 2008 Mihai Albu & Alan Wassyng 6 Algorithms square4 An algorithm is a step-by-step process that can be used to solve a specific problem square4 The algorithm could be implemented by manual operations performed by a person (or group of people), or could be implemented by some automated means - on a computer for example, or a combination of the above

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

View Full Document
© Copyright 2008 Mihai Albu & Alan Wassyng 8 Solving the Quadratic square4 So, we have a solution square4 Points to consider: Lots of ways of solving this problem (pay attention to the order of execution) Are we done?No square4 How should we document it? square4 How should we implement it now in C#? square4 How should we test it adequately?

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