Computer Science 340
Programming Languages
Fall 2023, Siena College
Lecture 20: Control Structures; Subprograms
Date: Thursday, November 16, 2023
Agenda
- Announcements
- Language Project
[HTML]
[PDF]
- next deadline is the progress report due Monday night
- Problem Set 7: [HTML] [PDF] on the late clock
- grading update
- Control structures wrapup
- Chapter 8 Discussion Notes wrapup (see the link in your email and/or in Canvas)
- Subprograms
- (Maybe) starting work on the Chapter 9, Sections 1-5 Discussion Notes (see the link in your email and/or in Canvas)
- Assignment due in Canvas at the start of our next class: Read
Sebesta Chapter 9, Sections 6-11, and indicate that you have
done so by entering your name as your response in the Canvas
assignment. This assignment is worth 20 points in the
"Assignments" category. We will be spending some time in class on
Thursday working through some of the questions at the end of the
chapter as a group.
Terminology
- subprogram/procedure/subroutine/function/method
- subprogram definition
- subprogram call
- subprogram header/specification/interface
- type, name, parameters, body of a subprogram
- parameter profile/signature
- protocol
- subprogram declaration
- formal parameter/actual parameter
- positional parameters/keyword parameters
- default parameters
- variadic functions
Examples
Links