InstructionsForAug27

Download Report

Transcript InstructionsForAug27

INSTRUCTIONS FOR WORK ON
8/27/15
EXERCISES
1
EXTRA CREDIT # 1
• YOU MUST SHOW YOUR WORK TO ONE OF THE
TEACHING ASSISTANTS IN CLASS WHEN DONE .
• THE TA WILL PLACE A MARK NEXT TO YOUR NAME
ON THE ATTEDANCE SHEET AS AN INDICATION THAT
YOU DID THE EXERCISES.
• NO NEED TO SUBMIT THIS EXERCISE ON
BLACKBOARD! IT IS NOT GOING TO BE GRADED.
• BASED ON YPOUR READING ASSIGNMENT (CHAPTER
1 OF TEXT) DO THE FOLLOWING:
2
EXERCISES
• THE EXERCISES ARE OUT OF THE FOURTH
EDITION OF THE TEXT.
• Open a word document and type the answers.
• Show answer to one of the TAs before you
leave the class.
• Again, no requirement to submit it. No grade
will be issued but a checkmark has to be next
to your name on the attendance sheet.
3
EXERCISES
• TEXTPAGE 35
1. 1.7.1 MULTIPLE CHOICE EXERCISES
• EXERCISES 1 - 14
2. 1.7.2 CONVERTING NUMBERS
QUESTION 15 AND 16.
4. 1.7.3 GENERAL QUESTIONS
QUESTIONS 21 AND 22.
4
EXERCISES
• PRACTICE WITH ACCESSING INFO. ON JAVA FUNCTIONALITY (DON’T
WORRY IF YOU DON’T UNDERSTAND WHAT IT IS EXACTLY-THIS IS JUST A
PRACTICE SO THAT YOU KNOW WHERE TO FIND CERTAIN MATERIAL LATER
ON IN THE COURSE):
GO TO THE JAVA API WEB SITE (FROM THE LINK AVAILABLE ON THE
COURSES WEB SITE: WWW.CS.IIT.EDU/~CS116).
• THE API LISTS PROGRAMS THAT ALREADY EXIST IN JAVA (CALLED
LIBRARIES OR PACKAGES).
5
EXERCISES
– FIND THE PACKAGE java.lang.
• Read the description
• Click on the link (same as the name of the package).
• Scroll down to Class Summary label. Read the names of
the various programs (class) available.
• Find the Math class. Read the description.
• Click on the name Math.
• Scroll down to Method Summary. These are different
tasks that can be accomplished by using this program
(class) called Math.
6
Exercises
• Each one of these tasks is called a method.
• Scroll down and find the method pow.
• What does the method pow do? Write down the
answer in the word document.
• Take a guess: If you wanted to calculate the value of the
number 3.6 raised to 2.4 power which number will be
the a and which number will be the b looking at the
way the method is written (pow( double a, double b))?
Read the description of the method.
7
Exercises
Do you have any idea what they mean, in the description,
by the word “returns” (take a guess, but don’t worry
about it if you don’t know the answer at this point)?
Which of the following phrases do you think would fit
the definition of the word returns?
a) The instruction calculates the result and saves it somewhere in
memory.
b)Saves the first number and then the second number in memory
and that is all.
c) Does nothing. The word doe s not relate to anything.
d)Program yells out loud “returns”.
Write the answer in the word document.
8
EXERCISES
4. GO TO THE ORALE SITE WHERE THE
COMPILER/INTERPRETER CAN BE
DOWNLOADED. YOU CAN NAVIGATE TO THAT
SITE FROM THE LINK PROVIDED IN THE COURSE’
S WEB SITE.
–
LOOKING AT THE INFORMATION DISLAYED, IF YOU WERE TO
DOWNLOAD THE CAPABILTY TO COMPILE AND RUN JAVA
PROGRAMS ON YOUR OWN COMPUTER WHICH O F THE 3
AVAILABLE LINKS WILL YOU CLICK (JDK. JRE OR SERVER JRE)?
READ THE DESCRIPTIONS AND TAKE A GUESS.
9
EXERCISES
5. GO TO THE COURSE’S WEB SITE :
www.iit.edu/~cs116
Familiarize yourself with the web site! Browse through the
Home page and the Schedule page. Ask questions of TA if
you don’t understand some of the available information.
6.
GO TO BLACKBOARD
LOGIN INTO YOUR PROFILE.
GO TO THE CS115 COURSE. FIND WHERE UPCOMING ASSIGNMENTS
CAN BE DOWNLOADED. ASK FOR HELP IF YOU CAN NOT FIGURE OUT
WHERE THE ASSIGNMENTS GET DOWNLOADED!!
10
Exercises
• ANSWERS TO THE EXERCISES WILL BE
DISCUSSES ON 9/3 IN CLASS.
11