Java Programming

 

         

 

Wednesday, February 5th

 

Section 4 quiz Friday!
Finish Up Gene Finder problem
Lesson 4 Vocabulary
Lesson 4 Practice Questions
Lesson 4 Project - Create two classes, the Product class and the ProductTester class.

Complete Section 4 Lesson 4: Strings  slides
Complete Section 4 Lesson 4: Strings practice
Hints for theGene Finder problem - for help with this problem refer to the StringPractice example, part4
Refer to the Java API for String objects
Remember that each string is composed of characters and each character in a string has an index value that indicates its location in the string.
Once you have found the start and ending index values you can use these two values to select a substring from the DNA string.
You should have four variables for this project, dna is one, what are the other three?
Begin Section 4 Lesson 4: Strings project

Section 4: Lesson 4 - Strings Vocabulary:
- Joining multiple String objects together.
- Specific characters that are preceded by a \ character. When evaluated, the special character is evaluated as a special function, such as tabs, newlines, etc.
- Assigning a value to a String object reference.
- A data type that references the location in memory where an object is stored rather than a single, specific value.
- Code available in the Java API to manipulate or return strings.
- An Object type that stores sentences, words, or multiple characters.

Begin Section 5 Lesson 1: Scanner and Conditional Statements  slides
Begin work on the Section 5 Lesson 1: Scanner and Conditional Statements practice.
#2 Math Calculator - the output should read _______ (the first value entered) math operator chosen _______ (second value entered) = _______ your calculated value goes here. Here is an example 5 * 6 = 30
Thanks for using this program.
#4 Planets - Your weight on ____________ (planet name) is ________ pounds.
Example - Your weight on Mars would be 45 pounds.
Thanks for using this program.
#5 Mountville U - When you run this program it should NOT ask for information that is not needed once acceptance has been determined.
#6 Exam Exemption - rewrite the code using only ONE if statement
#7 BucketsOfPaintCalculator
Your room with a width of _________, a height of __________, and a length of _________ has an area of __________ sq. ft.
This room will require ______ 5-liter buckets and ________ 1-liter buckets.

Section 5 Lesson 1: Scanner and Conditional Statements Vocabulary:
- A shorthand form of an if/else statement.
- A Java class used for reading keyboard or file input during program execution.
- A type of program control that allows different segments of code to execute when the input value matches a given condition.
- A type of program control that allows different segments of code to execute when the input value matches a given condition - another way of doing this that is different from your previous answer.

Begin Section 5 Lesson 2: Control Statements slides
Begin work on the Section 5 Lesson 2: Control Statements practice.

 

Homework

Install Eclipse on your home computer if you would like to be able to work on your java at home.

 

What

In this lesson, you will learn how to:
•Recognize the correct general form of a class
• Create an object of a class
• Describe object references
• Create methods that compile with no errors
• Return a value from a method
• Use parameters in a method

 

Why

Class templates are the foundation of the Java language. Understanding how to create a class with various methods will be essential to becoming a good Java programmer. Knowing how to instantiate an object and compare it to other objects is critical to learning to use and work with Java data types.

 

How

By completing the slides, quiz and practice exercises.