{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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

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

View Full Document Right Arrow Icon
Engineering Computation ENG ENG 1D04 1D04 Lecture 2: Algorithms Mihai Albu
Image of page 1

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

View Full Document Right Arrow Icon
© Copyright 2008 Mihai Albu & Alan Wassyng 1 Announcements square4 Labs (4/5) square4 Quizzes (next week) square4 Comp. club http://www.youtube.com/eng1d04
Image of page 2
© 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
Image of page 3

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

View Full Document Right Arrow Icon
© 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
Image of page 4
© Copyright 2008 Mihai Albu & Alan Wassyng 4 Debug square4 It will greatly improve your understanding of code execution, loops, ifs, etc
Image of page 5

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

View Full Document Right Arrow Icon
© Copyright 2008 Mihai Albu & Alan Wassyng 5 Some samples… square4 Try debug your program… Use breakpoints Declare variables Implement ifs Implement loops
Image of page 6
© 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
Image of page 7

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

View Full Document Right Arrow Icon
© Copyright 2008 Mihai Albu & Alan Wassyng 7 Algorithm for Solving the Quadratic
Image of page 8
© 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?
Image of page 9

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

View Full Document Right Arrow Icon
© Copyright 2008 Mihai Albu & Alan Wassyng 9 Documenting?
Image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    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.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern