sept 14 thursday - eecs.yorku.cajackie/teaching/lectures/2017/f... · numherdir=jaa 1-71117-2 if...

10
Thursday Sept . 14 Lecture 3

Upload: others

Post on 27-Jun-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Thursday Sept .

14

Lecture 3

offiuehaurs

13:30 - 15:20

M. Tus Th

.

Numherdir=Jaa1-71117-2

If both the and 1-72are integers s the result .

is quotient .

Otherwises

result With precision .

pnntlslz ) .@prntCE1z)4.0 (2+3)*4print (912) 4

seen :

print (9/2.0) 4.5 9.012- =4iE

Tnt i. 9 ;

aes.tt#foEYnEEdEEBaaoIfs

�2� print

#doublet#

)

2/3 0

2013double)Cyg )

FaeI / J quotient X

I. # (double ) Ily ✓

double)⇒ ly ✓

print ( CU .

radius ) 100 0 tntdl -

. CU

.ge#ahispratIn(dl

) ; 20

-

BWpmtlnccu . gettin ) )bo

go# 2

[email protected],)µno so * 2*3.t¥FF#ea-

di :at:

of,o€t{;

.io#getAreaCradtusI*gnd#Faye t aamrsupplier

supplier will3 EYogtdgee¥

class Myott {

stage.

.EdmY*t§cats a. 43 7

class Myutetpp {

,

"NH.m(h9g€jk,

Gunter :

0 c- value <3 Reg .

wedTnwenentc ) {Tread : When should we throw a

Illegal Argument Exception ?value + t 5 3 3

]D value > HIGX]

Tnapteoprfatfalnfffx