There will be blood
Daniel Day Lewis stars in one of the greatest period films ever made: There Will Be Blood which explores the corrosive impact of oil money on a small town in the American West at the turn of the century. The allure of untapped, underground reservoirs of "black gold" changed the course of human-ecological development forever--just like the Java 8 API can transform your programming forever.

First look at the Java Application Programming Interface (API) [under construction sp 18]

preparation

This module is the third in our language structures chunk. If you have not digested settings Chunk 2, Module 1: Simple Methods, pause and do so before attemtping this module.

objectives

time considerations

As a core module in your Java learning, plan to devote about 4 hours to this module. Best to spread that out over two sessions, or so. Don't forget to pause and study your resources!

resources

Java: A Beginner's Guide (6th ed): Methods are covered in Chapter 4, pages 103-124. Stop at "Constructors" which delves into Object-oriented Java which we'll explore soon.

Oracle online tutorial on methods provides essential explanations of these core concepts

contents

extensionCore Concept 1: Summary of three method structures
find_in_pageIntroduction to the GeometricShapes calculator example program
extensionCore Concept 2: Writing Type III methods which take input parameters and return values
extensionCore Concept 3: Calling Type-III methods
motorcycleExercise 1: Adding a cylinder volume calculation method

extensionCore Concept 4: Writing simple algorithms
motorcycleExercise 2: Adding your favorite shape computation method

extensionCore Concept 5: First look at the Java API
motorcycleExercise 3: Tinkering with methods on String objects

buildMini-Project: Building a unit Converter

"submitting"

  1. Code up your mini-project, test it, and comment your code. Please make a note of any outside resources you used for any part of your code by including a link or attribution in your comments.
  2. Upload your file to your personal GitHub account.
  3. Make an entry in our java submission index, including a link to your file on GitHub.

key term: methods

A definition of methods here

program specification

This is a paragraph

This is a paragraph

warning

We must never allow ourselves the sin of losing track of time

program objective

None!

program requirement 1

This is a paragraph

This is a paragraph

highlightQuiz Program Specification: link

Requirement 1:

wb_incandescentWhile() Loops in Brief (3-5 mins)

Para

Computers are great at storing and manipulating structured data--meaning information that is organized in a consistent way. Many great tools exist for sorting through, finding patterns, and presenting structured data. This module explores the process of creating a data schema (structure), Standard text: extensionThis module was engineered to be worked through sequentially: from top to bottom gathering data using that schema, processing, and finally analyzing that data in a spreadsheet.

Computers are great at storing and manipulating structured data--meaning information that is organized in a consistent way. Many great tools exist for sorting through, finding patterns, and presenting structured data. This module explores the process of creating a data schema (structure), gathering data using that schema, processing, and finally analyzing that data in a spreadsheet.

flow chart for java if and while statements

arrow_upward back up to contents


bookExternal Resources

arrow_upward back up to contents


check_boxLearning Objectives

  1. obj textnon bold obj

arrow_upward back up to contents


webSet up your workspace

  1. Create a new package called week5 non bold
flow chart for java if and while statements

arrow_upward back up to contents


extensionCore Concept: X

flow chart for java if and while statements

Mini-Core Concepts Challenge!

Desired output:

flow chart for java if and while statements

Three HINT phrases: 1. operators 2. instruction location 3. hard-coded values

arrow_upward back up to contents


motorcycleExercise X:

Exercise type:

sub

Para

A sample:

AuthenticationKey.java on GitHub.

arrow_upward back up to contents


buildModule Mini-Project for submission and sharing

Exercise type: Culminating Activity

highlightQuiz Program Specification: link

Requirement 1:

Submission steps:

Extension ideas:

arrow_upwardback up to contents


Page created on 2018 and last updated on 2018 and can be freely reproduced according to the site's content use agreement.