Difference between revisions of "EGR 103/Concept List/S23"

From PrattWiki
Jump to navigation Jump to search
Line 3: Line 3:
 
** Includes links to Sakai, Pundit, and Ed pages
 
** Includes links to Sakai, Pundit, and Ed pages
 
* Sakai page: [https://sakai.duke.edu/portal/site/egr103s23 Sakai 103L page]; grades, surveys and tests, some assignment submissions; first day slideshow in Resources section goes over everything else.
 
* Sakai page: [https://sakai.duke.edu/portal/site/egr103s23 Sakai 103L page]; grades, surveys and tests, some assignment submissions; first day slideshow in Resources section goes over everything else.
 
<!--
 
 
 
== Lecture 2  - 8/27 - Programs and Programming ==
 
== Lecture 2  - 8/27 - Programs and Programming ==
 
* Almost all languages have input, output, math, conditional execution (decisions), and repetition (loops)
 
* Almost all languages have input, output, math, conditional execution (decisions), and repetition (loops)
* Seven steps of programming [https://adhilton.pratt.duke.edu/sites/adhilton.pratt.duke.edu/files/u37/iticse-7steps.pdf The Seven Steps Poster].  Also, for Friday's class:  
+
* Seven steps of programming [https://adhilton.pratt.duke.edu/sites/adhilton.pratt.duke.edu/files/u37/iticse-7steps.pdf The Seven Steps Poster].  Also, for next Friday's class:  
 
** Watch video on [https://www.coursera.org/lecture/duke-programming-web/developing-an-algorithm-nopgq Developing an Algorithm]
 
** Watch video on [https://www.coursera.org/lecture/duke-programming-web/developing-an-algorithm-nopgq Developing an Algorithm]
 
** Watch video on [https://www.coursera.org/lecture/duke-programming-web/a-seven-step-approach-to-solving-programming-problems-AEy5M A Seven Step Approach to Solving Programming Problems]
 
** Watch video on [https://www.coursera.org/lecture/duke-programming-web/a-seven-step-approach-to-solving-programming-problems-AEy5M A Seven Step Approach to Solving Programming Problems]
 
* Problem: Consider how to decide if a number is a prime number
 
* Problem: Consider how to decide if a number is a prime number
** Some "shortcuts" for specific factors but need to have a generalized approach
+
** Some "shortcuts" for specific factors (2, 3, and 5, for example) but need to have a generalized approach
** See if number is evenly divisible by any integer between 2 and the square root of the number - but how do we ask the computer to do that?
+
** See if number is evenly divisible by any integer between 2 and the square root of the number - but how do we ask the ''computer'' to do that?
 +
* Very quick tour of Python with Spyder
 +
 
 +
<!--
 +
== Lecture 3 - 9/5 - "Number" Types ==
 
* Quick tour of Python
 
* Quick tour of Python
 
** Console (with history tab), variable explorer (with other tabs), and editing window
 
** Console (with history tab), variable explorer (with other tabs), and editing window
Line 25: Line 26:
 
** If there are <code>"""</code> or <code>'''</code>, Python ignores everything until the closing <code>"""</code> or <code>'''</code>
 
** If there are <code>"""</code> or <code>'''</code>, Python ignores everything until the closing <code>"""</code> or <code>'''</code>
 
** If you use <code># %%</code> in Spyder, the editing window will set up a '''cell''' and light up the cell your cursor is in.  Cells have no impact on how the code runs, just how the code appears in the window  
 
** If you use <code># %%</code> in Spyder, the editing window will set up a '''cell''' and light up the cell your cursor is in.  Cells have no impact on how the code runs, just how the code appears in the window  
 
== Lecture 3 - 9/5 - "Number" Types ==
 
 
* Python is a "typed" language
 
* Python is a "typed" language
 
** Focus of the day: int, float, and array
 
** Focus of the day: int, float, and array

Revision as of 15:31, 19 January 2023

Lecture 1 - 1/11 - Course Introduction

  • Main class page: EGR 103L
    • Includes links to Sakai, Pundit, and Ed pages
  • Sakai page: Sakai 103L page; grades, surveys and tests, some assignment submissions; first day slideshow in Resources section goes over everything else.

Lecture 2 - 8/27 - Programs and Programming

  • Almost all languages have input, output, math, conditional execution (decisions), and repetition (loops)
  • Seven steps of programming The Seven Steps Poster. Also, for next Friday's class:
  • Problem: Consider how to decide if a number is a prime number
    • Some "shortcuts" for specific factors (2, 3, and 5, for example) but need to have a generalized approach
    • See if number is evenly divisible by any integer between 2 and the square root of the number - but how do we ask the computer to do that?
  • Very quick tour of Python with Spyder