INSTRUCTIONS FOR WORK ON 8/27/14

Download Report

Transcript INSTRUCTIONS FOR WORK ON 8/27/14

INSTRUCTIONS FOR WORK ON
8/24/16
EXERCISES
1
IN CLASS EXERCISES
• 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
ATTENDANCE SHEET AS AN INDICATION THAT YOU DID THE
EXERCISES.
• BASED ON YOUR READING ASSIGNMENT (CHAPTER 1 OF
TEXT) DO THE FOLLOWING:
2
EXERCISES
• THE EXERCISES ARE OUT OF THE FOURTH EDITION OF THE
TEXT.
• If you have a lap top with you :Open a word document and
type the answers. Name the document assignment0.doc
• If you don’t have a laptop write the answers on paper and
transfer them to a WORD document at home)
• Show answers to one of the TAs before you leave the class.
• No grade will be issued but a checkmark has to be next to
your name on the attendance sheet.
3
EXERCISES
• TEXT PAGE 35
1.
1.7.1 MULTIPLE CHOICE EXERCISES
• EXERCISES 1 - 14
2.
1.7.2 CONVERTING NUMBERS
QUESTION 15 , 16, 17, 20.
4.
1.7.3 GENERAL QUESTIONS
QUESTIONS 21 ,22, 23, 24.
Write your answers on your notebook. When at home transfer the answers to a
WORD document named assignment0.doc and follow the instructions on
slide 12 for Blackboard submission of this assignment (it carries no grade but
needs to be submitted).
4
EXERCISES
• IF YOU HAVE A LAPTOP WITH YOU DO THE FOLLOWING EXERCISES
OTHERWISE DO THEM AT HOME OR IN THE LAB ON FRIDAY 8/26- NO
SUBMISSION IS REQUIRED FOR THE FOLLOWING INSTRUCTIONS:
• 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 does not relate to anything.
d)Program yells out loud “returns”.
Write the answer in the word document.
(Answer does not need to be written anywhere. The correct answer is a ).
8
EXERCISES
– 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 DISPLAYED, 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
•
GO TO THE COURSE’S WEB SITE :
www.iit.edu/~cs201
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.
10
Blackboard submission
•
•
•
GO TO BLACKBOARD
LOGIN INTO YOUR PROFILE.
GO TO THE CS201 COURSE. FIND WHERE UPCOMING ASSIGNMENTS
CAN BE DOWNLOADED. ASK FOR HELP IF YOU CAN NOT FIGURE OUT
WHERE THE ASSIGNMENTS GET DOWNLOADED!!
ALL ASSIGNMENTS FILES MUST BE ZIPPED BEFOR ESUBMISSION. ZIP THE
FILE assignment0.doc AND NAME IT assignmnet0.zip
SUBMIT ON BLACKBOARD THE FILE assignment0.zip UNDER THE
BLACKBOARD ASSIGNMENT LABELED : aasignment0.
11
Exercises
• ANSWERS TO THE EXERCISES WILL BE POSTED
ON THE COURSE’S WEB SITE.
12