Module: Subroutines

Programming in the Large I: Subroutines

Dates: Sat, Sep 25 - Sat, Oct 9

Learning Outcomes

Learn how to take a problem, figure out the algorithm to solve it, then write the code

The student will:

Understand how methods/subroutines/functions work in Java

The student will:

Understand Java expressions

The student will:

Readings

Text: Ch. 4.1 - 4.2, Subroutines

Black Boxes and Static Subroutines

SC: Ch. 4.1 - 4.2

Black Boxes and Static Subroutines

Text: Ch. 4.3 - 4.4, Subroutines

Parameters and Return Values

SC: Ch. 4.3 - 4.4

Parameters and Return Values

Text: Ch. 4.5 - 4.7, Subroutines

APIs and Program Design

SC: Ch. 4.5 - 4.7

APIs and Program Design

Experiential Learning

Practice: Subroutines

Working with Subroutines

Practice: Parameters

Writing subroutines with parameters.

Evaluating Java Expressions

Simple game to help with evaluating expressions.

H05: Simulate a pair of dice

Write a program that simulates a pair of dice.

Evaluating Java Expressions

Simple game to help with evaluating expressions.

Practice: More Subroutines

More practice writing subroutines.

Practice: More Subroutines

More practice

H06: Addition Quiz.

Write a program that administers a basic hexidecimal addition quiz.

Assessments

Q11: Static Subroutines

Outcome(s) assessed: Learn how to take a problem, figure out the algorithm to solve it, then write the code, Understand how methods/subroutines/functions work in Java

Q12: Parameters

Outcome(s) assessed: Learn how to take a problem, figure out the algorithm to solve it, then write the code, Understand how methods/subroutines/functions work in Java

H05: Simulate a pair of dice

Outcome(s) assessed: Learn how to take a problem, figure out the algorithm to solve it, then write the code, Learn basics of programming with a modern programming language, Java, Learn how to produce robust programs in Java, Employ a good Java development environment

Q13: Write a Function

Outcome(s) assessed: Learn how to take a problem, figure out the algorithm to solve it, then write the code, Understand how methods/subroutines/functions work in Java

Q14: Write a Function

Outcome(s) assessed: Learn how to take a problem, figure out the algorithm to solve it, then write the code, Understand how methods/subroutines/functions work in Java

H06: Hexidecimal Addition Quiz

Outcome(s) assessed: Learn how to take a problem, figure out the algorithm to solve it, then write the code, Learn basics of programming with a modern programming language, Java, Learn how to produce robust programs in Java, Employ a good Java development environment