APCS Unit 7 - PowerPoint PPT Presentation

1 / 16
About This Presentation
Title:

APCS Unit 7

Description:

APCS Unit 7 – PowerPoint PPT presentation

Number of Views:34
Avg rating:3.0/5.0
Slides: 17
Provided by: mikerem
Category:
Tags: apcs | black | jack | unit

less

Transcript and Presenter's Notes

Title: APCS Unit 7


1
APCS Unit 7
  • Arrays Gridworld

2
Agenda 9/29
  • Create 2 new workspaces in Eclipse
  • Unit7 Gridworld
  • Turn-in the last Unit 6 Assignment
  • MethodOverload 6.31
  • Review Homework Ch1-6
  • Objectives
  • Compare your work with others
  • Prepare for Midterm Exam Tomorrow

3
Agenda 9/29 Cont.
  • Arrays Objectives
  • You will learn how to declare an array,
    initialize an array, and refer to individual
    elements of an array
  • You will use arrays to store data in and retrieve
    data from lists and tables of values
  • GridWorld Objectives
  • You will learn how to install and run the
    GridWorld example programs
  • Begin to Understand the GridWorld Classes

4
Agenda 9/29 Cont.
  • In-Class/Homework Assignments
  • Get and install Gridworld at home.
  • Run the example programs listed in the
    installation instructions (firstProject, boxBug,
    critter)
  • Read GridWorld case study part 1 (Observing and
    Experimenting with GridWorld)
  • Complete Do You Know? Set 1 questions 1-10 type
    your answers in a text editor
  • Study for MidTerm

5
Agenda 9/30
  • Turn-In GridWorld Part 1 (Set1 Questions 1-10)
  • Prepare for the MidTerm
  • Clear your desk and turn-off your monitor
  • When you finish the Exam
  • Review Unit7_Lecture_Gridworld.ppt (Slides 1-9)
  • Begin In-Class/Homework assignment Set 2

6
Agenda 10/1
  • Turn-In Homework Set2_1(Histogram with Arrays)
  • Warm-Up
  • Create a new project called Warmup7_5
  • Import the code from the Warmup7_5 folder on the
    share drive and debug the code.
  • Arrays
  • Unit7_Lecture_Gridworld.ppt (Slides 1-32)

7
Agenda 10/1
  • Arrays Objectives
  • You will learn how to declare an array,
    initialize an array, and refer to individual
    elements of an array
  • You will use arrays to store data in and retrieve
    data from lists and tables of values
  • To pass arrays to methods.
  • Review Homework Histogram with Arrays
  • Work on Blackjack Game Gridworld Ex.1-4

8
Agenda 10/2
  • Turn-In
  • Homework Set2 (Histogram with Arrays)
  • Homework Set3 (GridWorld Ex.1-4)
  • Review Homework Histogram with Arrays
    GridWorld Part 1
  • Import fig07_12, fig07_13, and fig07_17
  • Arrays
  • Unit7_Lecture_Gridworld.ppt (Slides 32-57)

9
Agenda 10/2 Cont.
  • Arrays Objectives
  • To use the enhanced for statement to iterate
    through arrays.
  • To pass arrays to methods.
  • To declare and manipulate multidimensional
    arrays.
  • In-Class/HomeWork Set 4
  • Blackjack Game Due Friday (10/3)

10
Agenda 10/3
  • Turn-In
  • Homework Set4 (GridWorld Set2)
  • BlackJack Game
  • Review Homework BlackJack Game

11
Agenda 10/3 Cont.
  • Pop-Quiz
  • Referencing the Gridworld simulation code,
    identify and write on a piece of paper the
    following
  • A class
  • An instance variable, identify the class to which
    it belongs
  • A static field (variable)
  • A constructor
  • An array
  • An overloaded method (the original and
    overloaded)

12
Agenda 10/3 Cont.
  • In-Class Assignments
  • GridWorld Part 2
  • Exercises
  • No Homework this weekend ?

13
Agenda 10/7
  • Turn-In/Review
  • S/Homework_TurnIn/GridWorld Part 2
  • Exercise 1
  • ArrayLists
  • Create a project called Bank
  • Import the java files from the Bank folder in
    the share drive/unit7 folder
  • Unit7_Lecture.ppt (Slide 64-69)

14
Agenda 10/7 Cont.
  • In-Class/Homework Assignments Set5
  • Create a class called Bank which contains
  • A constructor which creates an arrayList of
    BankAccounts called accounts
  • A method called addAccount which inputs a
    parameter of type BankAccount and adds an account
  • A method called find of type BankAccount which
    searches for an account number. The method
    returns the index if the account is found,
    otherwise it returns null.
  • Use BankTester to call the method
  • Check out the files Bank.java,
    BankAccount.java, BankTester.java on the shared
    folder

15
Agenda 10/8
  • Start as soon as class begins
  • Continue with ArrayLists
  • Copy the ArrayList_LessonA15 folder from
    S/unit7 share folder to your H drive.
  • With a partner
  • Read Lesson A15 - ArrayList.doc
  • Complete the WorkSheet A15.1 ArrayList
  • Do not print Raise your hand when you are
    ready to be graded
  • Complete the Lab Assignment A15.2 - permutations

16
Agenda 10/8 Cont.
  • In-Class/Homework Assignments Set6
  • Modify BankTester.java to find and printout the
    account with the maximum balance.
  • And..
  • Finish any Lesson A15 ArrayList activities
  • Study for Unit 7 Quiz Friday 10/10
Write a Comment
User Comments (0)
About PowerShow.com