AP Computer Science AgendaThursday September 15, 2016
Today’s Objectives:
- Review the specifics of working with data and math operators in Java
- Learn the methods available in the Java Math class and examine code examples that utilize those methods
- Use math operators and the Math class to write and test a program to simulate a RightTriangle object
Directions for the day:
- Turn in the “Logical Operators Worksheet” to the substitute, which was assigned as homework on Tuesday. We did not have time to go over the Math (Java) class and its methods during (real-world) class on Tuesday, so your only homework was the logical operators worksheet. You should have your name on this and your work shown. We will go over the solutions next (real-world) class.
- Read the “Math Operators and the Math Class” document located on my Tam website for today’s date. The first five pages should review, and hopefully clarify, the notes we took on Java’s math operations last class. However, the last three pages of the reading introduce the Math class in Java, which provides methods for more advanced calculations. Math.abs(), Math.pow(), and Math.sqrt() are covered on the AP Exam.
- After finishing the reading, write down three specific questions you still have regarding the reading and/or the notes we took Tuesday. Be sure to identify the topic, or subtopic you are referring to, and try to use accurate vocabulary. We’ll be working more with vocabulary and these questions next Tuesday as we start to prepare for our first unit test. Be sure you have these written down, or available on Tuesday.
- Go to my Tam website for today’s date and complete the “RightTriangle class” assignment according to the directions provided in the document. This was originally going to be homework due today, but instead you will complete the assignment in class, or as homework to do over the weekend if you don’t have a chance to finish today. You should use BlueJ for this, but copy or save the code to a document so you can access it next Tuesday.
- See me for quiz retakes tomorrow during tutorial!!! I know who you are if you need to do this :)
- Be sure to come to class next Tuesday with your questions and a digital copy of your code for the RightTriangle assignment. See me tomorrow (Friday) before school at 7AM or during tutorial if you have questions or need assistance. You can also e-mail me if you have any clarifying questions:
Student you = new Student();
if (you.is_frustrated() == true)
you.getHelp();