AP Java 9/21/2018.

Slides:



Advertisements
Similar presentations
CS102--Object Oriented Programming Discussion 2: (programming strategy in java) – Two types of tasks – The use of arrays Copyright © 2008 Xiaoyan Li.
Advertisements

CS150 Introduction to Computer Science 1
CS102--Object Oriented Programming Discussion 1: – Project 4 on Page 328 – The use of arrays Copyright © 2008 Xiaoyan Li.
Classes, methods, and conditional statements We’re past the basics. These are the roots.
Adding your SSI Data into Faculty180 using the New SSI screens:
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Java Programming Practice.
Advanced Decisions and Loops Chapter Some Simple Schoolroom Statistics.
Text Processing and More about Wrapper Classes. Contents I.The Test Score Problem II.Exercise.
Chapter 3 Basic Statistics Section 2.2: Measures of Variability.
Check it out! : Differences Between Populations and Samples.
Text Processing and More about Wrapper Classes
6, 5, 3, 6, 8 01/10/11 Mean, Median, Mode Warm Up
Even more problems.. Mean (average) I need a program that calculates the average of student test scores. I need a program that calculates the average.
Count and add list of numbers From user input and from file.
Chapter 4 Practice cont.. Practice with nested loops 1.What will be the output of the following program segment: 1.for (int i = 1; i
Productivity. Calculating productivity Total output Total input Chocolate wave factory has 3000 waves 10 workers 300 waves per worker.
Slide: LOGARITHMS. Slide: 2 ? ? The use of logarithms is a fast method of finding an unknown exponent. Section 7.4 BaseExponent 9 = 81 ? ? 3 = 27.
Java Review if Online Time For loop Quiz on Thursday.
Textbook Problem Java – An Introduction to Problem Solving & Programming, Walter Savitch, pp.217, Problem 04.
Count Controlled Loops (Nested) Ain’t no sunshine when she’s gone …
The number which appears most often in a set of numbers. Example: in {6, 3, 9, 6, 6, 5, 9, 3} the Mode is 6 (it occurs most often). Mode : The middle number.
Computer Science 1 How do you store a bunch of similar stuff?
Computer Science I: Understand how to evaluate expressions with DIV and MOD Random Numbers Reading random code Writing random code Odds/evens/…
Total, Average and Marginal Products The Total Product Curve shows the maximum output attainable from a given amount of a fixed input (capital) as the.
IGCSE ECONOMICS COSTS To explain the difference between the long run and the short run. To identify and calculate the various different costs To explain.
CSC111 Quick Revision.
CIS 170 Education for Service-- snaptutorial.com.
CIS 170 Teaching Effectively-- snaptutorial.com
When I want to execute the subroutine I just give the command Write()
Program options Write a program for one of the following
Java Fix a program that has if Online time for Monday’s Program
Standard Algorithms Input validation Finding the minimum
How do you store a bunch of similar stuff?
COMP 110 Loops, loops, loops, loops, loops, loops…
Computer Science 2 Review the Bubble Sort
Insertion Sort Quiz on Thursday.
Computer Science And he made a molten sea, ten cubits from the one brim to the other: it was round all about, and his height was five cubits: and.
Computer Science 2 Getting an unknown # of …. Into an array.
Java Fix a program that has if Online time for Monday’s Program
Adding your SSI Data into Faculty180 using the New SSI screens:
Writing Functions( ) (Part 4)
Suppose I want to add all the even integers from 1 to 100 (inclusive)
Sales Tax Calculator Choose 1 item that you would like to buy. (at least $500) Research the.
How do you store a bunch of similar stuff?
AP Class Methods.
Computer Science Sorting Pre-Test Discussion/program
CS 2 Records 2/22/2018.
Review for Test1.
(a)(iii) Requirements Specification
Truth tables: Ways to organize results of Boolean expressions.
Computer Science II Second With files.
Sorting Develop a sorting algorithm
For First Place Most Times Up at the Table
Computer Science 2 More Trees.
Computer Science 1 while
Computer Science 1 For..do loop Dry Run Take notes on the For loop
How do you store a bunch of similar stuff?
Computer Science I: Get out your notes.
Announcements Lab 3 was due today Assignment 2 due next Wednesday
Program options Write a program for one of the following
Dry Run Fix it Write a program
AP CS Be able to fix a program written in Java
Computer Science 1 while
Random Numbers while loop
Computer Science 1 while
Dry Run Fix it Write a program
WJEC GCSE Computer Science
Algorithms For use in Unit 2 Exam.
CS 1054 Final Exam Coverage Final exam will cover Chapters 1-8, 10-11
Presentation transcript:

AP Java 9/21/2018

Learning Targets Be able to fix a program that uses the for loop Be able to develop code that uses for loops

Fix IT! Open from the class website ‘fixloop.java’ file and fix the program. It is supposed to input 5 ages and find the youngest age.

Programs if/for (At least one from each section) For Program Options Enter a number: Output it’s factorial Enter a base and an exponent: Using a for loop calculate base^exponent using the for loop. (No Math.pow()) Combined Program options Enter 10 scores. Output the total, average, highest and lowest score. Enter 5 ages and calculate the number of teenagers in the list.